:root {
  --bg: #050a13;
  --bg-2: #07111f;
  --panel: rgba(10, 23, 42, 0.78);
  --panel-solid: #0a172a;
  --panel-soft: #0d1d34;
  --border: rgba(118, 164, 219, 0.18);
  --text: #f5f8ff;
  --muted: #aab8ce;
  --blue: #1778ff;
  --blue-2: #49a8ff;
  --cyan: #35d0e6;
  --green: #32d79b;
  --orange: #f6a621;
  --red: #ff5b64;
  --shadow: 0 24px 80px rgba(0, 62, 160, 0.22);
  --radius: 22px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(23,120,255,.16), transparent 25%),
    radial-gradient(circle at 15% 25%, rgba(53,208,230,.09), transparent 22%),
    linear-gradient(180deg, #030812 0%, #06101d 48%, #040a13 100%);
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.theme-toggle {
  width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center;
  padding:0; border:1px solid var(--border); border-radius:10px;
  color:#ffd15c; background:rgba(255,255,255,.035); cursor:pointer;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle span { font-size:1.28rem; line-height:1; }
.theme-toggle:hover { transform:translateY(-2px); border-color:rgba(73,168,255,.52); background:rgba(73,168,255,.1); }
.theme-toggle:focus-visible { outline:3px solid rgba(50,136,255,.28); outline-offset:2px; }
.site-header .theme-toggle { position:absolute; top:50%; right:48px; transform:translateY(-50%); }
.site-header .theme-toggle:hover { transform:translateY(calc(-50% - 2px)); }
.site-header .nav-actions { margin-right:84px; }
.site-header .nav > .btn-secondary { margin-right:84px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 70px 0; }
.platform-preview { padding-top:0; padding-bottom:24px; }
.platform-preview .browser-frame img { border-radius:12px; }
.platform-preview .carousel-stage,
.platform-preview .carousel-slide { border-radius:12px; }
.platform-preview .carousel-stage { overflow:hidden; }
.platform-features { padding-top:24px; }
.platform-features .card { display:grid; grid-template-columns:46px 1fr; column-gap:14px; align-items:center; align-content:start; }
.platform-features .icon { grid-column:1; grid-row:1; margin-bottom:0; }
.platform-features .card:nth-child(1) .icon { color:#55dda9; }
.platform-features .card:nth-child(2) .icon { color:#5b9cff; }
.platform-features .card:nth-child(3) .icon { color:#ff626b; }
.platform-features h3 { grid-column:2; grid-row:1; margin:0; }
.platform-features p { grid-column:1 / -1; grid-row:2; margin-top:18px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid rgba(73,168,255,.25);
  border-radius: 999px;
  background: rgba(23,120,255,.08);
  color: #8fc7ff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.center { text-align:center; margin-left:auto; margin-right:auto; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size: clamp(3.1rem, 7vw, 6.5rem); line-height:.98; letter-spacing:-.055em; margin-bottom:24px; }
.hero-copy h1 { font-size:clamp(2.6rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); line-height:1.08; letter-spacing:-.04em; margin-bottom:18px; }
h3 { font-size: 1.16rem; margin-bottom: 8px; }
p { color: var(--muted); }
.gradient-text { background: linear-gradient(90deg, #3288ff, #66caff); -webkit-background-clip:text; color:transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(3,8,18,.78);
  backdrop-filter: blur(18px);
}
.nav { min-height: 74px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; min-width:340px; }
.brand img { width:340px; height:72px; object-fit:contain; object-position:left center; }
.nav-links { display:flex; align-items:center; gap:26px; color:#d5deed; font-size:1rem; }
.nav-links a:hover { color:#fff; }
.nav-links .mobile-nav-action { display:none; }
.nav-actions { display:flex; align-items:center; gap:10px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:46px; padding:0 20px; border-radius:10px;
  border:1px solid rgba(255,255,255,.14); color:#fff; font-weight:750;
  background:rgba(255,255,255,.035); transition:.22s ease; cursor:pointer;
}
.btn:hover { transform: translateY(-2px); border-color:rgba(73,168,255,.45); }
.btn-primary { background:linear-gradient(135deg, #1468e9, #2091ff); border-color:transparent; box-shadow:0 12px 34px rgba(23,120,255,.3); }
.btn-secondary { background:rgba(5,14,26,.7); }
.menu-button { display:none; width:44px; height:44px; border-radius:10px; border:1px solid var(--border); background:var(--panel); color:white; }

@media (min-width: 1041px) {
  .site-header .nav-actions > .btn-secondary {
    position:absolute;
    top:50%;
    right:104px;
    transform:translateY(-50%);
  }
  .site-header .nav-actions > .btn-secondary:hover {
    transform:translateY(calc(-50% - 2px));
  }
}

@media (min-width: 1280px) {
  .site-header .brand {
    position:absolute;
    top:50%;
    left:48px;
    transform:translateY(-50%);
  }
  .site-header .nav-links {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
  }
}

.hero { padding: 96px 0 56px; overflow:hidden; }
.hero .container { width:min(1480px, calc(100% - 40px)); }
.hero-grid { display:grid; grid-template-columns: minmax(390px, .72fr) minmax(0, 1.55fr); gap:48px; align-items:center; }
.hero-copy p { font-size:1.12rem; max-width:600px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:30px 0 38px; }
.hero-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.metric { padding:18px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(180deg, rgba(18,38,67,.7), rgba(8,19,35,.68)); }
.metric strong { display:block; font-size:1.55rem; }
.metric span { color:var(--muted); font-size:.82rem; }
.metric small { display:block; color:var(--green); margin-top:7px; }
.hero-visual { position:relative; }
.hero-visual::before { content:""; position:absolute; inset:10% 5% -12% 15%; background:rgba(23,120,255,.28); filter:blur(85px); border-radius:50%; pointer-events:none; }
.product-carousel { position:relative; z-index:1; }
.browser-frame { position:relative; border:1px solid rgba(94,155,230,.24); border-radius:20px; padding:10px; background:rgba(6,14,26,.86); box-shadow:var(--shadow); overflow:hidden; }
.browser-bar { height:32px; display:flex; align-items:center; gap:7px; padding:0 8px; }
.browser-bar i { width:8px; height:8px; border-radius:50%; background:#33455f; }
.carousel-stage { position:relative; aspect-ratio:2032 / 1219; overflow:hidden; border-radius:12px; border:1px solid rgba(255,255,255,.06); background:#090d14; }
.carousel-slide { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; visibility:hidden; transition:opacity .55s ease; }
.carousel-slide.carousel-slide-wide { object-fit:cover; object-position:center top; }
.carousel-slide.active { opacity:1; visibility:visible; }
.carousel-dots { position:relative; z-index:2; display:flex; justify-content:center; align-items:center; gap:10px; padding-top:18px; }
.carousel-dot { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#41526c; cursor:pointer; transition:width .22s ease, background .22s ease, transform .22s ease; }
.carousel-dot:hover, .carousel-dot:focus-visible { background:#77baff; transform:scale(1.15); outline:none; }
.carousel-dot.active { width:28px; border-radius:999px; background:linear-gradient(90deg, var(--blue), var(--cyan)); }

.logo-strip { padding: 30px 0; border-top:1px solid rgba(255,255,255,.055); border-bottom:1px solid rgba(255,255,255,.055); }
.logo-strip .container { display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; color:#8090aa; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; }

.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card {
  border:1px solid var(--border); border-radius:var(--radius); padding:24px;
  background:linear-gradient(180deg, rgba(13,29,52,.78), rgba(6,16,29,.82));
  box-shadow:0 14px 50px rgba(0,0,0,.16);
}
.card:hover { border-color:rgba(73,168,255,.38); transform:translateY(-3px); transition:.22s; }
.icon { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; background:linear-gradient(135deg, rgba(23,120,255,.24), rgba(53,208,230,.12)); border:1px solid rgba(73,168,255,.22); color:#6fc1ff; font-size:1.4rem; margin-bottom:18px; }
.group-label { color:#55b8ff; font-size:.8rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin:18px 0 14px; }
.scanner-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.scanner-card { min-height:172px; padding:20px 16px; text-align:center; }
.scanner-card .icon { margin:0 auto 16px; }
.scanner-card .icon svg { width:25px; height:25px; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.company-values .icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.company-values { max-width:900px; margin-top:-80px; align-items:stretch; }
.company-values .card { display:grid; grid-template-columns:46px 1fr; grid-template-rows:46px auto; column-gap:14px; align-items:center; align-content:start; }
.company-values .icon { margin-bottom:0; }
.company-values .card:nth-child(1) .icon { color:#55dda9; }
.company-values .card:nth-child(2) .icon { color:#5b9cff; }
.company-values .card:nth-child(3) .icon { color:#ff626b; }
.company-values h3 { margin:0; text-transform:capitalize; }
.company-values p { grid-column:1 / -1; margin-top:18px; }
#solutions .card-grid { max-width:1040px; margin-left:auto; margin-right:auto; }
#solutions { padding-top:64px; padding-bottom:64px; }
#solutions .section-heading { margin-bottom:28px; }
#solutions .card-grid > .card { display:grid; grid-template-columns:46px 1fr; column-gap:14px; align-items:center; align-content:start; }
#solutions .card-grid > .card .icon { grid-column:1; grid-row:1; margin-bottom:0; }
#solutions .card-grid > .card h3 { grid-column:2; grid-row:1; margin:0; white-space:nowrap; }
#solutions .card-grid > .card p { grid-column:1 / -1; grid-row:2; margin-top:18px; }
#solutions .card:nth-child(1) .icon { color:#55dda9; }
#solutions .card:nth-child(2) .icon { color:#397fd6; }
#solutions .card:nth-child(3) .icon { color:#b28cff; }
#solutions .card:nth-child(4) .icon { color:#ff934d; }
#solutions .card:nth-child(5) .icon { color:#ffd05a; }
#solutions .card:nth-child(6) .icon { color:#ff626b; }
.scanner-card p { font-size:.84rem; margin:0; }
.scanner-grid.cyber { grid-template-columns:repeat(4,1fr); max-width:820px; margin:0 auto; }

.split { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.feature-list { display:grid; gap:14px; }
.feature-row { display:flex; gap:14px; padding:16px; border:1px solid var(--border); border-radius:15px; background:rgba(9,22,40,.58); }
.feature-row b { display:block; margin-bottom:3px; }
.feature-row p { margin:0; font-size:.9rem; }
.check { width:28px; height:28px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; background:rgba(50,215,155,.12); color:var(--green); border:1px solid rgba(50,215,155,.25); }

.compliance-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.compliance-card { text-align:center; padding:22px 12px; }
.compliance-card .icon { margin:0 auto 14px; }
.compliance-card strong { display:block; }
.compliance-card span { font-size:.76rem; color:var(--muted); }

.switch-panel { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:28px; }
.scanner-comparison { width:100%; max-width:1040px; margin:64px auto 0; }
.switch-list { display:grid; gap:10px; }
.switch-item { padding:11px 14px; border-radius:10px; background:rgba(255,255,255,.025); color:#c3cede; }
.switch-item.bad::before { content:"×"; color:var(--red); margin-right:9px; font-weight:900; }
.switch-item.good::before { content:"✓"; color:var(--green); margin-right:9px; font-weight:900; }
.switch-arrow { color:#6faeff; font-size:2rem; }

.cta { border:1px solid rgba(73,168,255,.28); border-radius:28px; padding:48px; background:radial-gradient(circle at 80% 50%, rgba(23,120,255,.22), transparent 32%), linear-gradient(135deg, rgba(12,32,58,.96), rgba(6,16,29,.96)); display:flex; align-items:center; justify-content:space-between; gap:32px; }
.cta p { margin-bottom:0; }

.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:32px; }
.form { display:grid; gap:14px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.form-status { margin:0; padding:11px 13px; border-radius:10px; font-size:.9rem; }
.form-status.success { color:#9af1cb; background:rgba(41,191,133,.12); border:1px solid rgba(41,191,133,.28); }
.form-status.error { color:#ffb2b7; background:rgba(255,74,87,.1); border:1px solid rgba(255,74,87,.25); }
.form-note { color:#718099; }
label { color:#cbd5e5; font-size:.84rem; font-weight:700; }
input, textarea, select { width:100%; margin-top:7px; color:#fff; border:1px solid var(--border); border-radius:11px; padding:13px 14px; background:#081527; outline:none; }
input:focus, textarea:focus, select:focus { border-color:#3288ff; box-shadow:0 0 0 3px rgba(50,136,255,.12); }
textarea { min-height:130px; resize:vertical; }

footer { border-top:1px solid rgba(255,255,255,.07); padding:52px 0 26px; background:rgba(2,7,14,.55); }
.footer-grid { width:min(980px, 100%); margin:0 auto; display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:18px; text-align:center; }
.footer-grid > div:first-child { width:max-content; max-width:100%; justify-self:center; }
.footer-grid > div:first-child p { text-align:center; }
.footer-grid .brand { justify-content:center; }
.footer-col h4 { margin:0 0 13px; }
.footer-col a { display:block; color:var(--muted); margin:8px 0; font-size:.88rem; }
.footer-bottom { margin-top:36px; padding-top:22px; border-top:1px solid rgba(255,255,255,.06); display:flex; justify-content:center; gap:32px; text-align:center; color:#718099; font-size:.8rem; }

.page-hero { padding:88px 0 46px; text-align:center; }
.page-hero .eyebrow + h1 { font-size:clamp(2.7rem, 5vw, 5rem); }
.platform-page-hero .eyebrow + h1 { font-size:clamp(2.55rem, 4.5vw, 4.5rem); }
.page-hero p { max-width:720px; margin:0 auto; font-size:1.08rem; }
.content-panel { max-width:900px; margin:0 auto; }
.content-panel h2 { font-size:2rem; margin-top:40px; }
.content-panel li { color:var(--muted); margin-bottom:10px; }

html[data-theme="light"] {
  color-scheme:light;
  --bg:#f4f8fd;
  --bg-2:#eaf2fb;
  --panel:rgba(255,255,255,.88);
  --panel-solid:#ffffff;
  --panel-soft:#edf4fc;
  --border:rgba(43,91,146,.18);
  --text:#0b1b30;
  --muted:#53677f;
  --shadow:0 24px 70px rgba(35,86,145,.16);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 80% 10%, rgba(23,120,255,.12), transparent 27%),
    radial-gradient(circle at 15% 25%, rgba(53,208,230,.09), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf5fd 52%, #f7fbff 100%);
}
html[data-theme="light"] body::before { opacity:.3; background-image:linear-gradient(rgba(25,69,120,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(25,69,120,.05) 1px, transparent 1px); }
html[data-theme="light"] .site-header { background:rgba(248,251,255,.86); border-bottom-color:rgba(30,78,132,.12); }
html[data-theme="light"] .brand img { filter:invert(1); }
html[data-theme="light"] .nav-links { color:#30465f; }
html[data-theme="light"] .nav-links a:hover { color:#0b1b30; }
html[data-theme="light"] .btn { color:#17314d; background:rgba(255,255,255,.72); border-color:rgba(38,80,130,.18); }
html[data-theme="light"] .btn-primary { color:#fff; background:linear-gradient(135deg, #1468e9, #2091ff); border-color:transparent; }
html[data-theme="light"] .btn-secondary { background:rgba(255,255,255,.82); }
html[data-theme="light"] .theme-toggle { color:#31577f; background:#fff; }
html[data-theme="light"] .menu-button {
  color:#17314d;
  background:#fff;
  border-color:rgba(38,80,130,.18);
}
html[data-theme="light"] .eyebrow { background:rgba(23,120,255,.07); color:#1769b5; }
html[data-theme="light"] .card,
html[data-theme="light"] .metric,
html[data-theme="light"] .feature-row { background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,247,253,.94)); box-shadow:0 12px 42px rgba(40,84,134,.09); }
html[data-theme="light"] .switch-item { background:rgba(38,85,140,.055); color:#344c67; }
html[data-theme="light"] .browser-frame { background:#e7eef8; border-color:rgba(45,91,145,.24); }
html[data-theme="light"] .browser-bar i { background:#9caec2; }
html[data-theme="light"] .logo-strip { border-color:rgba(39,81,128,.12); }
html[data-theme="light"] .logo-strip .container { color:#5c7188; }
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select { color:#10243c; background:#fff; }
html[data-theme="light"] footer { background:rgba(233,241,250,.72); border-top-color:rgba(39,81,128,.12); }
html[data-theme="light"] .footer-bottom { border-top-color:rgba(39,81,128,.12); color:#60758b; }

@media (prefers-reduced-motion: no-preference) {
  body, .site-header, .card, .metric, .feature-row, footer { transition:background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
}

.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 1040px) {
  .nav-links { display:none; }
  .menu-button { display:inline-grid; place-items:center; }
  .site-header .nav {
    display:grid;
    grid-template-columns:44px minmax(0, 1fr) 44px;
    gap:10px;
  }
  .site-header .nav-actions { display:contents; }
  .site-header .nav-actions > .btn { display:none; }
  .site-header .menu-button { grid-column:1; grid-row:1; }
  .site-header .brand {
    grid-column:2;
    grid-row:1;
    min-width:0;
    justify-self:center;
  }
  .site-header .brand img { width:min(300px, 100%); object-position:center; }
  .site-header .theme-toggle { grid-column:3; grid-row:1; }
  .site-header .theme-toggle {
    position:static;
    transform:none;
  }
  .site-header .theme-toggle:hover { transform:translateY(-2px); }
  .site-header .nav-actions,
  .site-header .nav > .btn-secondary { margin-right:0; }
  .site-header .nav-actions { margin-left:0; }
  .nav-links .mobile-nav-action { display:flex; margin-top:4px; }
  .hero-grid, .split, .contact-grid { grid-template-columns:1fr; }
  .hero-copy { max-width:800px; }
  .scanner-grid { grid-template-columns:repeat(3,1fr); }
  .compliance-grid { grid-template-columns:repeat(3,1fr); }
  .card-grid { grid-template-columns:repeat(2,1fr); }
  #solutions .card-grid { grid-template-columns:repeat(2,1fr); max-width:720px; }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  html, body { overflow-x:clip; }
  .container { width:min(100% - 24px, var(--max)); }
  .section { padding:72px 0; }
  .site-header .nav {
    min-height:64px;
    display:grid;
    grid-template-columns:44px minmax(0, 1fr) 44px;
    gap:10px;
  }
  .site-header .nav-actions { display:contents; }
  .site-header .nav-actions > .btn { display:none; }
  .nav-links .mobile-nav-action { display:flex; margin-top:4px; }
  .nav-links .mobile-nav-action.btn-primary { display:none; }
  .site-header .nav-links[style] { top:64px !important; }
  .site-header .menu-button { grid-column:1; grid-row:1; }
  .site-header .brand {
    grid-column:2;
    grid-row:1;
    min-width:0;
    justify-self:center;
  }
  .site-header .brand img {
    width:min(210px, 100%);
    height:60px;
    object-position:center;
  }
  .site-header .theme-toggle { grid-column:3; grid-row:1; }
  .site-header .menu-button,
  .site-header .theme-toggle { min-width:44px; min-height:44px; }
  h1 { font-size:clamp(2.8rem, 15vw, 4.8rem); }
  .hero { padding-top:64px; }
  .hero-copy,
  .section-heading,
  .contact-grid > div:first-child { text-align:center; margin-left:auto; margin-right:auto; }
  .hero-copy p,
  .contact-grid > div:first-child > p { margin-left:auto; margin-right:auto; }
  .hero-actions { justify-content:center; }
  .hero-metrics { text-align:center; }
  .logo-strip .container { justify-content:center; text-align:center; }
  .hero-metrics, .card-grid, .scanner-grid, .scanner-grid.cyber, .compliance-grid, .form-row { grid-template-columns:1fr; }
  #solutions .card-grid { grid-template-columns:1fr; max-width:280px; }
  .switch-panel { grid-template-columns:1fr; }
  .switch-arrow { transform:rotate(90deg); text-align:center; }
  .cta { padding:30px 24px; flex-direction:column; align-items:flex-start; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; gap:8px; }
}

/* Cookie consent */
.cookie-banner[hidden] { display:none; }
.cookie-banner {
  position:fixed;
  z-index:1000;
  inset:auto 18px 18px;
  color:var(--text);
  background:var(--panel-solid, #081527);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.42);
}
.cookie-banner__inner {
  width:min(1120px, 100%);
  margin:0 auto;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.cookie-banner__copy { max-width:760px; }
.cookie-banner h2 { margin:0 0 7px; font-size:1.15rem; }
.cookie-banner p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.6; }
.cookie-banner a { color:#69adff; text-decoration:underline; text-underline-offset:3px; }
.cookie-banner__actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; min-width:290px; }
.cookie-banner__actions .btn { min-height:48px; justify-content:center; white-space:nowrap; }
.cookie-settings {
  padding:0;
  border:0;
  color:inherit;
  background:transparent;
  font:inherit;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
.cookie-settings:hover { color:var(--text); }
.cookie-settings:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner button:focus-visible { outline:3px solid #69adff; outline-offset:3px; }

@media (max-width: 760px) {
  .cookie-banner { inset:auto 10px 10px; }
  .cookie-banner__inner { padding:18px; display:block; }
  .cookie-banner__actions { min-width:0; margin-top:16px; }
}

@media (max-width: 420px) {
  .cookie-banner__actions { grid-template-columns:1fr; }
}

/* The legal pages use a compact header without the full navigation. */
.legal-header .nav { position:relative; }

@media (min-width: 1041px) {
  .legal-header .nav > .btn-secondary {
    position:absolute;
    top:50%;
    right:104px;
    margin:0;
    transform:translateY(-50%);
  }
  .legal-header .nav > .btn-secondary:hover {
    transform:translateY(calc(-50% - 2px));
  }
}

@media (max-width: 1040px) {
  .legal-header .nav {
    grid-template-columns:minmax(0, 1fr) auto 44px;
  }
  .legal-header .brand {
    grid-column:1;
    grid-row:1;
    justify-self:start;
  }
  .legal-header .nav > .btn-secondary {
    grid-column:2;
    grid-row:1;
    margin:0;
    white-space:nowrap;
  }
  .legal-header .theme-toggle {
    grid-column:3;
    grid-row:1;
  }
}

@media (max-width: 460px) {
  .legal-header .nav { grid-template-columns:minmax(0, 1fr) auto 44px; gap:6px; }
  .legal-header .brand img { width:min(170px, 100%); }
  .legal-header .nav > .btn-secondary { min-height:40px; padding:9px 11px; }
}
