/* ============================================================
   Netsera Digital — Landing page styles
   Tokens & components per design.md (single source of truth)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --color-bg:           #FAFBFC;
  --color-bg-alt:       #EBF3FF;
  --color-bg-card:      #FFFFFF;
  --color-bg-dark:      #0F1624;

  /* Text */
  --color-text-primary: #1A1A2E;
  --color-text-muted:   #5A6070;
  --color-text-light:   #9AA0AD;
  --color-text-on-dark: #F0F4FF;

  /* Brand — accent tweak only changes --color-brand; the rest derive */
  --color-brand:        #1E5FD9;
  --color-brand-hover:  color-mix(in srgb, var(--color-brand), #000 16%);
  --color-brand-light:  color-mix(in srgb, var(--color-brand) 14%, #fff);

  /* Borders */
  --color-border:       #DDE3EE;
  --color-border-focus: var(--color-brand);

  /* Feedback */
  --color-success:      #16A34A;
  --color-error:        #DC2626;

  /* Fonts (font-pairing tweak swaps these two) */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing (8px base) */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem;
  --space-12:3rem; --space-16:4rem; --space-20:5rem; --space-24:6rem; --space-32:8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);

  /* Radius — radius tweak scales via --radius-scale */
  --radius-scale: 1;
  --radius-sm:   calc(6px  * var(--radius-scale));
  --radius-md:   calc(12px * var(--radius-scale));
  --radius-lg:   calc(20px * var(--radius-scale));
  --radius-xl:   calc(28px * var(--radius-scale));
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(30,95,217,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(30,95,217,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(30,95,217,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-card-hover: 0 16px 48px rgba(30,95,217,.16);

  /* Motion */
  --transition-fast: .15s ease;
  --transition-base: .25s ease;
  --transition-slow: .4s ease;

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; }
::selection { background: var(--color-brand-light); color: var(--color-brand); }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.15; color: var(--color-text-primary); }

:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--space-20); }
.bg-alt  { background: var(--color-bg-alt); }
@media (max-width: 767px) { .section { padding-block: var(--space-12); } }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--color-brand); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-base);
  padding: .8rem 1.75rem; border-radius: var(--radius-full); white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base),
    transform var(--transition-fast), box-shadow var(--transition-base); }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-outline { background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand); padding: calc(.8rem - 2px) calc(1.75rem - 2px); }
.btn-outline:hover { background: var(--color-brand); color: #fff; }
.btn-white { background: #fff; color: var(--color-brand); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.4); padding: calc(.8rem - 2px) calc(1.75rem - 2px); }
.btn-ghost-light:hover { background: #fff; color: var(--color-brand); border-color: #fff; }
.btn-sm { padding: .6rem 1.25rem; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Section header pattern ---------- */
.section-header { text-align: center; max-width: 660px; margin: 0 auto var(--space-12); }
.section-header.left { text-align: left; margin-inline: 0; }
.label-eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand);
  background: var(--color-brand-light); padding: .35rem .85rem; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: var(--space-4);
}
.label-eyebrow svg { width: 14px; height: 14px; }
.section-title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.12; margin-bottom: var(--space-4); text-wrap: balance; }
.section-sub { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.65; text-wrap: pretty; }
@media (max-width: 767px){ .section-title { font-size: var(--text-3xl); } }

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: transparent; transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}
.navbar.scrolled { background: rgba(247,249,252,.85); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-6); }
.brand-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--color-text-primary); }
.brand-logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--color-brand); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.brand-logo .mark svg { width: 19px; height: 19px; }
.navbar.on-dark .brand-logo { color: #fff; }

.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-text-primary); position: relative; padding: 4px 0; transition: color var(--transition-base); }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-base); border-radius:2px; }
.nav-links a:hover { color: var(--color-brand); }
.nav-links a.active { color: var(--color-brand); }
.nav-links a.active::after { transform: scaleX(1); }
.navbar.on-dark:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.navbar.on-dark:not(.scrolled) .nav-links a:hover,
.navbar.on-dark:not(.scrolled) .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); align-items: center; justify-content: center; color: var(--color-text-primary); }
.navbar.on-dark:not(.scrolled) .nav-toggle { color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1023px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile drawer */
.mobile-backdrop { position: fixed; inset: 0; background: rgba(26,26,46,.3); z-index: 98; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(340px, 86vw); z-index: 99;
  background: var(--color-bg-card); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--transition-slow);
  display: flex; flex-direction: column; padding: var(--space-6);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .drawer-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: var(--space-8); }
.mobile-drawer .drawer-close { width:44px; height:44px; border-radius: var(--radius-md); display:grid; place-items:center; color: var(--color-text-muted); }
.mobile-drawer .drawer-close:hover { background: var(--color-bg-alt); color: var(--color-text-primary); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mobile-drawer nav a { font-size: 18px; font-weight: 500; padding: var(--space-4); border-radius: var(--radius-md); color: var(--color-text-primary); transition: background var(--transition-fast), color var(--transition-fast); }
.mobile-drawer nav a:hover { background: var(--color-bg-alt); color: var(--color-brand); }
.mobile-drawer .btn { margin-top: var(--space-4); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(900px 520px at 78% -8%, rgba(40,110,235,.50), transparent 62%),
  radial-gradient(760px 520px at 8% 112%, rgba(20,73,184,.42), transparent 60%),
  linear-gradient(158deg, #0A1228 0%, #0E1C3F 52%, #091230 100%); }
.hero-mesh { position: absolute; inset: 0; z-index: 1; opacity: .8; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,185,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,185,255,.06) 1px, transparent 1px),
    radial-gradient(rgba(125,170,255,.22) 1.6px, transparent 2px);
  background-size: 48px 48px, 48px 48px, 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(125% 105% at 50% 32%, #000 28%, transparent 78%);
  mask-image: radial-gradient(125% 105% at 50% 32%, #000 28%, transparent 78%); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(85% 65% at 50% 42%, rgba(8,13,30,.45) 0%, transparent 72%); }
.hero-glow { position: absolute; z-index: 1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(80px); opacity: .5;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-brand) 70%, transparent) 0%, transparent 65%); top: -10%; left: 50%; transform: translateX(-50%); }
.hero-content { position: relative; z-index: 2; max-width: 880px; padding-inline: var(--container-pad); padding-top: var(--nav-h); display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow-dark { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); padding: .45rem 1rem; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: .5rem; }
.hero .eyebrow-dark .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-top: var(--space-6); max-width: 18ch; text-wrap: balance; }
.hero h1 .accent { color: #fff; position: relative; white-space: nowrap; }
.hero h1 .accent::after { content:""; position:absolute; left:0; right:0; bottom:.08em; height:.16em; background: var(--color-brand); border-radius: 4px; z-index:-1; opacity:.9; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: var(--text-xl); line-height: 1.6; margin: var(--space-5) auto 0; max-width: 600px; text-wrap: pretty; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-8); }
.hero .trust-row { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; align-items: center; margin-top: var(--space-10); color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.hero .trust-row .ti { display: inline-flex; align-items: center; gap: .5rem; }
.hero .trust-row svg { width: 16px; height: 16px; color: #4ade80; }
.hero .trust-row .sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 130px; z-index: 2; background: linear-gradient(to top, var(--color-bg), transparent); }
.scroll-ind { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: rgba(255,255,255,.5); }
.scroll-ind span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-ind svg { width: 20px; height: 20px; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }
@media (max-width:767px){ .hero .trust-row .sep { display:none; } .scroll-ind { display:none; } }

/* ============================================================
   CLIENT LOGOS STRIP
   ============================================================ */
.logos { padding-block: var(--space-12); overflow: hidden; }
.logos .strip-label { text-align: center; font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-8); }
.marquee-mask { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-16); align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.logos:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.client-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; color: #6B7280;
  filter: grayscale(1); opacity: .55; transition: opacity var(--transition-base), filter var(--transition-base), color var(--transition-base); white-space: nowrap; }
.client-logo:hover { filter: grayscale(0); opacity: 1; color: var(--color-text-primary); }
.client-logo svg { width: 26px; height: 26px; }

/* ============================================================
   SERVICES MARQUEE (chips)
   ============================================================ */
.svc-marquee { padding-block: var(--space-10); overflow: hidden; display: flex; flex-direction: column; gap: var(--space-3); }
.svc-marquee .marquee-track { gap: var(--space-3); animation-duration: 46s; }
.svc-marquee .row-rev .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.svc-chip { display: inline-flex; align-items: center; gap: .55rem; background: var(--color-brand-light); color: var(--color-brand);
  font-weight: 600; font-size: var(--text-sm); padding: .6rem 1.15rem; border-radius: var(--radius-full); border: 1px solid color-mix(in srgb, var(--color-brand) 18%, transparent); white-space: nowrap; }
.svc-chip svg { width: 15px; height: 15px; }
.svc-chip.alt { background: var(--color-bg-card); color: var(--color-text-primary); border-color: var(--color-border); }

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 767px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card { position: relative; overflow: hidden; }
.svc-card .icon-box { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--color-brand-light); display: grid; place-items: center; margin-bottom: var(--space-5); transition: background var(--transition-base), transform var(--transition-base); }
.svc-card .icon-box svg { width: 28px; height: 28px; color: var(--color-brand); transition: color var(--transition-base); }
.svc-card:hover .icon-box { background: var(--color-brand); transform: scale(1.05) rotate(-3deg); }
.svc-card:hover .icon-box svg { color: #fff; }
.svc-card h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-3); }
.svc-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.svc-card .svc-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--space-5); }
.svc-card .svc-tags span { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); background: var(--color-bg-alt); padding: .25rem .6rem; border-radius: var(--radius-sm); }
.svc-card .learn { margin-top: var(--space-5); display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-brand); transition: gap var(--transition-base); }
.svc-card .learn svg { width: 16px; height: 16px; }
.svc-card:hover .learn { gap: .8rem; }
.svc-card .ghost-num { position: absolute; top: var(--space-5); right: var(--space-6); font-family: var(--font-heading); font-weight: 800; font-size: 3.2rem; color: var(--color-brand); opacity: .06; line-height: 1; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.process-row .line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--color-brand-light), var(--color-border)); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.process-step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--color-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-xl); box-shadow: var(--shadow-md); border: 5px solid var(--color-bg-alt); }
.process-step .icon-c { width: 52px; height: 52px; border-radius: 50%; background: var(--color-bg-card); border: 1px solid var(--color-border); display: grid; place-items: center; margin: var(--space-4) 0 var(--space-4); box-shadow: var(--shadow-sm); }
.process-step .icon-c svg { width: 24px; height: 24px; color: var(--color-brand); }
.process-step h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; max-width: 230px; }
.process-step .connector { display: none; }
@media (max-width: 767px){
  .process-row { grid-template-columns: 1fr; gap: 0; }
  .process-row .line { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: var(--space-5); align-items: flex-start; padding-bottom: var(--space-8); }
  .process-step:last-child { padding-bottom: 0; }
  .process-step .stepper { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
  .process-step .num { border-color: var(--color-bg-card); }
  .process-step .connector { display: block; width: 2px; flex: 1; background: var(--color-border); margin-top: 6px; min-height: 30px; }
  .process-step:last-child .connector { display: none; }
  .process-step .icon-c { display: none; }
  .process-step p { max-width: none; }
  .process-step .body { padding-top: 12px; }
}

/* ============================================================
   WHY US / NUMBERS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: center; }
@media (max-width: 1023px){ .why-grid { grid-template-columns: 1fr; gap: var(--space-12); } }
.usp-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.usp { display: flex; gap: var(--space-4); align-items: flex-start; }
.usp .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-brand-light); display: grid; place-items: center; flex-shrink: 0; }
.usp .icon svg { width: 22px; height: 22px; color: var(--color-brand); }
.usp h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.usp p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
.stats-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-10); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, var(--text-5xl)); font-weight: 800; color: var(--color-brand); line-height: 1; }
.stat .lbl { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; margin-top: var(--space-2); }
.stat + .stat {}
.stats-card .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-8); }
@media (max-width:479px){ .stats-card { grid-template-columns: 1fr; padding: var(--space-8); } .stats-card .stat:nth-child(3){ border-bottom:1px solid var(--color-border); padding-bottom: var(--space-8);} }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
@media (max-width: 767px){ .proj-grid { grid-template-columns: 1fr; } }
.proj-card { cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base); }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.proj-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--color-bg-alt); }
.proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.proj-card:hover .thumb img { transform: scale(1.06); }
.proj-card .thumb .view-pill { position: absolute; inset: auto var(--space-4) var(--space-4) auto; background: rgba(15,22,36,.78); color:#fff; font-size: var(--text-xs); font-weight:600; padding: .4rem .8rem; border-radius: var(--radius-full); backdrop-filter: blur(6px); display:inline-flex; align-items:center; gap:.35rem; opacity:0; transform: translateY(6px); transition: var(--transition-base); }
.proj-card .thumb .view-pill svg{ width:13px;height:13px;}
.proj-card:hover .view-pill { opacity:1; transform: translateY(0); }
.proj-card .body { padding: var(--space-6); }
.badge { display: inline-flex; align-items:center; font-size: var(--text-xs); font-weight: 600; color: var(--color-brand); background: var(--color-brand-light); padding: .25rem .7rem; border-radius: var(--radius-full); letter-spacing: .02em; }
.proj-card h3 { font-size: var(--text-lg); font-weight: 700; margin: var(--space-3) 0 var(--space-2); }
.proj-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(15,22,36,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: var(--space-6);
  opacity: 0; pointer-events: none; transition: opacity var(--transition-slow); }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; z-index: 201; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; background: var(--color-bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  transform: scale(.95); opacity: 0; transition: transform var(--transition-slow), opacity var(--transition-slow); }
.modal-backdrop.open .modal { transform: scale(1); opacity: 1; }
.modal .modal-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-alt); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal .modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal .modal-body { padding: var(--space-8); }
.modal-close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; border-radius: 50%; background: rgba(15,22,36,.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background var(--transition-base); z-index: 2; }
.modal-close:hover { background: var(--color-error); }
.modal-close svg { width: 18px; height: 18px; }
.modal h2 { font-size: var(--text-2xl); font-weight: 800; margin: var(--space-3) 0 var(--space-4); }
.modal .chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: var(--space-5) 0; }
.modal .chip-row span { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-primary); background: var(--color-bg-alt); padding: .3rem .7rem; border-radius: var(--radius-sm); }
.modal .desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; }
.modal .results { background: var(--color-brand-light); border-left: 4px solid var(--color-brand); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-6) 0; display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); }
.modal .results .r .v { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-2xl); color: var(--color-brand); }
.modal .results .r .k { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width:479px){ .modal .results { grid-template-columns: 1fr; gap: var(--space-3); } .modal .modal-body { padding: var(--space-6);} }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: var(--color-brand); position: relative; overflow: hidden; }
.cta-banner::before, .cta-banner::after { content:""; position:absolute; border-radius:50%; background: rgba(255,255,255,.07); }
.cta-banner::before { width: 380px; height: 380px; top: -140px; right: -80px; }
.cta-banner::after { width: 300px; height: 300px; bottom: -160px; left: -60px; }
.cta-banner .inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; text-align: center; padding-block: var(--space-20); }
.cta-banner h2 { color: #fff; font-size: var(--text-4xl); font-weight: 800; margin-bottom: var(--space-4); text-wrap: balance; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: var(--text-lg); margin-bottom: var(--space-8); }
@media (max-width:767px){ .cta-banner h2 { font-size: var(--text-3xl);} }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
@media (max-width: 1023px){ .reviews-grid { grid-template-columns: 1fr; } }
.review-card { position: relative; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); display:flex; flex-direction: column; }
.review-card .quote-mark { position: absolute; top: 14px; left: 22px; font-family: var(--font-heading); font-size: 5rem; line-height: 1; color: var(--color-brand-light); user-select: none; }
.review-card .stars { display: flex; gap: 2px; position: relative; z-index: 1; }
.review-card .stars svg { width: 16px; height: 16px; fill: #F5A623; color: #F5A623; }
.review-card .quote { font-size: var(--text-base); line-height: 1.7; position: relative; z-index: 1; margin: var(--space-4) 0 var(--space-6); flex: 1; }
.review-card .person { display: flex; align-items: center; gap: var(--space-3); border-top: 1px solid var(--color-border); padding-top: var(--space-5); }
.review-card .person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review-card .person .nm { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; }
.review-card .person .co { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; text-align: left; }
.faq-q span { font-family: var(--font-heading); font-size: 1.06rem; font-weight: 600; color: var(--color-text-primary); transition: color var(--transition-base); }
.faq-item.open .faq-q span, .faq-q:hover span { color: var(--color-brand); }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--color-bg-alt); display: grid; place-items: center; flex-shrink: 0; transition: background var(--transition-base); }
.faq-item.open .faq-icon { background: var(--color-brand); }
.faq-icon svg { width: 17px; height: 17px; color: var(--color-text-muted); transition: color var(--transition-base), transform var(--transition-base); }
.faq-item.open .faq-icon svg { color: #fff; transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--transition-slow); }
.faq-a p { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.65; padding-bottom: var(--space-5); padding-right: var(--space-8); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: var(--space-12); align-items: start; }
@media (max-width: 1023px){ .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); } }
.contact-form { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-10); box-shadow: var(--shadow-md); }
@media (max-width:479px){ .contact-form { padding: var(--space-6);} }
.field { margin-bottom: var(--space-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width:567px){ .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field label .req { color: var(--color-error); }
.input, .textarea, .select { width: 100%; background: var(--color-bg-card); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: .8rem 1rem; font-size: var(--text-base); color: var(--color-text-primary); transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.input:hover, .textarea:hover, .select:hover { border-color: color-mix(in srgb, var(--color-brand) 50%, var(--color-border)); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-border-focus); box-shadow: 0 0 0 3px rgba(30,95,217,.12); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235A6070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field .err { font-size: var(--text-xs); color: var(--color-error); margin-top: 6px; display: none; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--color-error); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { text-align: center; padding: var(--space-10) var(--space-6); display: none; }
.form-success.show { display: block; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--color-success) 14%, #fff); display: grid; place-items: center; margin: 0 auto var(--space-5); }
.form-success .check svg { width: 36px; height: 36px; color: var(--color-success); }
.form-success h3 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-2); }
.form-success p { color: var(--color-text-muted); }
.btn.loading { pointer-events: none; opacity: .85; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg);} }

.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }
.info-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; gap: var(--space-4); align-items: flex-start; box-shadow: var(--shadow-sm); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.info-card .ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--color-brand-light); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ic svg { width: 21px; height: 21px; color: var(--color-brand); }
.info-card .k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: 600; }
.info-card .v { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-base); margin-top: 2px; }
.info-card .v a:hover { color: var(--color-brand); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); height: 200px; position: relative; background: var(--color-bg-alt); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-bg-dark); color: rgba(240,244,255,.7); padding-top: var(--space-16); padding-bottom: var(--space-8); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 1023px){ .footer .cols { grid-template-columns: 1fr 1fr; gap: var(--space-10); } }
@media (max-width: 567px){ .footer .cols { grid-template-columns: 1fr; } }
.footer .brand-logo { color: #fff; margin-bottom: var(--space-4); }
.footer .f-tag { font-size: var(--text-sm); line-height: 1.6; max-width: 280px; }
.footer .f-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer .f-social a { width: 38px; height: 38px; border-radius: var(--radius-md); background: rgba(255,255,255,.07); display: grid; place-items: center; color: rgba(240,244,255,.7); transition: background var(--transition-base), color var(--transition-base); }
.footer .f-social a:hover { background: var(--color-brand); color: #fff; }
.footer .f-social svg { width: 18px; height: 18px; }
.footer h5 { color: #fff; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--space-5); }
.footer .f-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer .f-links a { font-size: var(--text-sm); transition: color var(--transition-base), padding-left var(--transition-base); }
.footer .f-links a:hover { color: #fff; padding-left: 4px; }
.footer .f-contact { display: flex; flex-direction: column; gap: var(--space-4); }
.footer .f-contact .row { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.footer .f-contact svg { width: 17px; height: 17px; color: var(--color-brand); flex-shrink: 0; margin-top: 3px; }
.footer .f-contact a:hover { color: #fff; }
.footer .bottom { padding-top: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); color: rgba(240,244,255,.45); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* transform-only entrance: content stays visible even if the transition never advances */
  .reveal { transform: translateY(22px); transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
  .reveal.in { transform: none; }
}

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 400; background: var(--color-text-primary); color: #fff; padding: .85rem 1.2rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem; transform: translateY(20px); opacity: 0; pointer-events: none; transition: var(--transition-base); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 17px; height: 17px; color: #4ade80; }
