/* =========================================================
   NAV + FOOTER (new design) — supporting stylesheet
   Loaded alongside the site's existing style.css on pages that
   were updated to use the new header.nav / .site-footer markup
   (matching articles/autm2026/index.html). Scoped to header.nav
   and .site-footer wherever a class name (like .container, .btn,
   .eyebrow) is also used elsewhere on the page, so this file only
   changes the nav and footer, not the rest of each page.
   ========================================================= */
:root{
  --ink:#0b0a14;
  --ink-soft:#15132a;
  --ink-raised:#1c1a35;
  --ink-line: rgba(255,255,255,0.12);
  --paper:#ffffff;
  --paper-raised:#ffffff;
  --paper-sunken:#f4f4fa;
  --border:#e6e6f0;
  --border-strong:#d3d3e6;
  --text:#0b0a14;
  --text-secondary:#54536b;
  --text-muted:#8b899e;
  --text-inverse:#ffffff;
  --text-inverse-soft:rgba(255,255,255,0.75);
  --brand:#634afc;
  --brand-hover:#4931dc;
  --brand-soft:#b8adff;
  --tint-10:#eff1ff;
  --tint-15:#ebeeff;
  --tint-20:#e5e7ff;
  --tint-30:#dcdfff;
  --badge-dark-bg:#301792;
  --badge-dark-text:#ded9ff;
  --live:#34d399;
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  --shadow-sm:0 2px 8px rgba(11,10,20,0.06);
  --shadow-md:0 12px 32px rgba(11,10,20,0.10);
  --shadow-glow:0 0 0 1px rgba(99,74,252,0.18), 0 8px 28px rgba(99,74,252,0.16);
  --font-display:'Satoshi',Inter,-apple-system,BlinkMacSystemFont,sans-serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-mono:'JetBrains Mono','SF Mono',monospace;
}

.section-dark{
  background:var(--ink);color:var(--text-inverse);position:relative;
  background-image:radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size:24px 24px;
}

/* ---- container / eyebrow / buttons, scoped to nav+footer only ---- */
.nav .container, .site-footer .container{max-width:1240px;margin:0 auto;padding:0 32px;}
@media(max-width:720px){.nav .container, .site-footer .container{padding:0 20px;}}

.nav .eyebrow, .site-footer .eyebrow{
  display:inline-flex;align-items:center;justify-content:center;padding:2px 12px;border-radius:8px;
  font-family:var(--font-body);font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;
  background:var(--tint-15);color:var(--brand-hover);
  text-transform:none;letter-spacing:normal;margin-bottom:0;
}
.nav .eyebrow.on-dark, .site-footer .eyebrow.on-dark{background:var(--badge-dark-bg);color:var(--badge-dark-text);}
.mega .eyebrow.on-dark{background:var(--tint-15);color:var(--brand-hover);}

.nav .btn, .site-footer .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:9px 20px;
  border-radius:6px;border:none;cursor:pointer;font-family:var(--font-body);font-size:14px;font-weight:500;
  line-height:20px;white-space:nowrap;transition:background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.nav .btn:hover, .site-footer .btn:hover{transform:scale(0.97);}
.nav .btn:active, .site-footer .btn:active{transform:translateY(1px);}
.nav .btn-primary, .site-footer .btn-primary{background:var(--brand);color:#fff;}
.nav .btn-primary:hover, .site-footer .btn-primary:hover{background:var(--brand-hover);}
.nav .btn-secondary, .site-footer .btn-secondary{background:var(--tint-20);color:var(--brand-hover);}
.nav .btn-secondary:hover, .site-footer .btn-secondary:hover{background:var(--tint-30);}
.nav .btn-ghost, .site-footer .btn-ghost{background:transparent;color:var(--text);padding:9px 4px;gap:10px;}
.nav .btn-ghost:hover, .site-footer .btn-ghost:hover{color:var(--brand);}
.nav .btn-lg, .site-footer .btn-lg{height:52px;padding:12px 28px;font-size:15px;border-radius:8px;}

/* =========================================================
   NAV
   ========================================================= */
header.nav{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.88);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);
  font-family:var(--font-body);line-height:normal;
}
header.nav h1, header.nav h2, header.nav h3, header.nav h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4{
  font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance;letter-spacing:-0.015em;
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:72px;gap:32px;}
.nav-left{display:flex;align-items:center;gap:64px;}
.logo{display:flex;align-items:center;gap:2.9px;}
.logo-wordmark{height:20.66px;width:auto;flex-shrink:0;}
.logo-tm{width:6.55px;height:6.55px;flex-shrink:0;align-self:flex-start;margin-top:1px;}
.footer-brand .logo-wordmark{height:16.7px;}
.footer-brand .logo-tm{width:5.29px;height:5.29px;}
header.nav .nav-links{display:flex;align-items:center;gap:2px;flex:none;}
.nav-item{position:relative;}
.nav-link{display:flex;align-items:center;gap:6px;padding:9px 14px;border-radius:7px;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;}
.nav-link:hover{background:var(--paper-sunken);}
.nav-link svg{width:13px;height:13px;transition:transform .2s;flex-shrink:0;}
.nav-item.is-open .nav-link svg{transform:rotate(180deg);}
.nav-actions{display:flex;align-items:center;gap:20px;}
.nav-hamburger{display:none;background:transparent;border:none;padding:8px;cursor:pointer;}
.nav-mobile-cta{display:none;}

/* Mega menu — light panel, matches the nav bar */
.mega{
  position:fixed;top:84px;left:50%;transform:translateX(-50%) translateY(8px);
  width:min(1080px,92vw);max-width:calc(100vw - 32px);background:var(--paper);color:var(--text);border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:0 24px 60px rgba(11,10,20,0.16);padding:0;display:none;
  opacity:0;transition:opacity .16s ease, transform .16s ease;align-items:stretch;
  background-image:radial-gradient(rgba(11,10,20,0.05) 1px, transparent 1px);background-size:22px 22px;
}
.nav-item.is-open .mega{display:flex;opacity:1;transform:translateX(-50%) translateY(0);}

/* Left column — product list */
.mega-products{width:234px;flex-shrink:0;padding:20px 12px;display:flex;flex-direction:column;gap:2px;
  border-right:1px solid var(--border);max-height:min(560px,80vh);overflow-y:auto;}
.mega-product-tab{display:block;width:100%;text-align:left;background:transparent;border:none;cursor:pointer;
  padding:10px 12px;border-radius:var(--radius-sm);color:inherit;font-family:inherit;transition:background .15s ease;}
.mega-product-tab:hover{background:var(--paper-sunken);}
.mega-product-tab.active{background:var(--tint-15);}
.mega-product-tab-title{font-size:14px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:7px;}
.mega-product-tab-sub{font-size:11.5px;color:var(--text-secondary);margin-top:2px;line-height:1.4;}

/* Middle column — features for the active product */
.mega-panels{flex:1;min-width:0;padding:22px 24px;display:flex;flex-direction:column;justify-content:center;height:390px;box-sizing:border-box;}
.mega-panel{display:none;}
.mega-panel.active{display:block;}
.mega-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:56px;}
.mega-panel-head h4{font-size:16.5px;font-weight:700;color:var(--text);line-height:1.3;max-width:380px;}
.mega-panel-head .eyebrow{margin-bottom:24px;}
.mega-panel-see-all{font-size:12.5px;font-weight:600;color:var(--brand-hover);display:inline-flex;align-items:center;gap:4px;white-space:nowrap;flex-shrink:0;}
.mega-panel-see-all svg{width:12px;height:12px;}
.mega-panel-arrow{display:none;}
.mega-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px 28px;align-items:start;}
.mega-feature-item{display:flex;align-items:flex-start;gap:11px;padding:10px;margin:-10px;border-radius:var(--radius-sm);transition:background .15s ease;}
.mega-feature-item:hover{background:var(--paper-sunken);}
.mega-icon{width:32px;height:32px;border-radius:8px;background:var(--tint-15);color:var(--brand-hover);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid rgba(99,74,252,0.3);}
.mega-icon svg{width:16px;height:16px;}
.mega-feature-title{display:block;font-size:13px;font-weight:600;color:var(--text);}
.mega-feature-desc{display:block;font-size:11.5px;color:var(--text-secondary);margin-top:3px;line-height:1.45;min-height:2.9em;}
.badge{font-family:var(--font-mono);font-size:9.5px;font-weight:600;letter-spacing:0.03em;padding:2px 6px;border-radius:4px;background:rgba(52,211,153,0.15);color:var(--live);border:1px solid rgba(52,211,153,0.3);}

/* Right column — spotlight card */
.mega-spotlight-group{width:236px;flex-shrink:0;position:relative;
  border-left:1px solid var(--border);background:var(--paper-sunken);border-radius:0 var(--radius-lg) var(--radius-lg) 0;}
.mega-spotlight{display:none;padding:22px 20px;flex-direction:column;align-items:flex-start;gap:6px;
  height:390px;box-sizing:border-box;}
.mega-spotlight.active{display:flex;}
.mega-spotlight-text{display:flex;flex-direction:column;gap:6px;}
.mega-spotlight .eyebrow{font-size:10px;align-self:flex-start;}
.mega-spotlight h4{font-size:16px;font-weight:700;color:var(--text);margin-top:6px;}
.mega-spotlight p{font-size:12.5px;color:var(--text-secondary);line-height:1.5;}
.mega-cta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--brand-hover);}

/* Spotlight diagrams */
.spot-svg-anim{align-self:stretch;margin-top:24px;}
.spot-path{fill:none;stroke:rgba(99,74,252,0.35);stroke-width:1.3;stroke-dasharray:5 6;animation:flow 2.2s linear infinite;}
@keyframes flow{to{stroke-dashoffset:-33;}}
.spot-label{font-family:var(--font-body);font-size:9.5px;fill:var(--text-secondary);}
.spot-mono{font-family:var(--font-body);font-size:9px;font-weight:600;letter-spacing:.05em;fill:#634afc;}
@keyframes spotDotFade{0%{opacity:0;} 8%{opacity:1;} 85%{opacity:1;} 100%{opacity:0;}}
.spot-traveler{animation:spotDotFade 2.4s ease-in-out infinite;}
.node-dot{animation:pulse 2.8s ease-in-out infinite;}
.node-dot.d2{animation-delay:.4s;} .node-dot.d3{animation-delay:.8s;} .node-dot.d4{animation-delay:1.2s;} .node-dot.d5{animation-delay:1.6s;}
@keyframes pulse{0%,100%{opacity:.55;} 50%{opacity:1;}}
@media(prefers-reduced-motion:reduce){.node-dot{animation:none;} .node-traveler{display:none;}}

.spot-ticker{position:relative;width:100%;height:60px;margin-top:24px;align-self:stretch;}
.spot-ticker-item{position:absolute;inset:0;display:flex;align-items:flex-start;gap:8px;
  background:#fff;border:1px solid var(--border);border-radius:10px;padding:11px 12px;box-shadow:0 8px 20px rgba(11,10,20,0.10);
  opacity:0;animation:spotTickerCycle 16s ease-in-out infinite;}
.spot-ticker-item:nth-child(1){animation-delay:0s;}
.spot-ticker-item:nth-child(2){animation-delay:4s;}
.spot-ticker-item:nth-child(3){animation-delay:8s;}
.spot-ticker-item:nth-child(4){animation-delay:12s;}
.spot-ticker-check{width:16px;height:16px;border-radius:50%;background:rgba(52,211,153,0.18);color:var(--live);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;}
.spot-ticker-check svg{width:10px;height:10px;}
.spot-ticker-txt{font-size:12px;line-height:1.4;color:var(--text);}
@keyframes spotTickerCycle{
  0%{opacity:0;transform:translateY(6px);}
  5%,18%{opacity:1;transform:translateY(0);}
  24%,100%{opacity:0;transform:translateY(-6px);}
}

.spot-clock-media{display:flex;flex-direction:column;align-items:center;gap:8px;align-self:stretch;margin-top:24px;
  position:relative;top:-20px;}
.spot-clock-photo{position:relative;width:60%;margin:0 auto;border-radius:12px;overflow:hidden;}
.spot-clock-photo img{display:block;width:100%;height:auto;}
.spot-clock-toast{display:flex;align-items:center;gap:7px;
  background:var(--ink);color:#fff;border-radius:10px;padding:8px 11px;
  font-size:11.5px;font-weight:500;white-space:nowrap;}

@media(prefers-reduced-motion:reduce){
  .spot-ticker-item{animation:none;opacity:1;position:relative;}
  .spot-ticker-item:not(:first-child){display:none;}
  .spot-path{animation:none;}
  .spot-traveler{animation:none;opacity:1;}
}

header.nav .dropdown{
  position:absolute;top:calc(100% + 12px);left:0;min-width:210px;background:var(--paper-raised);
  border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:8px;
  display:none;opacity:0;transform:translateY(8px);transition:opacity .16s ease, transform .16s ease;
}
.nav-item.is-open .dropdown{display:block;opacity:1;transform:translateY(0);}
header.nav .dropdown a{display:block;padding:9px 12px;border-radius:6px;font-size:13.5px;font-weight:500;color:var(--text);}
header.nav .dropdown a:hover{background:var(--paper-sunken);}

@media(max-width:960px){
  header.nav .nav-links{position:fixed;top:72px;left:0;right:0;height:calc(100vh - 72px);background:var(--paper);flex-direction:column;align-items:stretch;
    padding:16px;gap:2px;clip-path:inset(0 0 0 100%);transition:clip-path .25s ease;overflow-y:auto;z-index:90;}
  body.menu-open header.nav .nav-links{clip-path:inset(0 0 0 0%);}
  .nav-link{justify-content:space-between;padding:15px;font-size:16px;}
  .nav-link svg{width:16px;height:16px;}
  .mega,header.nav .dropdown{position:static;transform:none;width:100%;max-width:none;box-shadow:none;margin-top:6px;opacity:1;}
  .nav-item.is-open .mega{display:flex;flex-direction:column;max-height:none;transform:none;}

  .mega-products,.mega-spotlight-group{display:none;}
  .mega-panels{width:100%;padding:4px 12px;height:auto;display:block;}
  .mega-panel{display:block;}
  .mega-panel:not(:last-child) .mega-panel-head{border-bottom:1px solid var(--border);}
  .mega-panel.mega-open .mega-panel-head{border-bottom:none;}
  .mega-panel-head{cursor:pointer;user-select:none;align-items:center;margin-bottom:0;padding:14px 26px 14px 0;position:relative;}
  .mega-panel-head .eyebrow{margin-bottom:6px;}
  .mega-panel-see-all{display:none;}
  .mega-panel-arrow{display:block;position:absolute;right:4px;top:50%;width:16px;height:16px;
    color:var(--text-secondary);transform:translateY(-50%);transition:transform .2s ease;}
  .mega-panel.mega-open .mega-panel-arrow{transform:translateY(-50%) rotate(180deg);}
  .mega-feature-grid{display:none;grid-template-columns:1fr;gap:16px;padding:0 0 20px;}
  .mega-panel:not(:last-child) .mega-feature-grid{border-bottom:1px solid var(--border);}
  .mega-panel.mega-open .mega-feature-grid{display:grid;}

  .nav-actions .btn{display:none;}
  .nav-hamburger{display:flex;}

  .nav-mobile-cta{display:flex;flex-direction:column;gap:10px;margin-top:auto;padding-top:20px;}
  .nav-mobile-cta .btn{width:100%;justify-content:center;}
  .nav-mobile-cta .btn-ghost{background:var(--paper-sunken);}
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{padding-top:76px;font-family:var(--font-body);line-height:normal;}
.footer-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:52px;border-bottom:1px solid var(--ink-line);}
.footer-top h3{color:#fff;font-size:clamp(21px,2.4vw,28px);max-width:574px;letter-spacing:-0.015em;}
.footer-cols{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:28px;padding:52px 0;}
.footer-brand p{font-size:13px;color:var(--text-inverse-soft);line-height:1.6;max-width:270px;margin-top:12px;}
.footer-col h5{font-family:var(--font-display);font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--brand-soft);margin-top:1.67em;margin-bottom:14px;}
.footer-col a{display:block;font-size:13.5px;color:var(--text-inverse-soft);padding:5px 0;}
.footer-col a:hover{color:#fff;}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:26px 0;border-top:1px solid var(--ink-line);}
.footer-bottom p{font-size:12px;color:#948dca;font-family:var(--font-body);}
.footer-legal-links{display:flex;gap:16px;}
.footer-legal-links a{font-size:12px;color:#948dca;}
.footer-legal-links a:hover{color:#fff;}
.footer-social{display:flex;gap:10px;}
.footer-social a{width:32px;height:32px;border-radius:7px;border:1px solid var(--ink-line);display:flex;align-items:center;justify-content:center;}
.footer-social a:hover{background:rgba(255,255,255,0.06);}
.footer-social svg{width:15px;height:15px;color:var(--text-inverse-soft);}
@media(max-width:900px){.footer-cols{grid-template-columns:1fr 1fr;}.footer-brand{grid-column:span 2;}}
@media(max-width:560px){.footer-cols{grid-template-columns:1fr;}.footer-brand{grid-column:span 1;}}
@media(max-width:414px){.footer-legal-links{flex-direction:column;gap:8px;}}
