:root{
  --bg:#0B0D12;
  --bg-elev:#12151C;
  --bg-elev-2:#171B24;
  --text:#EDEFF4;
  --text-muted:#8B93A5;
  --text-faint:#767E90;
  --border:#232833;
  --border-strong:#2E3542;
  --accent:#5B7FFF;
  --accent-soft:rgba(91,127,255,.12);
  --accent-2:#34E7B0;
  --accent-2-soft:rgba(52,231,176,.12);
  --accent-ink:#0A0C10;

  /* Eight content hues. A card gets one via App\Support\Palette, which sets
     --c on its root; icon, meta, tags, hover border and wash all read --c,
     so a single inline property retints the whole card. Every value clears
     4.5:1 on this background and on the light theme's surfaces. */
  --hue-blue:#5B7FFF;
  --hue-violet:#A98BFF;
  --hue-teal:#34E7B0;
  --hue-cyan:#4CC9F0;
  --hue-lime:#A8DC5C;
  --hue-amber:#F0B840;
  --hue-orange:#FF9052;
  --hue-rose:#FF7E9B;
  --c:var(--accent);
  --shadow:0 20px 50px -20px rgba(0,0,0,.55);
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:999px;
}
html[data-theme="light"]{
  --bg:#F6F7F9;
  --bg-elev:#FFFFFF;
  --bg-elev-2:#EFF1F5;
  --text:#12151C;
  --text-muted:#5B6270;
  --text-faint:#676E7C;
  --border:#E4E7EC;
  --border-strong:#D6DAE2;
  --accent:#3E63EC;
  --accent-soft:rgba(62,99,236,.08);
  --accent-2:#0FA37E;
  --accent-2-soft:rgba(15,163,126,.10);
  --accent-ink:#FFFFFF;
  --shadow:0 20px 50px -20px rgba(20,25,40,.18);

  /* Darkened counterparts — the dark-theme hues sit at 3-4:1 on white. */
  --hue-blue:#2F55E0;
  --hue-violet:#6D42D9;
  --hue-teal:#00806A;
  --hue-cyan:#0B6A8C;
  --hue-lime:#4F7A12;
  --hue-amber:#8A6000;
  --hue-orange:#B84A15;
  --hue-rose:#CE2F58;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
  transition:background .4s ease, color .4s ease;
  overflow-x:hidden;
}
::selection{ background:var(--accent); color:#fff; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
.display{ font-family:'Space Grotesk', sans-serif; }
.mono{ font-family:'JetBrains Mono', monospace; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
.wrap-narrow{ max-width:860px; margin:0 auto; padding:0 32px; }
section{ position:relative; }
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--c);
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:2px;
  background:var(--c);
  transform:rotate(45deg);
  flex:none;
}
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(28px,3.4vw,42px); line-height:1.15; font-weight:600; letter-spacing:-.01em; }
.section-head p{ margin-top:14px; font-size:16.5px; line-height:1.65; color:var(--text-muted); }
.row-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap;
  margin-bottom:56px;
}
.row-head .section-head{ margin-bottom:0; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Inter', sans-serif; font-weight:600; font-size:14.5px;
  padding:12px 22px; border-radius:999px;
  border:1px solid transparent; cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 10px 24px -8px var(--accent-soft); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(91,127,255,.45); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--border-strong); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-sm{ padding:9px 16px; font-size:13px; }
.btn:focus-visible, a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.arrow{ transition:transform .25s ease; }
.btn:hover .arrow{ transform:translateX(3px); }

/* NAV */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease, backdrop-filter .3s ease;
}
header.scrolled{
  background:color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter:blur(14px);
  border-bottom-color:var(--border);
}
/* An open drawer needs an opaque header behind it, scrolled or not. */
header.menu-open{ background:var(--bg); backdrop-filter:none; border-bottom-color:var(--border); }
nav.wrap{ height:100px; display:flex; align-items:center; justify-content:space-between; }
.logo{ display:flex; align-items:center; gap:10px; font-size:17px; font-weight:600; letter-spacing:-.01em; }
.logo-mark{ width:26px; height:26px; flex:none; }
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{ font-size:14px; color:var(--text-muted); font-weight:500; transition:color .2s ease; position:relative; }
.nav-links a:hover, .nav-links a.current{ color:var(--text); }
/* Navbar "Our Tools" dropdown */
.nav-dropdown{ position:relative; display:flex; align-items:center; }
.nav-dropdown-toggle{
  display:inline-flex; align-items:center; gap:5px;
  font-size:14px; color:var(--text-muted); font-weight:500; font-family:inherit;
  background:none; border:none; padding:0; cursor:pointer; transition:color .2s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle{ color:var(--text); }
.nav-dropdown-caret{ transition:transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret{ transform:rotate(180deg); }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 16px); left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:210px; display:flex; flex-direction:column; gap:2px;
  padding:8px; border-radius:14px;
  background:var(--bg-elev); border:1px solid var(--border-strong);
  box-shadow:0 18px 40px -12px rgba(0,0,0,.4);
  opacity:0; visibility:hidden; pointer-events:none; z-index:60;
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}
/* invisible bridge so the menu stays open while the cursor crosses the gap */
.nav-dropdown-menu::before{ content:""; position:absolute; left:0; right:0; bottom:100%; height:18px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
.nav-dropdown-menu a{
  font-size:13.5px; color:var(--text-muted); font-weight:500; white-space:nowrap;
  padding:9px 12px; border-radius:9px; transition:color .2s ease, background .2s ease;
}
.nav-dropdown-menu a:hover{ color:var(--text); background:color-mix(in srgb, var(--text) 7%, transparent); }
.mobile-menu-heading{
  font-size:12px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--text-faint); font-weight:600; padding:18px 0 4px;
}
.nav-right{ display:flex; align-items:center; gap:10px; }
.theme-toggle{
  width:38px; height:38px; border-radius:999px; border:1px solid var(--border-strong);
  background:var(--bg-elev); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text-muted); transition:border-color .2s ease, color .2s ease;
  flex:none;
}
.theme-toggle:hover{ color:var(--accent); border-color:var(--accent); }
.theme-toggle svg{ width:16px; height:16px; }
html[data-theme="dark"] .icon-sun{ display:block; }
html[data-theme="dark"] .icon-moon{ display:none; }
html[data-theme="light"] .icon-sun{ display:none; }
html[data-theme="light"] .icon-moon{ display:block; }
.logo-light-only{ display:none; }
html[data-theme="light"] .logo-dark-only{ display:none; }
html[data-theme="light"] .logo-light-only{ display:inline-block; }
.lang-select{
  position:relative; height:38px; border-radius:999px; border:1px solid var(--border-strong);
  background:var(--bg-elev); display:flex; align-items:center;
  color:var(--text-muted); transition:border-color .2s ease, color .2s ease; flex:none;
}
.lang-select:hover{ color:var(--accent); border-color:var(--accent); }
.lang-select select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:transparent; border:none; outline:none; height:100%;
  padding:0 28px 0 16px; margin:0; color:inherit;
  font-family:'JetBrains Mono', monospace; font-size:12.5px; font-weight:600;
  letter-spacing:.03em; cursor:pointer;
}
.lang-select select:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:999px; }
.lang-select select option{ background:var(--bg-elev); color:var(--text); }
.lang-select-arrow{ position:absolute; right:12px; top:50%; transform:translateY(-50%); pointer-events:none; }
.menu-btn{ display:none; background:none; border:none; color:var(--text); cursor:pointer; padding:0; align-items:center; }
.menu-btn .icon-close{ display:none; }
.menu-btn.open .icon-open{ display:none; }
.menu-btn.open .icon-close{ display:block; }

/* Mobile drawer — lives inside the fixed header, so it needs its own surface. */
.mobile-menu{ display:none; border-top:1px solid var(--border); background:var(--bg); max-height:calc(100dvh - 100px); overflow-y:auto; }
.mobile-menu.open{ display:block; }
.mobile-menu .wrap{ display:flex; flex-direction:column; padding-top:8px; padding-bottom:28px; }
.mobile-menu a:not(.btn){ font-size:16px; font-weight:500; color:var(--text-muted); padding:15px 0; border-bottom:1px solid var(--border); transition:color .2s ease; }
.mobile-menu a:not(.btn):nth-last-of-type(2){ border-bottom:none; }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn).current{ color:var(--text); }
.mobile-menu .btn{ margin-top:22px; justify-content:center; }

@media (max-width: 880px){
  .nav-links{ display:none; }
  .menu-btn{ display:flex; }
}
@media (min-width: 881px){
  .mobile-menu{ display:none !important; }
}

/* FOOTER */
footer{ border-top:1px solid var(--border); padding:64px 0 32px; }
.footer-top{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:56px; }
.footer-brand p{ font-size:13.8px; color:var(--text-muted); margin-top:14px; max-width:230px; line-height:1.6; }
.footer-col h4{ font-size:13px; margin-bottom:16px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.08em; }
.footer-col a{ display:block; font-size:14px; color:var(--text-muted); margin-bottom:12px; transition:color .2s ease; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding-top:28px; border-top:1px solid var(--border); }
.footer-bottom p{ font-size:12.5px; color:var(--text-faint); }
.footer-legal{ display:flex; gap:24px; }
.footer-legal a{ font-size:12.5px; color:var(--text-faint); }
.footer-legal a:hover{ color:var(--text-muted); }
.social-row{ display:flex; gap:12px; margin-top:18px; }
.social-row a{ width:34px; height:34px; border:1px solid var(--border-strong); border-radius:999px; display:flex; align-items:center; justify-content:center; }
.social-row svg{ width:14px; height:14px; }
@media (max-width:820px){ .footer-top{ grid-template-columns:repeat(2,1fr); } }

/* closing CTA band — see partials/cta-band.blade.php */
.cta-band{
  max-width:1180px; margin:72px auto 120px; padding:80px 48px; text-align:center;
  border-radius:var(--radius-lg); border:1px solid var(--border);
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--c) 13%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, var(--accent-2-soft), transparent 55%),
    var(--bg-elev);
}
.cta-band .eyebrow{ justify-content:center; }
.cta-band h2{ font-size:clamp(28px,3.6vw,42px); font-weight:600; letter-spacing:-.01em; max-width:640px; margin:0 auto; }
.cta-band p{ margin:16px auto 32px; color:var(--text-muted); max-width:480px; font-size:15.5px; }
@media (max-width:640px){ .cta-band{ margin:56px 20px 90px; padding:52px 24px; } }

/* reveal on scroll */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
}
