/* =========================================================
   VANITECH LABS — Global Design Tokens & Shared Styles
   ========================================================= */
:root {
  --navy-950: #050f25;
  --navy-900: #081838;
  --navy-800: #0a1f3d;
  --navy-700: #102050;
  --navy-600: #1a2c5c;
  --mint: #18e0b8;
  --mint-bright: #20e0b8;
  --cyan: #20c8c8;
  --blue: #2090e8;
  --blue-deep: #2878f8;
  --ink: #081838;
  --ink-soft: #3a4a6b;
  --ink-mute: #6b7a96;
  --paper: #ffffff;
  --paper-soft: #f8f8f8;
  --paper-cool: #f0f5fa;
  --line: #e4ebf3;
  --line-soft: #eef2f8;
  --hi: #ffffff;
  --grad-text: linear-gradient(95deg, var(--mint) 0%, var(--cyan) 45%, var(--blue) 100%);
  --grad-btn:  linear-gradient(95deg, var(--mint) 0%, var(--blue) 100%);
  --grad-navy: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  --grad-navy-radial: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(24,224,184,.10), transparent 60%),
                      radial-gradient(ellipse 70% 50% at 0% 100%, rgba(32,144,232,.10), transparent 60%);
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(8,24,56,.06), 0 1px 1px rgba(8,24,56,.04);
  --shadow-md: 0 8px 24px rgba(8,24,56,.08), 0 2px 6px rgba(8,24,56,.04);
  --shadow-lg: 0 24px 60px rgba(8,24,56,.14);
  --shadow-glow: 0 20px 50px rgba(32,144,232,.25);
  --container: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: .95; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--mint); border-radius: 2px; }
.eyebrow.on-dark { color: var(--mint); }
.eyebrow.on-dark::before { background: var(--mint); }

/* Display heading */
.display { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.display .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display.on-dark { color: #fff; }
.lead { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--ink-soft); max-width: 62ch; }
.lead.on-dark { color: rgba(255,255,255,.78); }

/* Grid bg */
.grid-bg { position: relative; }
.grid-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(8,24,56,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,24,56,0.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, #000 30%, transparent 90%); -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, #000 30%, transparent 90%); pointer-events: none; z-index: 0; }
.grid-bg > * { position: relative; z-index: 1; }

/* Topbar */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.85); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: var(--container); margin: 0 auto; gap: 24px; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); transition: color .2s; }
.topbar-left a:hover { color: var(--mint); }
.topbar-left svg { width: 14px; height: 14px; stroke-width: 1.8; }
.topbar-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--grad-btn); color: var(--navy-900); font-weight: 600; padding: 8px 16px; border-radius: 999px; font-family: var(--f-body); letter-spacing: 0; font-size: 13px; transition: transform .2s ease, box-shadow .25s ease; }
.topbar-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(32,224,184,.35); }
.topbar-cta svg { width: 14px; height: 14px; }

/* Navbar */
header.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s ease, background .2s ease; }
header.navbar.scrolled { box-shadow: 0 6px 24px rgba(8,24,56,.08); background: rgba(255,255,255,.96); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.01em; font-size: 19px; color: var(--ink); text-decoration: none; }
.logo-img {
  display: block;
  height: 42px;
  width: auto;
  transition: transform .25s ease, opacity .25s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: bicubic;
}
.logo:hover .logo-img { transform: scale(1.02); }
.logo-text { font-weight: 800; font-size: 19px; }

/* Footer logo sizing */
footer.site .logo-img {
  height: 52px;
  filter: brightness(1.08) contrast(1.05) drop-shadow(0 0 1px rgba(24,224,184,.08));
}

/* Nav links */
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
nav.primary a { display: inline-block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease, background .15s ease; position: relative; }
nav.primary a:hover { color: var(--ink); background: var(--paper-cool); }
nav.primary a.active { color: var(--ink); }
nav.primary a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--grad-btn); border-radius: 2px; }
nav.primary li { position: relative; }
nav.primary li.has-sub > a::after { content: ""; display: inline-block; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; transition: transform .2s ease; vertical-align: middle; }
nav.primary li.has-sub:hover > a::after, nav.primary li.has-sub.open > a::after { transform: rotate(225deg) translateY(2px); }

/* Subnav */
.subnav { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px; min-width: 220px; z-index: 500; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .2s ease; }
nav.primary li.has-sub:hover .subnav, nav.primary li.has-sub.open .subnav { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.subnav.mega { min-width: 520px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.subnav.mega .subnav-section { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); padding: 8px 8px 4px; margin-top: 6px; border-top: 1px solid var(--line-soft); }
.subnav.mega .subnav-section:first-child { margin-top: 0; border-top: none; }
.subnav a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: background .15s, color .15s; }
.subnav a:hover { background: var(--paper-cool); color: var(--ink); }
.subnav a .sub-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--paper-cool); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.subnav a:hover .sub-icon { background: linear-gradient(135deg, rgba(24,224,184,.18), rgba(32,144,232,.12)); }
.subnav a .sub-icon svg { width: 15px; height: 15px; stroke: var(--blue-deep); }
.subnav a .sub-text strong { display: block; font-weight: 600; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.subnav a .sub-text span { font-size: 11.5px; color: var(--ink-mute); font-weight: 400; line-height: 1.4; }

/* Mobile drawer */
.drawer-panel .drawer-subnav { display: none; flex-direction: column; gap: 2px; padding: 4px 0 4px 16px; border-left: 2px solid var(--line); margin: 2px 12px 6px; }
.drawer-panel .drawer-subnav.open { display: flex; }
.drawer-panel .drawer-subnav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 9px 10px; border-radius: 8px; }
.drawer-panel .drawer-subnav a:hover { background: var(--paper-cool); color: var(--ink); }
.drawer-panel li.has-sub-m > a { display: flex; justify-content: space-between; align-items: center; }
.drawer-panel li.has-sub-m > a .drw-chevron { width: 18px; height: 18px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-right: 2px; }
.drawer-panel li.has-sub-m.open > a .drw-chevron { transform: rotate(225deg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: border-color .2s, color .2s, transform .15s; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-1px); }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 8px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); }
.hamburger svg { width: 22px; height: 22px; color: var(--ink); }
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.drawer.open { pointer-events: auto; opacity: 1; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(8,24,56,.45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,.2,.2,1); padding: 24px; display: flex; flex-direction: column; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer-close { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.drawer-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.drawer-panel a { display: block; padding: 14px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.drawer-panel a:hover { background: var(--paper-cool); }
.drawer-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); display: flex; flex-direction: column; gap: 10px; }
.drawer-foot a { color: var(--ink); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--grad-btn); color: var(--navy-900); font-weight: 700; font-size: 15px; padding: 16px 26px; border-radius: 999px; box-shadow: 0 14px 36px rgba(32,224,184,.32); transition: transform .2s ease, box-shadow .25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(32,224,184,.45); }
.btn-primary svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; padding: 16px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); transition: border-color .2s, background .2s, transform .15s; }
.btn-outline-dark:hover { border-color: var(--mint); background: rgba(24,224,184,.08); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); font-weight: 600; font-size: 15px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--blue); background: transparent; transition: background .2s, transform .15s; }
.btn-outline:hover { background: rgba(32,144,232,.07); transform: translateY(-1px); }

/* Section template */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .display { margin-bottom: 22px; }

/* Inner page hero */
.page-hero { background: var(--grad-navy); color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 90% 10%, rgba(24,224,184,.14), transparent 55%), radial-gradient(ellipse 70% 60% at 0% 100%, rgba(32,144,232,.16), transparent 55%); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 80%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb { font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--mint); }
.page-hero .breadcrumb span { color: var(--mint); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; margin: 0 0 24px; }
.page-hero h1 .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 60ch; margin: 0; }

/* CTA strip */
.cta-strip { background: var(--paper-soft); padding: 80px 0 110px; }
.cta-card { background: var(--grad-navy); border-radius: var(--r-xl); padding: 60px 56px; color: #fff; display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 1px solid rgba(24,224,184,.22); border-radius: 50%; }
.cta-card::after { content: ""; position: absolute; right: 20px; top: 20px; width: 140px; height: 140px; border: 1px solid rgba(32,144,232,.25); border-radius: 50%; }
.cta-card .eyebrow { color: var(--mint); margin-bottom: 18px; }
.cta-card .eyebrow::before { background: var(--mint); }
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
.cta-card h2 .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card p { color: rgba(255,255,255,.78); font-size: 16px; margin: 16px 0 0; max-width: 60ch; }

/* Footer */
footer.site { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 80px 0 32px; position: relative; overflow: hidden; }
footer.site::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(24,224,184,.08), transparent 60%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; color: rgba(255,255,255,.65); max-width: 38ch; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-family: var(--f-mono); font-size: 13px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-contact a:hover { color: var(--mint); }
.footer-contact svg { width: 14px; height: 14px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); margin: 0 0 18px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.05); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--mint); color: var(--navy-900); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,15,37,.65); backdrop-filter: blur(6px); }
.modal-panel { position: relative; z-index: 1; background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 520px; padding: 36px 32px 32px; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2,.6,.2,1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--paper-soft); }
.modal-panel h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal-panel p.sub { color: var(--ink-soft); margin: 0 0 22px; font-size: 14.5px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.form-row input, .form-row textarea, .form-row select { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(32,144,232,.12); }
.modal-submit { width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--grad-btn); color: var(--navy-900); font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s; }
.modal-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(32,144,232,.3); }
.modal-foot { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); text-align: center; margin-top: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Icons */
svg.ic { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topbar-left svg.ic, .topbar-cta svg.ic, .footer-contact svg.ic { width: 14px; height: 14px; }
.btn-primary svg.ic, .btn-outline-dark svg.ic, .btn-outline svg.ic, .modal-submit svg.ic { width: 16px; height: 16px; }
.hamburger svg.ic, .modal-close svg.ic, .drawer-close svg.ic { width: 22px; height: 22px; }
.socials svg.ic { width: 16px; height: 16px; }
#svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Card grids */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 30px 28px; position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(32,144,232,.12), rgba(24,224,184,.12)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background .25s, transform .25s; }
.card-icon svg { width: 24px; height: 24px; stroke: var(--blue-deep); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { background: var(--grad-btn); }
.card:hover .card-icon svg { stroke: #fff; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }
.card-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }

/* Dark section */
.dark-section { background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.dark-section::before { content: ""; position: absolute; inset: 0; background: var(--grad-navy-radial); pointer-events: none; }
.dark-section::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 90%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 90%); pointer-events: none; }
.dark-section .container { position: relative; z-index: 2; }
.dark-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 30px 28px; transition: transform .25s, border-color .25s, background .25s; }
.dark-card:hover { transform: translateY(-4px); border-color: rgba(24,224,184,.4); background: rgba(24,224,184,.04); }
.dark-card h3, .dark-card h4 { color: #fff; }
.dark-card p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; margin: 0; }

/* Tech pills */
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); transition: border-color .2s, color .2s, transform .15s; }
.tech-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.tech-pill:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; }
.stat-item .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-item .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 10px; }
.stat-item.light .lbl { color: var(--ink-mute); }

/* Responsive */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2,1fr); }
  .cards-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-card { grid-template-columns: 1fr; padding: 44px 32px; }
  .stats-row { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
}
@media (max-width: 820px) {
  .topbar-left a:nth-of-type(2) { display: none; }
  .topbar-cta span { display: none; }
  .topbar-cta::after { content: "Demo"; font-weight: 600; }
  nav.primary, .nav-right .btn-ghost { display: none; }
  .hamburger { display: inline-flex; }
  section { padding: 70px 0; }
  .page-hero { padding: 60px 0 70px; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1, .page-hero h1 { font-size: 2.1rem; }
  .display { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   LOGO — Transparent rendering fixes
   ========================================================= */
.logo-img {
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}
/* Navbar logo: larger + transparent blend */
header.navbar .logo-img,
.nav-inner .logo-img {
  height: 100px !important;
  width: auto;
  mix-blend-mode: multiply;
  background: transparent;
}
/* Footer logo: larger, bright on dark bg */
footer.site .logo-img {
  height: 150px !important;
  width: auto;
  mix-blend-mode: normal;
  filter: brightness(1.1) contrast(1.05);
}
/* Drawer logo */
.drawer-panel .logo-img {
  height: 80px !important;
  width: auto;
  mix-blend-mode: multiply;
  background: transparent;
}

/* Adjust nav padding to accommodate larger logo */
header.navbar { padding: 0; }
.nav-inner {
  padding: 8px 24px;
  align-items: center;
}
.nav-inner .logo {
  padding: 4px 0;
  align-items: center;
}

/* =========================================================
   MEGA DROPDOWN — Prevent left-side overflow for first items
   ========================================================= */
nav.primary li.mega-first-item .subnav.mega,
nav.primary li.mega-second-item .subnav.mega {
  left: 0;
  transform: translateY(8px);
  right: auto;
}
nav.primary li.mega-first-item:hover .subnav.mega,
nav.primary li.mega-first-item.open .subnav.mega,
nav.primary li.mega-second-item:hover .subnav.mega,
nav.primary li.mega-second-item.open .subnav.mega {
  transform: translateY(0);
}

/* Viewport safety for all mega dropdowns */
.subnav.mega {
  min-width: 480px;
  max-width: min(560px, calc(100vw - 32px));
}

/* =========================================================
   RESPONSIVE — Logo padding adjustment at small screens
   ========================================================= */
@media (max-width: 820px) {
  header.navbar .logo-img,
  .nav-inner .logo-img {
    height: 72px !important;
  }
  .drawer-panel .logo-img {
    height: 64px !important;
  }
  .nav-inner { padding: 6px 16px; }
}
@media (max-width: 480px) {
  header.navbar .logo-img,
  .nav-inner .logo-img {
    height: 56px !important;
  }
}

/* Scrolled navbar - slightly reduce logo height smoothly */
header.navbar.scrolled .logo-img,
header.navbar.scrolled .nav-inner .logo-img {
  height: 80px !important;
  transition: height .3s ease;
}
/* Ensure nav inner stays vertically centered with large logo */
.nav-inner {
  min-height: 80px;
}
header.navbar.scrolled .nav-inner {
  min-height: 64px;
}
