/* ==========================================================================
   Aignals — design system
   Dark, signal-themed, premium. One stylesheet for both pages.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #07090c;
  --bg-2:      #0b0e13;
  --surface:   #11151c;
  --surface-2: #161b24;
  --line:      #222a36;
  --line-2:    #2c3645;

  --text:      #eaf0f8;
  --muted:     #97a4b6;
  --faint:     #66728400;

  --accent:    #34e6c0;   /* signal mint */
  --accent-2:  #5b8bff;   /* electric blue */
  --accent-ink:#04261f;

  --glow: 0 0 0 1px rgba(52,230,192,.15), 0 12px 48px -12px rgba(52,230,192,.35);
  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  --radius: 16px;
  --radius-sm: 10px;

  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* background field */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 75% -10%, rgba(91,139,255,.10), transparent 60%),
    radial-gradient(50rem 36rem at 10% 0%, rgba(52,230,192,.10), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: #c2cdda; max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .96rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(52,230,192,.3), 0 18px 50px -10px rgba(52,230,192,.5); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,9,12,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: #fff; }
.brand .mark { width: 32px; height: 32px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .15s; }
.nav-links a.link:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  font-family: var(--mono); font-size: .76rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px;
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.02);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* signup card */
.signup {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.signup::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 12rem at 100% 0%, rgba(52,230,192,.12), transparent 60%);
}
.signup h3 { font-size: 1.25rem; margin-bottom: 6px; }
.signup .sub { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.field { position: relative; }
.field input[type=email] {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: 1rem; font-family: var(--font); transition: border .15s, box-shadow .15s;
}
.field input::placeholder { color: #5d6877; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,230,192,.16); }
.signup .btn { width: 100%; margin-top: 12px; }
.microcopy { font-size: .82rem; color: #6c7888; margin: 14px 0 0; text-align: center; }
.form-msg { font-size: .9rem; margin-top: 12px; text-align: center; display: none; }
.form-msg.ok { display: block; color: var(--accent); }
.form-msg.err { display: block; color: #ff8a8a; }

.proof { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.avatars { display: flex; }
.avatars span {
  width: 28px; height: 28px; border-radius: 50%; margin-left: -8px;
  border: 2px solid var(--surface); background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.avatars span:first-child { margin-left: 0; }

/* signal waveform under hero copy */
.wave { width: 100%; height: 46px; margin-top: 30px; opacity: .9; }
.wave path { stroke: var(--accent); stroke-width: 2; fill: none; filter: drop-shadow(0 0 6px rgba(52,230,192,.5)); }

/* ---------- sections ---------- */
section { padding: clamp(54px, 8vw, 96px) 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(52,230,192,.1); border: 1px solid rgba(52,230,192,.25); color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }

/* inside-the-issue split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.issue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.issue-list li { display: flex; gap: 14px; align-items: flex-start; color: #c2cdda; }
.issue-list .k {
  flex: 0 0 auto; font-family: var(--mono); font-size: .72rem; color: var(--accent);
  border: 1px solid rgba(52,230,192,.3); border-radius: 7px; padding: 4px 8px; margin-top: 2px;
}
.mock {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.mock .body { padding: 22px; }
.mock .from { font-size: .8rem; color: var(--muted); font-family: var(--mono); margin-bottom: 14px; }
.mock h4 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 10px; }
.mock p { font-size: .9rem; margin: 0 0 10px; }
.mock .tag { display: inline-block; font-family: var(--mono); font-size: .7rem; color: var(--accent-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; }

/* ---------- stats (sponsor) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat .n { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: #fff; letter-spacing: -.02em; }
.stat .n span { color: var(--accent); }
.stat .l { font-size: .82rem; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: .9rem; color: #c2cdda; background: rgba(255,255,255,.02); }

/* rate card */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.rate {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.rate.featured { border-color: rgba(52,230,192,.5); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(52,230,192,.05), var(--surface)); }
.rate .tier { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rate .featured-tag { float: right; font-family: var(--mono); font-size: .68rem; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.rate .price { font-family: var(--display); font-size: 2.1rem; color: #fff; margin: 16px 0 2px; }
.rate .price small { font-size: .9rem; color: var(--muted); font-family: var(--font); font-weight: 400; }
.rate ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.rate li { display: flex; gap: 10px; font-size: .92rem; color: #c2cdda; }
.rate li svg { flex: 0 0 auto; color: var(--accent); margin-top: 3px; }
.rate .btn { margin-top: auto; }

/* generic two-col reasons */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reason { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reason .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(91,139,255,.12); border: 1px solid rgba(91,139,255,.28); color: var(--accent-2); }
.reason h3 { font-size: 1.05rem; margin-bottom: 6px; }
.reason p { margin: 0; font-size: .92rem; }

/* quote */
.quote { max-width: 70ch; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; color: #fff; margin: 0 0 20px; letter-spacing: -.01em; }
.quote .who { color: var(--muted); font-size: .95rem; }

/* CTA band */
.band {
  background: linear-gradient(120deg, rgba(52,230,192,.1), rgba(91,139,255,.1));
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(36px, 6vw, 64px);
  text-align: center; position: relative; overflow: hidden;
}
.band h2 { margin-bottom: 14px; }
.band .lead { margin: 0 auto 26px; }
.band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.inline-form input { flex: 1; padding: 15px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem; }
.inline-form input:focus { outline: none; border-color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { font-size: .9rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; font-family: var(--mono); font-weight: 500; }
.footer a.link { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 9px; transition: color .15s; }
.footer a.link:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: #5d6877; font-size: .82rem; }
.sender-id { font-family: var(--mono); font-size: .78rem; color: #5d6877; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .cards, .rates, .reasons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; animation: none !important; transition: none !important; } }
