/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}





/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}





/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}




/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}




/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}




/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-800-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-800-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Defaults — overridden by data-mood / data-type / data-atmos */
  --navy-900: #0B2545;
  --navy-800: #102d59;
  --navy-700: #18407a;
  --blue-600: #1D4ED8;
  --blue-500: #2563EB;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --accent: #38BDF8;
  --white: #FFFFFF;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-letter-spacing: -0.02em;
  --display-weight: 700;
  --grid-opacity: 0.5;
  --grid-size: 64px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  letter-spacing: var(--display-letter-spacing);
  line-height: 1.15;
  font-weight: var(--display-weight);
}

.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: -0.01em; }

/* ===== TWEAK: MOOD ===== */
[data-mood="dark"] {
  --navy-900: #F8FAFC;
  --navy-800: #E2E8F0;
  --navy-700: #1e3a8a;
  --blue-600: #60A5FA;
  --blue-500: #3B82F6;
  --blue-100: #1e3a8a;
  --blue-50:  #0f1d3d;
  --slate-700: #CBD5E1;
  --slate-600: #94A3B8;
  --slate-500: #64748B;
  --slate-300: #334155;
  --slate-200: #1e293b;
  --slate-100: #0f172a;
  --slate-50:  #060e1f;
  --white: #0a1628;
  --accent: #38BDF8;
}
[data-mood="dark"] body { background: #060e1f; color: #CBD5E1; }
[data-mood="dark"] .site-header { background: rgba(6,14,31,0.85); border-bottom-color: rgba(255,255,255,0.08); }
[data-mood="dark"] .nav-cta { background: var(--blue-500); color: #060e1f !important; }
[data-mood="dark"] .nav-cta:hover { background: var(--accent); color: #060e1f !important; }
[data-mood="dark"] .btn-primary { background: var(--blue-500); color: #060e1f; box-shadow: 0 4px 16px rgba(59,130,246,0.4); }
[data-mood="dark"] .btn-primary:hover { background: var(--accent); color: #060e1f; }
[data-mood="dark"] .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.15); color: #E2E8F0; }
[data-mood="dark"] .btn-secondary:hover { background: rgba(255,255,255,0.05); color: #F8FAFC; }
[data-mood="dark"] .brand-mark { background: var(--blue-500); color: #060e1f; }
[data-mood="dark"] .trust-item .badge { background: var(--blue-500); color: #060e1f; }
[data-mood="dark"] .service-card { background: #0f1d3d; border-color: rgba(255,255,255,0.08); }
[data-mood="dark"] .service-card:hover { border-color: var(--blue-500); }
[data-mood="dark"] .case { background: #0f1d3d; border-color: rgba(255,255,255,0.08); }
[data-mood="dark"] .case.featured { background: linear-gradient(135deg, #0f1d3d, #1e3a8a); border-color: var(--blue-500); }
[data-mood="dark"] .case-visual { background: #060e1f; border-left-color: rgba(255,255,255,0.06); }
[data-mood="dark"] .case-badge.featured { background: var(--blue-500); color: #060e1f; }
[data-mood="dark"] .case-badge.standard { background: rgba(59,130,246,0.15); color: var(--blue-500); border-color: rgba(59,130,246,0.3); }
[data-mood="dark"] .stat { background: #0f1d3d; border-color: rgba(255,255,255,0.08); }
[data-mood="dark"] .stat-num { color: var(--white); }
[data-mood="dark"] .secondary-card { background: #0f1d3d; border-color: rgba(255,255,255,0.08); }
[data-mood="dark"] .sec-icon { background: rgba(59,130,246,0.15); color: var(--blue-500); }
[data-mood="dark"] .svc-tag { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #94A3B8; }
[data-mood="dark"] .eyebrow { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: var(--blue-500); }
[data-mood="dark"] .hero { background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(59,130,246,0.18), transparent 60%), radial-gradient(ellipse 60% 50% at 0% 100%, rgba(56,189,248,0.08), transparent 60%), #060e1f; }
[data-mood="dark"] .services { background: #0a1628; border-top-color: rgba(255,255,255,0.06); border-bottom-color: rgba(255,255,255,0.06); }
[data-mood="dark"] .secondary { background: #0a1628; border-top-color: rgba(255,255,255,0.06); }
[data-mood="dark"] .contact { background: #02060f; }
[data-mood="dark"] .site-footer { background: #02060f; }
[data-mood="dark"] .hero-visual { border-color: rgba(56,189,248,0.3); box-shadow: 0 24px 48px rgba(56,189,248,0.1), 0 0 0 1px rgba(56,189,248,0.2); }
[data-mood="dark"] .hv-tag { background: #0f1d3d; border-color: rgba(255,255,255,0.1); }
[data-mood="dark"] .hv-tag-text strong { color: #F8FAFC; }
[data-mood="dark"] .hv-tag-text { color: #CBD5E1; }
[data-mood="dark"] .hv-tag-icon { background: rgba(59,130,246,0.15); color: var(--accent); }

[data-mood="warm"] {
  --navy-900: #1A1410;
  --navy-800: #2A1F18;
  --navy-700: #3D2F25;
  --blue-600: #C2410C;
  --blue-500: #EA580C;
  --blue-100: #FED7AA;
  --blue-50:  #FFF7ED;
  --slate-700: #44403C;
  --slate-600: #57534E;
  --slate-500: #78716C;
  --slate-300: #D6D3D1;
  --slate-200: #E7E5E4;
  --slate-100: #F5F5F4;
  --slate-50:  #FAFAF9;
  --accent: #F59E0B;
  --white: #FFFBF5;
}
[data-mood="warm"] body { background: #FFFBF5; }
[data-mood="warm"] .hero { background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(234,88,12,0.12), transparent 60%), radial-gradient(ellipse 60% 50% at 0% 100%, rgba(245,158,11,0.06), transparent 60%), #FFFBF5; }

/* ===== TWEAK: TYPE PERSONALITY ===== */
[data-type="editorial"] {
  --font-display: 'Fraunces', Georgia, serif;
  --display-letter-spacing: -0.025em;
  --display-weight: 600;
}
[data-type="editorial"] h1 { font-weight: 800; font-style: italic; }
[data-type="editorial"] h1 .accent { font-style: italic; }
[data-type="editorial"] h2 { font-weight: 600; }

[data-type="mono"] {
  --font-display: 'IBM Plex Mono', monospace;
  --font-mono: 'IBM Plex Mono', monospace;
  --display-letter-spacing: -0.04em;
  --display-weight: 600;
}
[data-type="mono"] h1, [data-type="mono"] h2 { font-weight: 600; }
[data-type="mono"] .nav-links a { font-family: var(--font-mono); font-size: 13px; }
[data-type="mono"] .btn { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* ===== TWEAK: ATMOSPHERE ===== */
[data-atmos="clean"] .hero::before { display: none; }
[data-atmos="clean"] .section-eyebrow { display: none; }
[data-atmos="clean"] .svc-tags { display: none; }
[data-atmos="clean"] .case-meta dt { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 11px; }
[data-atmos="clean"] .pipe-meta { display: none; }

[data-atmos="dense"] {
  --grid-opacity: 0.85;
}
[data-atmos="dense"] .section-eyebrow { font-size: 13px; }
[data-atmos="dense"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 100% 8px;
  mix-blend-mode: multiply;
}
[data-atmos="dense"] .hero::before { background-size: 32px 32px; }
[data-atmos="dense"] .service-card::after,
[data-atmos="dense"] .case::after {
  content: attr(data-tag);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-400);
  letter-spacing: 0.05em;
}
[data-atmos="dense"] .service-card,
[data-atmos="dense"] .case { position: relative; }
[data-atmos="dense"] h2::before {
  content: '// ';
  font-family: var(--font-mono);
  color: var(--blue-600);
  font-weight: 400;
  font-size: 0.7em;
  vertical-align: 0.2em;
}
[data-atmos="dense"] .container { position: relative; }
[data-atmos="dense"] section > .container::before {
  content: attr(data-marker);
  position: absolute;
  top: -8px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-400);
  letter-spacing: 0.1em;
}

a { color: var(--blue-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy-900); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--navy-900);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(56,189,248,0.4) 100%);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--blue-600); color: var(--white) !important; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header .container { padding-right: 12px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
  }
  .nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  [data-mood="dark"] .nav-toggle { border-color: rgba(255,255,255,0.15); }
  [data-mood="dark"] .nav-toggle span { background: #F8FAFC; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 4px); left: 12px; right: 12px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
    z-index: 60;
  }
  [data-mood="dark"] .nav-links {
    background: #0a1628;
    border-color: rgba(255,255,255,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-links a:hover { background: var(--blue-50); }
  [data-mood="dark"] .nav-links a:hover { background: rgba(59,130,246,0.12); }

  .site-header { position: relative; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(11,37,69,0.04), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  animation: heroGridDrift 22s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 2px at 18% 24%, var(--blue-500) 50%, transparent 51%),
    radial-gradient(circle 2px at 72% 18%, var(--accent) 50%, transparent 51%),
    radial-gradient(circle 2px at 38% 78%, var(--blue-500) 50%, transparent 51%),
    radial-gradient(circle 2px at 88% 64%, var(--blue-500) 50%, transparent 51%),
    radial-gradient(circle 2px at 8% 58%, var(--accent) 50%, transparent 51%);
  opacity: 0.55;
  animation: heroNodesPulse 4.4s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 75%);
  z-index: 0;
}
@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}
@keyframes heroNodesPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 0.7;  transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.eyebrow-loc {
  background: linear-gradient(90deg, var(--blue-50), rgba(255,255,255,0));
  border-color: var(--blue-100);
  padding: 6px 14px 6px 12px;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.eyebrow-loc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.18), transparent);
  transform: translateX(-100%);
  animation: ebShimmer 5s ease-in-out infinite;
}
.eyebrow-loc .loc-pin {
  color: var(--accent);
  flex-shrink: 0;
  animation: pinDrop 2.4s ease-out infinite;
  transform-origin: 50% 100%;
}
.eyebrow-loc .eb-sep { color: var(--slate-400); margin: 0 1px; }
.eyebrow-loc .eb-remote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 600;
}
.eyebrow-loc .radar {
  position: relative;
  width: 12px; height: 12px;
  display: inline-block;
}
.eyebrow-loc .radar-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: var(--blue-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}
.eyebrow-loc .radar-r {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border: 1.5px solid var(--blue-500);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0.8;
  animation: radarPing 2s ease-out infinite;
}
.eyebrow-loc .radar-r.r2 { animation-delay: 1s; }
@keyframes ebShimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
@keyframes pinDrop {
  0%, 100%  { transform: translateY(0) scale(1); }
  20%       { transform: translateY(-3px) scale(1.05); }
  40%       { transform: translateY(0) scale(0.95); }
  55%       { transform: translateY(-1.5px) scale(1.02); }
  70%       { transform: translateY(0) scale(1); }
}
@keyframes radarPing {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-loc::before, .eyebrow-loc .loc-pin, .eyebrow-loc .radar-r { animation: none; }
}

/* AWS logo (replaces "AWS" badge in trust bar) */
.aws-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 5px 8px;
  height: 32px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}
[data-mood="dark"] .aws-logo { background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.15); }
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  margin-bottom: 24px;
}
h1 .accent {
  background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--slate-600);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.55;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11,37,69,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29,78,216,0.3);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
}
.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--navy-900);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-600);
  font-weight: 500;
}
.trust-item .badge {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* Hero visual: terminal-style architecture diagram */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 24px 48px rgba(11,37,69,0.25), 0 8px 16px rgba(11,37,69,0.12);
  border: 1px solid var(--navy-700);
}
.hv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.hv-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: 8px;
}
.hv-body {
  padding: 28px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
}
.hv-line { display: flex; gap: 12px; }
.hv-num { color: rgba(255,255,255,0.3); width: 18px; flex-shrink: 0; user-select: none; }
.hv-key { color: #93C5FD; }
.hv-str { color: #A5F3FC; }
.hv-com { color: rgba(255,255,255,0.4); font-style: italic; }
.hv-num-val { color: #FCD34D; }
.hv-fn { color: #FDE68A; }
.hv-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }

/* Floating tag on hero visual */
.hv-tag {
  position: absolute;
  bottom: -14px;
  right: -12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.hv-tag-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.hv-tag-text { color: var(--slate-700); }
.hv-tag-text strong { color: var(--navy-900); display: block; }

/* ============== SECTION DEFAULTS ============== */
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 500;
}
h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--slate-600);
  text-wrap: pretty;
}

/* ============== SERVICES (PRIMARY) ============== */
.services {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--navy-900));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.svc-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 16px;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
}

/* ============== CASES ============== */
.cases-grid {
  display: grid;
  gap: 24px;
}
.case {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-sm);
}
.case.featured {
  grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--blue-100);
  background: linear-gradient(135deg, var(--white), var(--blue-50));
}
@media (max-width: 880px) {
  .case, .case.featured { grid-template-columns: 1fr; }
}

.case-content { padding: 40px; }
.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.case-badge.featured { background: var(--navy-900); color: var(--white); }
.case-badge.standard { background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }

.case h3 {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.case-content > p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
}
.case-meta dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 4px;
}
.case-meta dd {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 14px;
}

/* Case visual: abstract diagram */
.case-visual {
  background: var(--slate-50);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--slate-200);
  position: relative;
}
.case.featured .case-visual {
  background: var(--navy-900);
  color: var(--white);
  border-left: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,0.2), transparent 50%);
}
@media (max-width: 880px) {
  .case-visual { border-left: none; border-top: 1px solid var(--slate-200); }
}

/* RIPS pipeline diagram */
.pipeline {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipe-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
  opacity: 0.55;
  transform: translateX(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.pipe-step.is-done {
  opacity: 1;
  transform: translateX(0);
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.35);
}
.pipe-step.is-active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(37,99,235,0.3);
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08), 0 8px 24px rgba(37,99,235,0.25);
}
.pipe-connector {
  width: 2px;
  height: 10px;
  background: rgba(255,255,255,0.15);
  margin-left: 31px;
  border-radius: 1px;
  transition: background 0.4s;
}
.pipe-connector.is-done { background: rgba(16,185,129,0.5); }
.pipe-step::after {
  content: '';
  display: none;
}
.pipe-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pipe-step.is-done .pipe-num {
  background: #10B981;
  color: var(--white);
}
.pipe-step.is-active .pipe-num {
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
  animation: pulse-num 1.6s ease-in-out infinite;
}
@keyframes pulse-num {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(37,99,235,0.05); }
}
.pipe-num .num,
.pipe-num .check,
.pipe-num .spinner { display: none; }
.pipe-step .pipe-num .num { display: block; }
.pipe-step.is-done .pipe-num .num { display: none; }
.pipe-step.is-done .pipe-num .check { display: grid; place-items: center; }
.pipe-step.is-active .pipe-num .num,
.pipe-step.is-active .pipe-num .check { display: none; }
.pipe-step.is-active .pipe-num .spinner {
  display: block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress bar inside active step */
.pipe-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--accent));
  width: 0%;
  transition: width 0.3s linear;
  z-index: 0;
}
.pipe-step.is-active .pipe-progress { width: 100%; transition: width 2.4s linear; }
.pipe-label {
  flex: 1;
  position: relative;
  z-index: 1;
}
.pipe-label > div:first-child {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.pipe-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* COVID stats card */
.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 400px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quote engine card */
.quote-mock {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
}
.qm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--slate-200);
  font-size: 13px;
}
.qm-row:last-child { border-bottom: none; }
.qm-label { color: var(--slate-500); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.qm-val { color: var(--navy-900); font-weight: 600; }
.qm-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.qm-total-label { font-weight: 600; color: var(--navy-900); font-size: 14px; }
.qm-total-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-600);
}

/* ============== SECONDARY SERVICES ============== */
.secondary {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.secondary-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
@media (max-width: 920px) { .secondary-grid-3 { grid-template-columns: 1fr; max-width: 600px; } }
@media (max-width: 720px) { .secondary-grid { grid-template-columns: 1fr; } }
.secondary-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sec-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sec-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.secondary-card h3 { font-size: 16px; margin-bottom: 4px; }
.secondary-card p { font-size: 13.5px; color: var(--slate-600); }

/* ============== CONTACT ============== */
.contact {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 0%, rgba(37,99,235,0.3), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(56,189,248,0.1), transparent 50%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { color: var(--white); }
.contact .section-eyebrow { color: var(--accent); }
.contact .section-head p { color: rgba(255,255,255,0.7); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s;
  color: var(--white);
}
.channel:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(56,189,248,0.4);
  color: var(--white);
  transform: translateX(4px);
}
.ch-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ch-icon svg { width: 20px; height: 20px; }
.ch-text { flex: 1; }
.ch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 2px;
}
.ch-value { font-weight: 600; font-size: 14.5px; }
.ch-arrow { color: rgba(255,255,255,0.4); transition: transform 0.2s, color 0.2s; }
.channel:hover .ch-arrow { color: var(--accent); transform: translateX(4px); }

/* WhatsApp featured channel */
.channel-wa {
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(37,211,102,0.05));
  border: 1px solid rgba(37,211,102,0.35);
  padding: 22px 22px;
  position: relative;
  overflow: hidden;
}
.channel-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(37,211,102,0.25), transparent 50%);
  pointer-events: none;
}
.channel-wa:hover {
  background: linear-gradient(135deg, rgba(37,211,102,0.28), rgba(37,211,102,0.08));
  border-color: rgba(37,211,102,0.6);
  transform: translateX(4px);
  color: var(--white);
}
.ch-icon-wa {
  background: #25D366;
  color: #0B2545;
  width: 48px; height: 48px;
  box-shadow: 0 0 0 4px rgba(37,211,102,0.15), 0 8px 16px rgba(37,211,102,0.3);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.ch-icon-wa svg { width: 24px; height: 24px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,211,102,0.15), 0 8px 16px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0.05), 0 8px 16px rgba(37,211,102,0.25); }
}
.ch-label-wa { display: block; margin-bottom: 6px; }
.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(37,211,102,0.1);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(37,211,102,0.25);
}
.wa-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: wa-blink 1.6s ease-in-out infinite;
}
@keyframes wa-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
.ch-value-wa {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ch-sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* Form */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.btn-submit {
  width: 100%;
  background: var(--white);
  color: var(--navy-900);
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-submit:hover { background: var(--accent); color: var(--navy-900); }
.form-status {
  font-size: 13px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  min-height: 18px;
}

/* ============== FOOTER ============== */
.site-footer {
  background: #060f1f;
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .mono { color: rgba(255,255,255,0.4); }

/* ============== RESPONSIVE — TABLET & MOBILE ============== */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; }
  h2 { font-size: clamp(24px, 5vw, 34px); }
  .hero { padding: 80px 0 64px; }
  .hero p.lead { font-size: 17px; max-width: 100%; }
  .hero-visual { margin-top: 8px; }
  .hv-body { padding: 20px 16px; font-size: 12px; line-height: 1.8; }
  .hv-tag { right: 16px; padding: 10px 14px; font-size: 12px; }
  .trust-bar { gap: 14px 18px; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  h1 { font-size: clamp(28px, 8vw, 38px); }
  h2 { font-size: clamp(22px, 6vw, 30px); }
  h3 { font-size: 18px; }
  .hero { padding: 64px 0 48px; }
  .hero p.lead { font-size: 16px; margin-bottom: 28px; }

  /* eyebrow wraps cleanly */
  .eyebrow { font-size: 12px; padding: 5px 12px; flex-wrap: wrap; row-gap: 2px; }
  .eyebrow-loc .eb-sep { display: inline; }

  /* CTA buttons stack full-width */
  .cta-row { flex-direction: column; gap: 10px; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

  /* trust bar wraps to 2 columns */
  .trust-bar { gap: 12px 16px; padding-top: 20px; }
  .trust-item { font-size: 12px; gap: 8px; }
  .aws-logo { height: 28px; padding: 4px 6px; }
  .aws-logo svg { width: 28px; height: 16px; }

  /* hero visual: smaller code window, hide line numbers padding */
  .hv-body { padding: 16px 12px; font-size: 11px; line-height: 1.75; }
  .hv-num { width: 14px; font-size: 10px; }
  .hv-tag { right: 12px; bottom: -10px; padding: 8px 12px; }
  .hv-tag-icon { width: 28px; height: 28px; font-size: 11px; }
  .hv-tag-text { font-size: 11px; }

  /* services / cards */
  .service-card { padding: 24px 20px; }
  .svc-icon { width: 44px; height: 44px; }
  .svc-icon svg { width: 22px; height: 22px; }
  .svc-tags { gap: 6px; }
  .svc-tag { padding: 3px 8px; font-size: 11px; }

  /* case studies */
  .case { padding: 0; border-radius: 14px; overflow: hidden; }
  .case-content { padding: 28px 22px; }
  .case-visual { padding: 28px 22px; min-height: 220px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .case-stat-num { font-size: 22px; }

  /* secondary cards */
  .secondary-card { padding: 22px 18px; }

  /* contact */
  .contact { padding: 56px 0; }
  .contact-grid { gap: 28px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  input, textarea, select { font-size: 16px !important; } /* prevent iOS zoom on focus */

  /* footer stacks */
  .site-footer .inner { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }

  /* tweaks panel — keep usable on small screens */
  .twk-panel { right: 12px !important; bottom: 12px !important; max-width: calc(100vw - 24px) !important; }
}

@media (max-width: 380px) {
  h1 { font-size: 26px; }
  .nav-cta { padding: 6px 10px; font-size: 11px; }
  .trust-bar { gap: 10px 14px; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .case-stat-num { font-size: 20px; }
}

/* Touch-device polish: remove hover transforms that feel laggy on tap */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .secondary-card:hover,
  .case:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* Smooth reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Caso: invitaciones de boda ===== */
.case-boda .case-visual { background: linear-gradient(160deg, var(--blue-50), var(--white)); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px 24px; }
.case-boda figure { margin: 0; }
.case-boda img { display: block; width: 100%; height: auto; }
.shot-panel { border-radius: 12px; overflow: hidden; border: 1px solid var(--slate-200); box-shadow: 0 14px 34px rgba(11,37,69,0.16); background: var(--white); }
.case-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.shot-moviles { text-decoration: none; transition: transform .2s; }
.shot-moviles:hover { transform: translateY(-3px); }
.shot-moviles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.shot-moviles figure { border-radius: 20px; overflow: hidden; border: 4px solid var(--navy-900); box-shadow: 0 12px 26px rgba(11,37,69,0.22); background: var(--navy-900); }
.shot-moviles figure:nth-child(2) { margin-top: 18px; }
.case-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 4px; }
.precio-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--blue-600); }
.precio-uni { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); }
.case-precios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.precio-tier { border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: 12px; padding: 14px 16px; }
.precio-tier.tier-cotiza { background: var(--white); border: 1px dashed var(--slate-300); }
.case-content > .case-precios p, .precio-tier p { font-size: 13px; line-height: 1.5; color: var(--slate-600); margin: 8px 0 0; }
.tier-etiqueta { display: block; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-500); }
.precio-tier .case-precio { margin: 0; }
.precio-num.precio-cotiza { font-size: 22px; line-height: 1.15; color: var(--navy-900); letter-spacing: -0.01em; }
@media (max-width: 460px) { .case-precios { grid-template-columns: 1fr; } }
.case-lista { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.case-lista li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--slate-700); }
.case-lista li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; border: 1px solid var(--blue-100); }
@media (max-width: 880px) { .case-boda .case-visual { padding: 22px 16px; } .precio-num { font-size: 34px; } }

/* ===== PÁGINAS DE PRODUCTO (/invitaciones-boda/, /rips/) ===== */
.page-hero { padding: 72px 0 72px; }
.hero.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; margin-bottom: 22px; }
.crumbs { font-size: 13px; color: var(--slate-500); margin-bottom: 20px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero .cta-row { margin-bottom: 28px; }
.page-hero .trust-bar { gap: 10px 22px; font-size: 14px; color: var(--slate-600); }
.page-hero .trust-bar strong { color: var(--navy-900); }
.page-hero .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
.shot-moviles img, .shot-panel img { display: block; width: 100%; height: auto; }
.page-hero .shot-moviles { display: grid; max-width: 520px; margin: 0 auto; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pasos.cuatro { grid-template-columns: repeat(4, 1fr); }
.paso { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.paso-num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.paso h3 { font-size: 18px; margin-bottom: 8px; }
.paso p { font-size: 15px; color: var(--slate-600); line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features-grid .service-card { padding: 28px; }
.features-grid .service-card p { font-size: 15px; color: var(--slate-600); line-height: 1.6; }
.features-grid.cuatro-col { grid-template-columns: repeat(4, 1fr); }
.alt-bg { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.demo-bloque { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.demo-bloque p { color: var(--slate-600); font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.demo-bloque .shot-panel { box-shadow: 0 18px 42px rgba(11,37,69,0.18); }
.precios { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.precios .precio-tier { padding: 28px; border-radius: var(--radius-lg); }
.precios .precio-num { font-size: 48px; }
.precios .precio-num.precio-cotiza { font-size: 28px; }
.precios .case-lista { margin: 20px 0 0; }
.precios p { font-size: 15px; color: var(--slate-600); line-height: 1.6; margin: 12px 0 0; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); margin-bottom: 12px; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue-600); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--slate-600); font-size: 15.5px; line-height: 1.7; }
.cta-band { background: var(--navy-900); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; font-size: 17px; line-height: 1.6; }
.cta-band .cta-row { justify-content: center; margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy-900); box-shadow: none; }
.cta-band .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #fff; }
.case-mas { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--blue-600); text-decoration: none; }
.case-mas:hover { text-decoration: underline; }
.site-footer .foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer .foot-links a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-footer .foot-links a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 1100px) { .features-grid.cuatro-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .page-hero { padding: 56px 0 56px; } .demo-bloque { grid-template-columns: 1fr; gap: 32px; } .pasos.cuatro { grid-template-columns: repeat(2, 1fr); } .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .pasos, .pasos.cuatro, .features-grid, .precios { grid-template-columns: 1fr; } .page-hero .hero-visual, .page-hero .shot-moviles { max-width: 100%; } .cta-band { padding: 56px 0; } }
