/* ==========================================================================
   AetherSDR — aethersdr.com
   Palette pulled from the app + logo: deep navy-black, electric cyan→teal→white
   ========================================================================== */

:root {
  --bg:        #060b13;
  --bg-1:      #0a121e;
  --bg-2:      #0e1a2a;
  --bg-3:      #12233a;
  --panel:     rgba(18, 34, 56, 0.55);
  --panel-hi:  rgba(28, 52, 84, 0.65);

  --ink:       #eaf2fb;
  --ink-soft:  #c4d4e8;
  --muted:     #8598b4;
  --muted-dim: #5f708a;

  --line:      rgba(120, 165, 210, 0.12);
  --line-hi:   rgba(120, 190, 230, 0.28);

  --cyan:      #5de3ff;
  --cyan-deep: #3aa7ff;
  --teal:      #7bf2dc;
  --aqua:      #8ef7e6;

  --grad: linear-gradient(100deg, #3aa7ff 0%, #5de3ff 42%, #8ef7e6 100%);
  --grad-soft: linear-gradient(100deg, rgba(58,167,255,.16), rgba(142,247,230,.10));

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px var(--line-hi), 0 30px 80px -30px rgba(45, 160, 220, 0.35);

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo,
          Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(58, 167, 255, 0.16), transparent 60%),
    radial-gradient(900px 560px at 12% 4%, rgba(123, 242, 220, 0.10), transparent 55%),
    linear-gradient(180deg, #060b13 0%, #05090f 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 210, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 800px at 50% -5%, #000 0%, transparent 75%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--aqua); }

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 13px;
  border: 1px solid var(--line-hi);
  border-radius: 100px;
  background: rgba(58, 167, 255, 0.07);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 640;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad);
  color: #041019;
  box-shadow: 0 12px 30px -12px rgba(70, 190, 240, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); color: #041019; box-shadow: 0 18px 40px -12px rgba(70, 190, 240, 0.75); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-hi);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--ink); background: rgba(93,227,255,0.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 19, 0.66);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span b { color: var(--cyan); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 520; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Support dropdown */
.nav-item { position: relative; }
.nav-dd-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 14.5px; font-weight: 520;
  color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-dd-toggle:hover, .nav-item:focus-within .nav-dd-toggle { color: var(--ink); }
.nav-dd-toggle svg { width: 13px; height: 13px; transition: transform .18s ease; }
.nav-item:hover .nav-dd-toggle svg,
.nav-item:focus-within .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 230px;
  background: var(--bg-2);
  border: 1px solid var(--line-hi);
  border-radius: 13px;
  padding: 8px;
  display: grid; gap: 2px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Hover bridge so the menu doesn't vanish crossing the gap */
.nav-dd::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .nav-dd, .nav-item:focus-within .nav-dd {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--ink-soft); font-size: 14px;
}
.nav-dd a:hover { background: rgba(93,227,255,0.08); color: var(--ink); }
.nav-dd a svg { width: 17px; height: 17px; stroke: var(--cyan); flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 40px; position: relative; }
.hero-grid { display: grid; gap: 30px; text-align: center; justify-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); max-width: 16ch; }
.hero .sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 4px auto 0;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center;
  margin-top: 8px; color: var(--muted); font-size: 13.5px;
}
.hero-meta .chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,0.02);
}
.hero-meta .chip b { color: var(--ink-soft); font-weight: 640; }

/* Hero image with app frame */
.hero-shot {
  margin-top: 26px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-hi);
  background: var(--bg-1);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  position: relative;
}
.hero-shot::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.35);
  pointer-events: none;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 30, 0.9);
}
.frame-bar .dots { display: flex; gap: 7px; }
.frame-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #24374f; display: block; }
.frame-bar .title { margin: 0 auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.hero-shot img { width: 100%; display: block; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 64px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.stat { background: var(--bg-1); padding: 26px 22px; text-align: center; }
.stat .num { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 14px auto 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005)),
    var(--bg-1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
  box-shadow: 0 22px 50px -28px rgba(50, 160, 220, 0.5);
}
.card .ic {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-hi);
  margin-bottom: 15px;
}
.card .ic svg { width: 21px; height: 21px; stroke: var(--cyan); fill: none; stroke-width: 1.7; }
.card h3 { font-size: 17.5px; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card p b { color: var(--ink-soft); font-weight: 620; }

/* ---------- Spotlight rows ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 34px 0; }
.spot.rev .spot-text { order: 2; }
.spot-text .tag { color: var(--cyan); font-weight: 640; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.spot-text h3 { font-size: clamp(23px, 3vw, 31px); margin: 12px 0 14px; }
.spot-text p { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }
.spot-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.spot-text li { color: var(--muted); font-size: 14.5px; padding-left: 26px; position: relative; }
.spot-text li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 9px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua);
  transform: rotate(-45deg); border-radius: 1px;
}
.spot-media {
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow);
}
.spot-media img { width: 100%; display: block; }
.spot-media.viz { background: #04070d; }
.viz-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.viz-row img { border-right: 1px solid rgba(0,0,0,0.4); }
.viz-row img:last-child { border-right: 0; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.dl-card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.dl-card.is-recommended {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 26px 56px -26px rgba(50, 160, 220, 0.6);
  background: linear-gradient(180deg, rgba(93,227,255,0.06), rgba(93,227,255,0.01)), var(--bg-1);
}
.dl-reco {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: #041019;
  background: var(--grad);
  border-radius: 100px; padding: 4px 11px;
}
.dl-card .os { display: flex; align-items: center; gap: 11px; font-weight: 680; font-size: 18px; }
.dl-card .os svg { width: 24px; height: 24px; fill: var(--cyan); }
.dl-card .variants { display: grid; gap: 8px; margin-top: 2px; }
.dl-card .variants a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-soft); font-size: 14px; background: rgba(255,255,255,0.015);
}
.dl-card .variants a:hover { border-color: var(--cyan); color: var(--ink); background: rgba(93,227,255,0.06); }
.dl-card .variants .arch { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.dl-card .variants a.primary-dl {
  border-color: var(--line-hi);
  background: var(--grad-soft);
  color: var(--ink);
  font-weight: 640;
}
.dl-card .variants a.primary-dl .arch { color: var(--cyan); }
.dl-card .variants a.primary-dl:hover { border-color: var(--cyan); background: rgba(93,227,255,0.12); }
.dl-card .winget {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #05090f;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.dl-card .winget .prompt { color: var(--cyan); user-select: none; }
.dl-card .winget-note { color: var(--muted); font-size: 12px; margin: 0; }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card {
  display: flex; align-items: center; gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.partner-card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.partner-card.placeholder { border-style: dashed; opacity: 0.72; }
.partner-mark {
  flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 18px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid var(--line-hi);
}
.partner-body h3 { font-size: 15.5px; margin: 0 0 3px; }
.partner-body p { margin: 0; color: var(--muted); font-size: 13px; }
.partners-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---------- Agent bridge callout (inside AI section) ---------- */
.bridge {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.bridge-lead .tag { color: var(--cyan); font-weight: 640; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.bridge-lead h3 { font-size: clamp(21px, 2.6vw, 27px); margin: 11px 0 12px; }
.bridge-lead p { color: var(--ink-soft); font-size: 15px; margin: 0 0 12px; }
.bridge-lead p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.bridge-loop { display: grid; gap: 10px; }
.bridge-step {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-1); padding: 13px 15px;
}
.bridge-step .verb {
  flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--cyan); background: #05090f; border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 9px; margin-top: 1px; min-width: 74px; text-align: center;
}
.bridge-step .d { color: var(--ink-soft); font-size: 14px; }
.bridge-step .d b { color: var(--ink); font-weight: 620; }
.bridge-guard {
  margin-top: 12px; font-size: 13px; color: var(--muted);
  display: flex; gap: 9px; align-items: flex-start;
}
.bridge-guard svg { width: 16px; height: 16px; stroke: var(--aqua); fill: none; stroke-width: 1.8; flex: none; margin-top: 2px; }

/* ---------- Contribute ---------- */
.contribute-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.contribute-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 26px;
}
.contribute-facts .f {
  font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  background: rgba(255,255,255,0.02);
}
.contribute-facts .f b { color: var(--cyan); }

/* ---------- Hardware ---------- */
.hw-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hw-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 26px; }
.hw-panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hw-panel h3 svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.7; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 13px; padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft);
  background: rgba(255,255,255,0.02); font-family: var(--mono);
}
.hw-note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

/* ---------- Built-with (AI workflow) ---------- */
.built { position: relative; }
.built-wrap {
  border: 1px solid var(--line-hi);
  border-radius: 22px;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(58,167,255,0.10), transparent 60%),
    var(--bg-1);
  padding: 52px 44px;
}
.built-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.built-item { text-align: left; }
.built-item .k { font-size: 26px; font-weight: 760; letter-spacing: -0.02em; }
.built-item .v { color: var(--muted); font-size: 14px; margin-top: 4px; }
.built-points { display: grid; gap: 12px; margin-top: 30px; }
.built-points li { list-style: none; color: var(--ink-soft); font-size: 15px; padding-left: 28px; position: relative; }
.built-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(93,227,255,0.5);
}
.built-points b { color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  border: 1px solid var(--line-hi);
  border-radius: 22px;
  padding: 56px 30px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(123,242,220,0.12), transparent 65%),
    var(--bg-1);
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-banner p { color: var(--ink-soft); max-width: 54ch; margin: 14px auto 26px; font-size: 17px; }

/* ---------- Footer ---------- */
footer.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 46px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 34ch; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.foot-bottom .disclaimer { max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .feature-grid, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .built-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .bridge { grid-template-columns: 1fr; gap: 26px; }
  .spot { grid-template-columns: 1fr; gap: 26px; }
  .spot.rev .spot-text { order: 0; }
  .hw-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .dl-grid, .partners-grid { grid-template-columns: 1fr; }
  .built-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .built-wrap { padding: 34px 22px; }
}
