/* =========================================================
   ALPHEX AI — GLOBAL SITE STYLES
   Shared across every public page
   ========================================================= */
@import url("/chatbot/chatbot.css");
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap');

:root{
  color-scheme:light;
  --paper:#f7f7f5;
  --white:#fff;
  --ink:#101010;
  --soft:#e9e9e5;
  --muted:#74746f;
  --border:#d4d4d0;
  --accent:#7057ff;
  --accent-dark:#5540d8;
  --cyan:#35c8c0;
  --lavender:#eeeaff;
  --mint:#e6f8f4;
  --mono:'DM Mono',monospace;
  --sans:'Inter',Arial,sans-serif;
  --shell-width:1240px;
}

/* RESET */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  transition:background .35s ease,color .35s ease;
}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
button{color:inherit}
a{color:inherit}
.shell{
  width:min(var(--shell-width),calc(100% - 64px));
  margin:auto;
}

/* TYPOGRAPHY */
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{font-weight:300}
.section-label,.hero-kicker,.mono{
  font-family:var(--mono);
  font-weight:400;
}
.section-label,.hero-kicker{
  color:var(--accent);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.section-title{
  font-size:clamp(42px,5vw,72px);
  line-height:.98;
  letter-spacing:-.085em;
  margin:15px 0 0;
}
.section-copy{
  max-width:430px;
  color:#595955;
  font-size:17px;
  line-height:1.55;
}

/* TOP NAVIGATION */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background:rgba(247,247,245,.9);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(16,16,16,.08);
}
.nav{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wordmark{
  font-size:22px;
  font-weight:300;
  letter-spacing:-.075em;
  text-decoration:none;
  color:var(--ink);
  white-space:nowrap;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:26px;
  margin-left:100px;
}
.nav-links a{
  position:relative;
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
}
.nav-links a:after{
  content:'';
  position:absolute;
  left:0;
  right:100%;
  bottom:-8px;
  height:2px;
  background:var(--accent);
  transition:right .25s ease;
}
.nav-links a:hover:after{right:0}
.nav-actions{
  display:flex;
  align-items:center;
  gap:11px;
}

/* BUTTONS */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-decoration:none;
  border-radius:999px;
  border:1px solid var(--ink);
  padding:11px 17px;
  color:var(--ink);
  font-size:12px;
  font-weight:500;
  transition:transform .2s,background .2s,color .2s,
    border-color .2s,box-shadow .2s;
}
.pill:hover{transform:translateY(-2px)}
.pill.dark{
  background:linear-gradient(110deg,var(--accent-dark),var(--accent));
  color:#fff;
  border-color:var(--accent-dark);
}
.pill.dark:hover{
  background:linear-gradient(110deg,#4532bd,var(--accent-dark));
}
.pill.light{
  border-color:var(--border);
  background:transparent;
}
.pill.light:hover{
  border-color:var(--accent);
  color:var(--accent-dark);
  background:var(--lavender);
}

/* THEME TOGGLE */
.theme-toggle{
  height:39px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:0 12px;
  background:transparent;
  color:var(--ink);
  font:11px var(--mono);
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s;
}
.theme-toggle:hover{
  border-color:var(--accent);
  background:var(--lavender);
  color:var(--accent-dark);
}
.theme-icon{font:17px var(--sans);line-height:1}
.theme-label{font-family:var(--mono)}

/* AUTH PROFILE */
.auth-profile{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.profile-button{
  width:39px;
  height:39px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--accent-dark);
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent-dark),var(--accent));
  color:#fff;
  font-family:var(--sans);
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(112,87,255,.18);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.profile-button:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 20px rgba(112,87,255,.25);
}
.profile-button:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* PROFILE DROPDOWN */
.profile-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:270px;
  padding:8px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 20px 55px rgba(0,0,0,.13);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px) scale(.98);
  transform-origin:top right;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  z-index:1100;
}
.profile-menu.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.profile-user{
  padding:14px 13px 13px;
  margin:0 0 6px;
  border-bottom:1px solid var(--border);
}
.profile-name{
  color:var(--ink);
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-email{
  margin-top:4px;
  color:var(--muted);
  font:9px/1.5 var(--mono);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-account,.profile-signout{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 13px;
  border-radius:11px;
  font-size:12px;
  font-weight:400;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.profile-account{color:var(--ink)}
.profile-account:hover{background:var(--soft)}
.profile-signout{
  margin-top:2px;
  border:0;
  background:transparent;
  color:#b33a3a;
  text-align:left;
}
.profile-signout:hover{background:#f8eeee}
.profile-signout:disabled{opacity:.6;cursor:wait}
/* MOBILE MENU */
.mobile-menu{
  width:40px;
  height:40px;
  display:none;
  position:relative;
  border:1px solid var(--border);
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}
.mobile-menu span{
  position:absolute;
  left:11px;
  width:16px;
  height:1.5px;
  background:var(--ink);
  transition:transform .2s,top .2s;
}
.mobile-menu span:first-child{top:15px}
.mobile-menu span:last-child{top:22px}
.mobile-menu.open span:first-child{
  top:19px;
  transform:rotate(45deg);
}
.mobile-menu.open span:last-child{
  top:19px;
  transform:rotate(-45deg);
}

/* MOBILE PANEL */
.mobile-panel{
  display:none;
  position:fixed;
  z-index:999;
  top:76px;
  left:0;
  right:0;
  background:rgba(247,247,245,.96);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  box-shadow:0 18px 35px rgba(0,0,0,.08);
}
.mobile-panel.open{display:block}
.mobile-panel-inner{
  width:min(100% - 36px,620px);
  margin:auto;
  padding:13px 0 18px;
  display:flex;
  flex-direction:column;
}
.mobile-panel a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--ink);
  text-decoration:none;
  font-size:19px;
  font-weight:500;
  letter-spacing:-.04em;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.mobile-panel a:hover{color:var(--accent-dark)}
.mobile-panel a:last-child{
  color:var(--accent-dark);
  border-bottom:0;
}
.mobile-auth-link.logged-in{display:none}
.mobile-auth-link.logged-out{display:flex}

/* ANNOUNCEMENT */
.announcement{
  padding:12px 0;
  border-bottom:1px solid rgba(16,16,16,.1);
  font-size:12px;
  text-align:center;
}
.announcement a{
  color:var(--accent-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* TICKER */
.ticker{
  overflow:hidden;
  border-bottom:1px solid var(--border);
  background:#eeecff;
  color:#4f40bb;
  white-space:nowrap;
}
.ticker-track{
  display:inline-flex;
  align-items:center;
  gap:27px;
  min-width:max-content;
  padding:12px 0;
  font:10px var(--mono);
  letter-spacing:.1em;
  animation:tickerMove 32s linear infinite;
}
.ticker b{
  color:var(--cyan);
  font-size:13px;
  font-weight:400;
}
@keyframes tickerMove{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* GENERIC PAGE SECTIONS */
.section{padding:118px 0}
.intro{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:start;
}

/* FOOTER */
.footer-pro{
  padding:72px 0 28px;
  border-top:1px solid var(--border);
}
.footer-top{
  display:grid;
  grid-template-columns:1.5fr 2.5fr;
  gap:80px;
  padding-bottom:75px;
}
.footer-brand p{
  max-width:240px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin:18px 0;
  font-weight:300;
}
.footer-columns{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.footer-group h4{
  font:10px var(--mono);
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 20px;
}
.footer-group a{
  display:block;
  color:var(--ink);
  font-size:13px;
  font-weight:400;
  text-decoration:none;
  margin:0 0 13px;
  transition:color .2s ease,transform .2s ease;
}
.footer-group a:hover{
  color:var(--accent-dark);
  transform:translateX(3px);
}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:22px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:11px;
}
.footer-bottom .mono{font-size:9px}

/* ORIGINAL DARK MODE SUPPORT */
.dark-theme{color-scheme:dark}
body.dark-theme{
  --paper:#0e1019;
  --white:#171a28;
  --ink:#f5f4ff;
  --soft:#262a3b;
  --muted:#a5a8bd;
  --border:#34394e;
  background:var(--paper);
  color:var(--ink);
}
body.dark-theme .topbar{
  background:rgba(14,16,25,.9);
  border-color:var(--border);
}
body.dark-theme .announcement{
  border-color:var(--border);
  color:#c6c9d7;
}
body.dark-theme .ticker{
  background:#201b46;
  border-color:var(--border);
  color:#c2baff;
}
body.dark-theme .mobile-panel{
  background:rgba(14,16,25,.97);
  border-color:var(--border);
}
body.dark-theme .mobile-menu span{background:var(--ink)}
body.dark-theme .pill.light{
  border-color:var(--border);
  color:var(--ink);
}
body.dark-theme .pill.light:hover{
  background:#242044;
  border-color:#8172ff;
  color:#d5d0ff;
}
body.dark-theme .theme-toggle:hover{
  background:#242044;
  color:#c8c0ff;
}
body.dark-theme .footer-pro{border-color:var(--border)}
body.dark-theme .footer-bottom{
  border-color:var(--border);
  color:#b5b9ca;
}
body.dark-theme .footer-group a{color:var(--ink)}
body.dark-theme .footer-group a:hover{color:#bfb5ff}
body.dark-theme .footer-brand p{color:#b9bdce}
body.dark-theme .section-copy{color:#c2c5d5}
body.dark-theme .section-label,
body.dark-theme .hero-kicker{color:#aca0ff}

/* DARK MODE — AUTH PROFILE */
body.dark-theme .profile-button{
  background:linear-gradient(135deg,#8172ff,#7057ff);
  color:#fff;
  border-color:#8172ff;
}
body.dark-theme .profile-menu{
  background:#171a28;
  border-color:#34394e;
  box-shadow:0 22px 60px rgba(0,0,0,.45);
}
body.dark-theme .profile-user{border-color:#34394e}
body.dark-theme .profile-name{color:#f5f4ff}
body.dark-theme .profile-email{color:#a5a8bd}
body.dark-theme .profile-account{color:#f5f4ff}
body.dark-theme .profile-account:hover{background:#262a3b}
body.dark-theme .profile-signout{color:#ff9292}
body.dark-theme .profile-signout:hover{background:#302025}

/* ORIGINAL RESPONSIVE RULES */
@media(max-width:800px){
  .shell{width:min(100% - 36px,620px)}
  .nav{height:68px}
  .topbar .shell{width:calc(100% - 28px)}
  .nav-links{display:none}
  .nav-actions{gap:7px}
  .contact-link,.header-demo{display:none}
  .theme-toggle{
    width:40px;
    height:40px;
    padding:0;
    justify-content:center;
  }
  .theme-label{display:none}
  .mobile-menu{display:block}
  .mobile-panel{top:68px}
  .intro{display:block}
  .section{padding:78px 0}
  .section-copy{margin-top:25px}
  .footer-top{
    display:block;
    padding-bottom:48px;
  }
  .footer-columns{
    grid-template-columns:repeat(2,1fr);
    gap:35px;
    margin-top:48px;
  }
  .footer-bottom{display:block}
  .footer-bottom .mono{
    display:block;
    margin-top:12px;
  }
}
@media(max-width:480px){
  .shell{width:calc(100% - 28px)}
  .announcement{
    padding:10px 14px;
    font-size:10px;
    line-height:1.5;
  }
  .ticker-track{
    gap:18px;
    padding:10px 0;
    font-size:8px;
  }
  .section{padding:64px 0}
  .section-title{font-size:clamp(40px,12vw,58px)}
  .footer-columns{gap:27px 16px}
  .footer-group h4{
    font-size:9px;
    margin-bottom:15px;
  }
  .footer-group a{
    font-size:12px;
    margin-bottom:11px;
  }
  .footer-bottom .mono{
    font-size:8px;
    line-height:1.5;
  }
  .mobile-panel-inner{width:calc(100% - 28px)}
  .mobile-panel a{font-size:17px}
}

/* ACCESSIBILITY / MOTION */
@media(prefers-reduced-motion:reduce){
  *,
  *:before,
  *:after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

/* PRICING TEST GRID */
.pricing-test-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media(max-width:800px){
  .pricing-test-grid{grid-template-columns:1fr}
}

/* GLOBAL MOBILE CONTENT OVERFLOW FIX */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
p,li,h1,h2,h3,h4,a{overflow-wrap:break-word}
@media(max-width:800px){
  .shell{
    width:min(100% - 36px,620px);
    max-width:calc(100% - 36px);
  }
  .section,.intro{max-width:100%}
}
@media(max-width:480px){
  .shell{
    width:calc(100% - 28px);
    max-width:calc(100% - 28px);
  }
  .section{width:100%;max-width:100%}
}
/* MOBILE AUTH PROFILE */
@media(max-width:800px){
  .auth-profile{display:none!important}
  body.authenticated .auth-profile{display:none!important}
  body.authenticated #mobileLoginLink{display:none!important}
  body.authenticated #mobileProfileLink{display:flex!important}
  body:not(.authenticated) #mobileLoginLink{display:flex}
  body:not(.authenticated) #mobileProfileLink{display:none}
}

/* DESKTOP AUTH STATES */
@media(min-width:801px){
  body.authenticated #loginNavButton{display:none!important}
  body.authenticated #authProfile{display:inline-flex!important}
  body:not(.authenticated) #authProfile{display:none!important}
  body:not(.authenticated) #loginNavButton{display:inline-flex}
}

/* ACCESSIBILITY / MOTION */
@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

/* PRICING TEST GRID */
.pricing-test-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media(max-width:800px){
  .pricing-test-grid{grid-template-columns:1fr}
}

/* GLOBAL MOBILE CONTENT OVERFLOW FIX */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
p,li,h1,h2,h3,h4,a{overflow-wrap:break-word}

/* =========================================================
   ALPHEX AI — INDEX-ALIGNED DESIGN SYSTEM
   Dark-first design matching the redesigned index.html
   ========================================================= */
:root{
  color-scheme:dark;
  --paper:#08090d;
  --white:#11131c;
  --ink:#f4f4f7;
  --soft:#151824;
  --muted:#9a9ca9;
  --border:rgba(255,255,255,.12);
  --accent:#7057ff;
  --accent-dark:#5540d8;
  --cyan:#35c8c0;
  --lavender:#eeeaff;
  --mint:#e6f8f4;
  --mono:"DM Mono",monospace;
  --sans:"Inter",Arial,sans-serif;
  --shell-width:1160px;
}

html{
  scroll-padding-top:90px;
  background:var(--paper);
}
body{
  background:var(--paper);
  color:var(--ink);
  font:400 15px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{
  background:rgba(112,87,255,.4);
  color:#fff;
}
:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:4px;
}
.shell{width:min(var(--shell-width),calc(100% - 64px))}
h1,h2,h3,h4{
  font-weight:300;
  letter-spacing:-.065em;
}
.section-label,.hero-kicker,.mono{
  font-family:var(--mono);
  font-weight:400;
  letter-spacing:.08em;
}
.section-label,.hero-kicker{
  color:#b9afff;
  font-size:10px;
}
.section-title{
  font-size:clamp(42px,5.4vw,68px);
  line-height:1.02;
  letter-spacing:-.085em;
}
.section-copy{
  color:#9da0ae;
  font-size:14px;
  line-height:1.75;
  font-weight:300;
}

/* Header and navigation */
.topbar{
  background:rgba(8,9,13,.82);
  border-bottom:1px solid rgba(255,255,255,.075);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.nav{height:76px;gap:30px}
.wordmark{
  color:#f4f4f7;
  font-size:21px;
  font-weight:500;
  letter-spacing:-.075em;
}
.nav-links{
  gap:30px;
  margin-left:auto;
}
.nav-links a{
  color:#c4c5ce;
  font-size:12px;
  font-weight:400;
  transition:color .2s ease;
}
.nav-links a:hover{color:#fff}
.nav-links a:after{
  bottom:-10px;
  height:1px;
  background:linear-gradient(90deg,var(--accent),var(--cyan));
}
.nav-actions{gap:12px}

/* Shared pill buttons */
.pill{
  min-height:46px;
  padding:0 19px;
  gap:12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:#e6e6ec;
  font-size:11px;
  font-weight:500;
}
.pill:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.38);
  background:rgba(255,255,255,.06);
}
.pill.dark{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  box-shadow:0 6px 24px rgba(112,87,255,.17);
}
.pill.dark:hover{
  background:#806bff;
  border-color:#806bff;
  box-shadow:0 8px 30px rgba(112,87,255,.28);
}
.pill.light{
  border-color:rgba(255,255,255,.18);
  background:transparent;
  color:#e6e6ec;
}
.pill.light:hover{
  border-color:rgba(255,255,255,.38);
  background:rgba(255,255,255,.06);
  color:#fff;
}

/* Theme toggle */
.theme-toggle{
  min-height:39px;
  border-color:rgba(255,255,255,.16);
  color:#c4c5ce;
  font-size:10px;
}
.theme-toggle:hover{
  border-color:var(--accent);
  background:rgba(112,87,255,.13);
  color:#d5d0ff;
}

/* Profile controls */
.profile-button{
  border-color:rgba(255,255,255,.2);
  background:#181a25;
  box-shadow:none;
}
.profile-button:hover{
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:none;
}
.profile-menu{
  background:#11131c;
  border-color:#343545;
  box-shadow:0 20px 55px rgba(0,0,0,.4);
}
.profile-user{border-color:rgba(255,255,255,.1)}
.profile-name,.profile-account{color:#f4f4f7}
.profile-email{color:#8f92a2}
.profile-account:hover{
  background:rgba(112,87,255,.13);
  color:#fff;
}
.profile-signout{color:#ffb8b8}
.profile-signout:hover{background:rgba(255,100,100,.09)}

/* Mobile navigation */
.mobile-menu{
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.03);
}
.mobile-menu span{background:#fff}
.mobile-panel{
  background:rgba(9,10,15,.98);
  border-color:rgba(255,255,255,.1);
  box-shadow:0 18px 35px rgba(0,0,0,.24);
}
.mobile-panel a{
  color:#e4e5ec;
  border-color:rgba(255,255,255,.08);
  font-size:13px;
  font-weight:400;
  letter-spacing:0;
}
.mobile-panel a:hover,
.mobile-panel a:last-child{color:#b9afff}

/* Announcements and ticker */
.announcement{
  border-color:rgba(255,255,255,.1);
  color:#bfc1ce;
}
.announcement a{color:#b9afff}
.ticker{
  background:#f0efff;
  border-color:#dfdcf2;
  color:#4e419b;
}
.ticker b{color:#35bfb5}

/* Shared content sections */
.section{padding:116px 0}
.intro{gap:80px}

/* Footer — dark homepage palette */
.footer-pro{
  background:#07080b;
  border-top:1px solid rgba(255,255,255,.08);
  padding:55px 0 22px;
}
.footer-top{
  grid-template-columns:1.5fr 2.5fr;
  gap:50px;
  padding-bottom:48px;
}
.footer-brand p{
  color:#8b8d9a;
  font-size:11px;
  line-height:1.8;
}
.footer-group h4{
  color:#a0a2af;
  font-size:9px;
  letter-spacing:.1em;
}
.footer-group a{
  color:#a7a9b5;
  font-size:11px;
}
.footer-group a:hover{color:#fff}
.footer-bottom{
  border-color:rgba(255,255,255,.09);
  color:#858897;
  font-size:10px;
}
.footer-bottom .mono{font-size:9px}
.footer-bottom a{color:#a5a6b2}

/* Dark theme defaults */
body.dark-theme{
  --paper:#08090d;
  --white:#11131c;
  --ink:#f4f4f7;
  --soft:#151824;
  --muted:#9a9ca9;
  --border:rgba(255,255,255,.12);
  background:var(--paper);
  color:var(--ink);
}
body.dark-theme .topbar{
  background:rgba(8,9,13,.82);
  border-color:rgba(255,255,255,.075);
}
body.dark-theme .mobile-panel{
  background:rgba(9,10,15,.98);
  border-color:rgba(255,255,255,.1);
}
body.dark-theme .section-copy{color:#9da0ae}
body.dark-theme .section-label,
body.dark-theme .hero-kicker{color:#b9afff}

/* Light theme — toggled by site.js */
body:not(.dark-theme){
  color-scheme:light;
  --paper:#f7f7f5;
  --white:#fff;
  --ink:#101010;
  --soft:#e9e9e5;
  --muted:#74746f;
  --border:#d4d4d0;
  background:var(--paper);
  color:var(--ink);
}
body:not(.dark-theme) .topbar{
  background:rgba(247,247,245,.9);
  border-color:rgba(16,16,16,.08);
}
body:not(.dark-theme) .wordmark,
body:not(.dark-theme) .nav-links a{color:var(--ink)}
body:not(.dark-theme) .nav-links a:hover{color:var(--accent-dark)}
body:not(.dark-theme) .pill.light{
  border-color:var(--border);
  background:transparent;
  color:var(--ink);
}
body:not(.dark-theme) .pill.light:hover{
  border-color:var(--accent);
  background:var(--lavender);
  color:var(--accent-dark);
}
body:not(.dark-theme) .theme-toggle{
  border-color:var(--border);
  color:var(--ink);
}
body:not(.dark-theme) .theme-toggle:hover{
  background:var(--lavender);
  color:var(--accent-dark);
}
body:not(.dark-theme) .mobile-menu{border-color:var(--border)}
body:not(.dark-theme) .mobile-menu span{background:var(--ink)}
body:not(.dark-theme) .mobile-panel{
  background:rgba(247,247,245,.97);
  border-color:var(--border);
}
body:not(.dark-theme) .mobile-panel a{
  color:var(--ink);
  border-color:var(--border);
}
body:not(.dark-theme) .section-copy{color:#595955}
body:not(.dark-theme) .section-label,
body:not(.dark-theme) .hero-kicker{color:var(--accent-dark)}
body:not(.dark-theme) .profile-menu{
  background:#fff;
  border-color:var(--border);
}
body:not(.dark-theme) .profile-name,
body:not(.dark-theme) .profile-account{color:var(--ink)}
body:not(.dark-theme) .profile-user{border-color:var(--border)}
body:not(.dark-theme) .profile-email{color:var(--muted)}
body:not(.dark-theme) .footer-pro{
  background:var(--paper);
  border-color:var(--border);
}
body:not(.dark-theme) .footer-brand p,
body:not(.dark-theme) .footer-bottom{color:var(--muted)}
body:not(.dark-theme) .footer-group h4{color:var(--muted)}
body:not(.dark-theme) .footer-group a{color:var(--ink)}
body:not(.dark-theme) .footer-group a:hover{color:var(--accent-dark)}
body:not(.dark-theme) .footer-bottom{border-color:var(--border)}

/* Responsive refinements */
@media(max-width:1000px){
  .shell{width:min(var(--shell-width),calc(100% - 44px))}
  .nav-links{gap:18px}
  .nav{gap:18px}
}
@media(max-width:800px){
  .shell{width:min(100% - 36px,620px)}
  .nav{height:68px}
  .topbar .shell{width:calc(100% - 28px)}
  .nav-links{display:none}
  .nav-actions{gap:8px}
  .contact-link,.header-demo{display:none}
  .theme-toggle{
    width:40px;
    height:40px;
    padding:0;
    justify-content:center;
  }
  .theme-label{display:none}
  .mobile-menu{display:block}
  .mobile-panel{top:68px}
  .intro{display:block}
  .section{padding:78px 0}
  .section-copy{margin-top:20px}
  .footer-top{
    display:block;
    padding-bottom:48px;
  }
  .footer-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
    margin-top:48px;
  }
  .footer-bottom{display:block}
  .footer-bottom .mono{
    display:block;
    margin-top:12px;
  }
}
@media(max-width:480px){
  .shell{
    width:calc(100% - 32px);
    max-width:calc(100% - 32px);
  }
  .section{padding:64px 0}
  .section-title{font-size:clamp(40px,11vw,54px)}
  .footer-columns{gap:27px 16px}
  .footer-group h4{
    font-size:9px;
    margin-bottom:15px;
  }
  .footer-group a{
    font-size:12px;
    margin-bottom:11px;
  }
  .mobile-panel-inner{width:calc(100% - 28px)}
  .mobile-panel a{font-size:17px}
}
