/* DarkAlert marketing site. Colours follow the walk-in video and the DarkAlert brand files. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-4.1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a1019;
  --bg-2: #0c1520;
  --surface: #111d2c;
  --surface-2: #16263a;
  --line: rgba(107, 220, 197, 0.16);
  --line-strong: rgba(107, 220, 197, 0.32);
  --teal: #6bdcc5;
  --teal-rgb: 107, 220, 197;
  --red: #ff5a4f;
  --red-rgb: 255, 90, 79;
  --red-soft: #ff8f86;
  --text: #edf3f8;
  --muted: #a3b5c3;
  --field-border: #627a90;
  --radius: 18px;
  --header-h: 68px;
  --container: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #9cebdb; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }
#i-play path { fill: currentColor; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 16, 25, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(10, 16, 25, 0.88); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: 8px; opacity: .86; }
.main-nav a:hover { opacity: 1; background: rgba(237, 243, 248, 0.06); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.main-nav + .header-actions { margin-left: 8px; }
.lang-switch { display: flex; border: 1px solid var(--field-border); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); min-width: 40px; min-height: 32px;
}
.lang-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--text); }
.header-actions .header-cta { display: none; white-space: nowrap; }
.signin-link { display: none; color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.signin-link:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 1280px) { .signin-link { display: inline-block; } }
@media (min-width: 600px) { .header-actions .header-cta { display: inline-flex; } }
@media (min-width: 1040px) { .main-nav { display: block; } }
@media (max-width: 400px) { .brand img { height: 28px; } .header-inner { gap: 12px; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #0a1019; }
.btn-primary:hover { background: #ff7b71; color: #0a1019; }
.btn-ghost { background: rgba(10, 16, 25, 0.35); border-color: rgba(237, 243, 248, 0.45); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(237, 243, 248, 0.08); color: var(--text); }
.btn-secondary { background: var(--surface-2); border-color: var(--field-border); color: var(--text); }
.btn-secondary:hover { border-color: var(--teal); color: var(--text); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(237,243,248,.35); }
.link-btn:hover { color: var(--teal); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--field-border); background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { border-color: var(--teal); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 88px;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The walk-in video carries its own centred captions. A soft blur and the scrim keep them
   from competing with the headline, while the network, pulses and colour still move. */
.hero-video { opacity: 0; transition: opacity 1.2s ease; filter: blur(5px) saturate(1.15); transform: scale(1.04); }
.hero-video.is-playing { opacity: .9; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,25,.55) 0%, rgba(10,16,25,0) 22%, rgba(10,16,25,0) 70%, var(--bg) 100%),
    rgba(10, 16, 25, 0.8);
}
@media (min-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(10,16,25,.5) 0%, rgba(10,16,25,0) 20%, rgba(10,16,25,0) 74%, var(--bg) 100%),
      linear-gradient(90deg, rgba(10,16,25,.96) 0%, rgba(10,16,25,.9) 48%, rgba(10,16,25,.7) 72%, rgba(10,16,25,.45) 100%);
  }
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 720px; }
.hero-lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 36px; }
.hero-logo { width: clamp(210px, 30vw, 300px); height: auto; }
.by-lostar { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.by-lostar img { height: 20px; width: auto; }
.hero-lockup .by-lostar { padding-left: 18px; border-left: 1px solid var(--line-strong); min-height: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(var(--red-rgb), .6), 0 0 14px rgba(var(--red-rgb), .8); flex: none; }
.hero h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; margin-bottom: 22px; text-wrap: balance; }
.hero-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #d3dee7; max-width: 600px; margin-bottom: 14px; }
.hero-tagline { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 16, 25, .6); border: 1px solid rgba(237, 243, 248, .35); color: var(--text);
}
.video-toggle:hover { border-color: var(--text); }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }
@media (max-width: 520px) {
  .hero { padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .hero-lockup { gap: 10px 14px; margin-bottom: 28px; }
  .hero-lockup .by-lostar { padding-left: 14px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid rgba(107,220,197,.08); border-bottom: 1px solid rgba(107,220,197,.08); }
.kicker { color: var(--teal); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); font-weight: 680; max-width: 24ch; text-wrap: balance; }
h3 { font-size: 1.1875rem; font-weight: 640; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-lead { color: var(--muted); font-size: 1.125rem; margin-top: 16px; max-width: 60ch; }

.what-grid { display: grid; gap: 28px; margin-bottom: clamp(44px, 6vw, 72px); }
.what-body { display: grid; gap: 18px; color: #d3dee7; font-size: 1.125rem; }
@media (min-width: 900px) { .what-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } .what-body { padding-top: 34px; } }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.fact .icon { color: var(--teal); margin-bottom: 8px; }
.fact h3 { font-size: 1.0625rem; }
.fact p { color: var(--muted); font-size: .96875rem; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* formats */
.formats { display: grid; gap: 22px; }
@media (min-width: 900px) { .formats { grid-template-columns: 1fr 1fr; gap: 28px; } }
.format-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.format-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal), rgba(var(--teal-rgb), .15)); }
.format-team::before { background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 45%, var(--red) 55%, var(--red) 100%); }
.format-top { display: flex; align-items: center; gap: 14px; }
.format-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--teal-rgb), .1); color: var(--teal); border: 1px solid var(--line-strong); }
.format-label { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.format-card h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.format-card > p { color: #d3dee7; }
.format-fit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .96875rem; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: radial-gradient(circle, var(--teal) 0 3px, transparent 3.5px);
}

/* how it works */
.flow { display: grid; gap: 18px; position: relative; }
.flow-step { display: flex; gap: 18px; align-items: flex-start; }
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: .984rem; }
.step-circle {
  width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(var(--teal-rgb), .45); background: rgba(var(--teal-rgb), .06); color: var(--text);
  transition: border-color .6s ease, background-color .6s ease, box-shadow .8s ease;
}
.step-circle-red { border-color: rgba(var(--red-rgb), .7); background: rgba(var(--red-rgb), .08); }
.flow-edge { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.round { border: 1.5px dashed var(--line-strong); border-radius: 24px; padding: 28px 24px 22px; position: relative; }
.round-steps { display: grid; gap: 26px; counter-reset: step; position: relative; }
.round-steps .flow-step { position: relative; }
.round-steps .flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 70px; bottom: -22px; width: 2px; background: rgba(var(--teal-rgb), .22);
}
.round-loop { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; color: var(--teal); font-weight: 600; font-size: .96875rem; }
.round.is-in .step-circle { border-color: var(--teal); background: rgba(var(--teal-rgb), .14); box-shadow: 0 0 0 6px rgba(var(--teal-rgb), .05), 0 0 26px rgba(var(--teal-rgb), .25); }
.round.is-in .flow-step:nth-child(2) .step-circle { transition-delay: .5s; }
.round.is-in .flow-step:nth-child(3) .step-circle { transition-delay: 1s; }
.round.is-in .flow-step:nth-child(4) .step-circle { transition-delay: 1.5s; }
@media (min-width: 900px) {
  .round { padding: 40px 32px 26px; }
  .round-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .round-steps .flow-step { flex-direction: column; gap: 18px; }
  .round-steps .flow-step:not(:last-child)::after { left: 76px; right: -20px; top: 31px; bottom: auto; width: auto; height: 2px; }
  .flow-edge { max-width: 760px; }
  .flow-edge:last-child { margin-left: auto; }
}

/* quote band */
.quote-band {
  padding: clamp(64px, 8vw, 112px) 0; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(17,29,44,.95) 0%, rgba(10,16,25,0) 70%),
    var(--bg);
  border-top: 1px solid rgba(107,220,197,.08); border-bottom: 1px solid rgba(107,220,197,.08);
}
.quote { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(1.625rem, 4.2vw, 3rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; justify-content: center; }
.quote .signal-dot { width: 12px; height: 12px; }

/* gains */
.cards-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--line-strong); }
.card .icon { color: var(--teal); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .984rem; }

/* who */
.who-list { display: grid; gap: 18px; }
@media (min-width: 640px) { .who-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .who-list { grid-template-columns: repeat(4, 1fr); } }
.who { padding: 26px 0 0; border-top: 2px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.who-num { font-size: .875rem; font-weight: 700; color: var(--red-soft); letter-spacing: .1em; }
.who p { color: var(--muted); font-size: .984rem; }

/* contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.contact-side { margin-top: 32px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(17,29,44,.5); }
.contact-side h3 { font-size: 1rem; margin-bottom: 14px; }
.contact-side .ticks { color: var(--muted); font-size: .984rem; }
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.4vw, 40px); }
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--field-border); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-soft); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { border-color: var(--red-soft); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .3); }
.field-error { color: var(--red-soft); font-size: .9375rem; font-weight: 500; }
.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .96875rem; color: #d3dee7; cursor: pointer; }
.field-check .field-error { grid-column: 2; }
.form-note { color: var(--muted); font-size: .875rem; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-row { display: grid; gap: 8px; }
.turnstile-widget { min-height: 65px; }
.form-summary { border: 1.5px solid var(--red-soft); background: rgba(var(--red-rgb), .08); border-radius: 12px; padding: 12px 16px; color: var(--text); font-weight: 500; }
.form-summary:focus { outline: 3px solid var(--red-soft); outline-offset: 2px; }
.form-status { min-height: 1px; color: var(--muted); font-size: .9375rem; }
.form-status.is-error { color: var(--red-soft); font-weight: 500; }
.form-success { display: grid; justify-items: start; gap: 16px; padding: 12px 0; font-size: 1.125rem; }
.form-success:focus { outline: none; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--teal-rgb), .14); color: var(--teal); border: 2px solid var(--teal); }

/* privacy */
.privacy { background: var(--bg-2); border-top: 1px solid rgba(107,220,197,.08); padding: clamp(56px, 7vw, 96px) 0; }
.privacy:focus { outline: none; }
.privacy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.privacy-grid { display: grid; gap: 28px 40px; }
@media (min-width: 760px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.privacy-grid p { color: var(--muted); font-size: .9375rem; }
.privacy-updated { margin-top: 36px; color: var(--muted); font-size: .875rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); background: var(--bg); }
.footer-inner { display: grid; gap: 26px; align-items: center; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.footer-brand > img { height: 32px; width: auto; }
.footer-brand .by-lostar img { height: 18px; }
.footer-tagline { color: var(--muted); font-size: .9375rem; flex-basis: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9375rem; }
.footer-links a { color: var(--text); text-decoration-color: rgba(237,243,248,.35); }
.footer-links a:hover { color: var(--teal); }
.footer-links a, .footer-links .link-btn { display: inline-block; padding: 6px 0; }
.copyright { color: var(--muted); font-size: .875rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; }
  .copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(107,220,197,.08); }
}

/* cookie banner and dialogs */
.cookie-banner {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 980px; margin: 0 auto;
  background: rgba(22, 38, 58, 0.97); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  padding: 20px 22px;
}
.cookie-inner { display: grid; gap: 16px; }
.cookie-text h2 { font-size: 1.0625rem; margin-bottom: 6px; max-width: none; }
.cookie-text p { color: #d3dee7; font-size: .9375rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (min-width: 860px) { .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 28px; } .cookie-actions { flex-wrap: nowrap; } }

.dialog {
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.dialog::backdrop { background: rgba(4, 8, 13, 0.78); }
.dialog-body { padding: 22px 22px 24px; display: grid; gap: 18px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-head h2 { font-size: 1.25rem; max-width: none; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.pref-row h3 { font-size: 1rem; margin-bottom: 4px; }
.pref-row p { color: var(--muted); font-size: .9375rem; }
.pref-always { color: var(--teal); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.dialog-actions .btn { flex: 1 1 auto; }
.switch { position: relative; display: inline-block; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--field-border); transition: background-color .2s, border-color .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .2s; }
.switch input:checked + .switch-track { background: rgba(var(--teal-rgb), .25); border-color: var(--teal); }
.switch input:checked + .switch-track::after { transform: translateX(22px); background: var(--teal); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--teal); outline-offset: 3px; }

.video-dialog { width: min(1120px, calc(100vw - 24px)); background: #05090f; }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; }
.video-desc { color: var(--muted); font-size: .875rem; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.signal-dot { animation: heartbeat 2.14s infinite; }
@keyframes heartbeat {
  0%, 30%, 100% { box-shadow: 0 0 0 0 rgba(var(--red-rgb), 0), 0 0 12px rgba(var(--red-rgb), .7); }
  4% { box-shadow: 0 0 0 5px rgba(var(--red-rgb), .22), 0 0 18px rgba(var(--red-rgb), 1); }
  10% { box-shadow: 0 0 0 1px rgba(var(--red-rgb), .1), 0 0 12px rgba(var(--red-rgb), .7); }
  14% { box-shadow: 0 0 0 4px rgba(var(--red-rgb), .16), 0 0 16px rgba(var(--red-rgb), .9); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 404 page */
.page-404 { min-height: 100svh; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 40%, #111d2c 0%, var(--bg) 70%); }
.nf { text-align: center; padding: 48px var(--gutter); display: grid; justify-items: center; gap: 16px; max-width: 640px; }
.nf-logo img { width: 220px; height: auto; margin-bottom: 20px; }
.nf-code { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 700; letter-spacing: .14em; }
.nf h1 { font-size: clamp(2rem, 5vw, 3rem); }
.nf-text { color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.nf .copyright { margin-top: 32px; }
@media (max-width: 400px) {
  .hero-logo { width: 168px; }
  .hero-lockup { gap: 8px 12px; }
  .hero-lockup .by-lostar { padding-left: 12px; font-size: .875rem; }
  .hero-lockup .by-lostar img { height: 18px; }
}
