/* ArcturusSDR coming-soon page. Colours follow the website's dark theme
   (public/css/site.css); the page is dark only, like the app. */

:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --surface: #151a22;
  --surface-2: #1b212b;
  --border: #252d3a;
  --border-strong: #354055;
  --text: #e9ecf2;
  --text-2: #bac2d0;
  --muted: #8e98aa;
  --accent: #3d9bff;
  --accent-2: #74c3ff;
  --accent-ink: #04121f;
  --gold: #f4a742;
  --sun: #ff7a2f;
  --radius: 14px;
  --wrap: 1120px;
  --wrap-wide: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 14, 19, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.top-tools { display: flex; align-items: center; gap: 10px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
@media (max-width: 640px) { .hide-sm { display: none; } .brand span { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand b { color: var(--accent-2); font-weight: 750; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--gold);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(244, 167, 66, 0.35); background: rgba(244, 167, 66, 0.08);
}
a.pill:hover { text-decoration: none; background: rgba(244, 167, 66, 0.14); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244, 167, 66, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(244, 167, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 167, 66, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 45% at 50% 30%, rgba(61, 155, 255, 0.22), transparent 70%),
    radial-gradient(22% 26% at 64% 18%, rgba(255, 122, 47, 0.14), transparent 70%),
    radial-gradient(30% 30% at 30% 40%, rgba(116, 195, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 25%, #000, transparent 80%);
          mask-image: radial-gradient(60% 50% at 50% 25%, #000, transparent 80%);
}
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-2); margin-bottom: 14px; }
.hero h1 { max-width: 26ch; margin: 0 auto 0.4em; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #74c3ff 10%, #3d9bff 45%, #ffb35c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { text-wrap: pretty; max-width: 44rem; margin: 0 auto 1.6em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.note { margin: 18px 0 0; font-size: 0.9rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 650; font-size: 1rem; color: var(--text);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; border-color: #4a5870; background: rgba(255, 255, 255, 0.06); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(61, 155, 255, 0.35); }
.btn-primary:hover { background: #5aabff; border-color: #5aabff; transform: translateY(-1px); }

/* Screenshots */
.shot { margin: 0; }
.shot a, .shot > picture { display: block; }
.shot img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
  background: #0a0c10;
}
.shot a { cursor: zoom-in; border-radius: var(--radius); }
.shot-hero { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.shot-hero::before {
  content: ""; position: absolute; inset: 6% 4% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(61, 155, 255, 0.35), transparent 75%);
  filter: blur(30px);
}
.shot-hero img { border-radius: 12px; }
@media (max-width: 600px) { .shot-hero { margin-left: -8px; margin-right: -8px; } .shot-hero img { border-radius: 8px; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head p:last-child { margin-bottom: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(21, 26, 34, 0.6));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }
.icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: rgba(61, 155, 255, 0.12); border: 1px solid rgba(61, 155, 255, 0.25);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature-text p { color: var(--text-2); }
.feature-text .muted { color: var(--muted); }
@media (max-width: 900px) { .feature, .feature-flip { grid-template-columns: 1fr; } .feature-flip .feature-text { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--text-2); }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(63, 185, 132, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%233fb984' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Decoder modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode-group { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(21, 26, 34, 0.5); }
.mode-group h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.mode-group p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mode-group span {
  font: 600 0.86rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 7px 10px; border-radius: 8px; color: var(--text);
  background: rgba(61, 155, 255, 0.09); border: 1px solid rgba(61, 155, 255, 0.22);
}

/* Layout drawing */
.layout-art { margin: 0; }
.layout-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)); }

/* Radios */
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .radios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .radios { grid-template-columns: 1fr; } }
.radio-group { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(21, 26, 34, 0.5); }
.radio-group h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.radio-group ul { list-style: none; margin: 0; padding: 0; }
.radio-group li { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-2); font-size: 0.97rem; }
.radio-group li:first-child { border-top: 0; padding-top: 0; }
.radio-group strong { color: var(--text); font-weight: 600; }
.radio-group p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.radio-now { border-color: rgba(63, 185, 132, 0.45); background: linear-gradient(180deg, rgba(63, 185, 132, 0.10), rgba(21, 26, 34, 0.5)); }
.radio-now { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.radio-now h3 { color: #5fd3a0; margin: 0; }
.radio-now ul, .radio-coming ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.radio-now li, .radio-now li:first-child, .radio-coming li, .radio-coming li:first-child { padding: 0; border-top: 0; }
.radio-coming { grid-column: 1 / -1; }
.radios-more { margin: 18px 0 0; }
.radio-now li { border: 0; padding: 0; font-size: 1.05rem; }

/* Beta stages */
.stages { list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: stage; position: relative; }
.stages::before { content: ""; position: absolute; top: 33px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--accent) 50%, var(--border-strong)); z-index: 0; }
@media (max-width: 800px) { .stages { grid-template-columns: 1fr; } .stages::before { display: none; } }
.stage { position: relative; z-index: 1; padding: 22px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stage-now { border-color: rgba(244, 167, 66, 0.55); box-shadow: 0 0 0 1px rgba(244, 167, 66, 0.15), 0 18px 50px rgba(244, 167, 66, 0.10); }
.stage-tag { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.stage-now .stage-tag { color: var(--gold); background: rgba(244, 167, 66, 0.1); border-color: rgba(244, 167, 66, 0.35); }
.stage h3 { font-size: 1.3rem; margin-bottom: 4px; }
.stage-when { color: var(--accent-2); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.stage p:last-child { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* Call to action */
.cta-box {
  text-align: center; padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--border); border-radius: 24px; max-width: 820px; margin: 0 auto;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(61, 155, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 50% 10%, rgba(255, 122, 47, 0.10), transparent 70%),
    var(--surface);
}
.cta-box img { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 12px 40px rgba(61, 155, 255, 0.3); }
.cta-box p { max-width: 34rem; margin-left: auto; margin-right: auto; color: var(--text-2); }
.cta-box .btn { margin: 8px 0 20px; }
.cta-box .small { color: var(--muted); margin-bottom: 0; }

/* Release news sign-up */
.news-box { max-width: 640px; margin: 0 auto; text-align: center; }
.news-box > p { color: var(--text-2); }
.news-form { text-align: left; max-width: 480px; margin: 0 auto; }
.news-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.news-row { display: flex; gap: 10px; }
.news-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px; font: inherit;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
}
.news-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 155, 255, 0.25); }
@media (max-width: 480px) { .news-row { flex-direction: column; } }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 auto 16px; max-width: 480px; }
.alert-ok { background: rgba(52, 199, 89, 0.14); color: var(--text); }
.alert-danger { background: rgba(255, 90, 90, 0.16); color: var(--text); }

/* Footer */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 28px 0; color: var(--muted); font-size: 0.88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

/* Screenshot viewer */
.lightbox {
  width: min(96vw, 1800px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 6, 9, 0.88); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.lightbox-caption { text-align: center; margin: 12px 0 0; color: var(--text-2); font-size: 0.95rem; }
.lightbox form { position: absolute; top: -44px; right: 0; margin: 0; }
.lightbox-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
