/* Ticker AI — shared styles.
   Premium near-black foundation with a dynamic market green as the single
   accent. Red is reserved for risk/loss language only. */

:root {
  --bg: #08090b;
  --bg-raised: #101216;
  --surface: #14171c;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --text-secondary: #a7b0bd;
  --text-tertiary: #6b7684;
  --accent: #22c55e;
  --accent-bright: #4ade80;
  --accent-deep: #15803d;
  --risk: #f87171;

  --max: 1080px;
  --radius: 18px;
  --radius-sm: 12px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: var(--step--1);
}
.site-nav a { color: var(--text-secondary); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-bright);
  font-weight: 620;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.site-nav .nav-cta:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.55);
  color: var(--text);
}

/* Narrow screens: keep the download CTA, drop the in-page anchors. */
@media (max-width: 700px) {
  .site-nav { gap: 14px; }
  .site-nav a[href^="#"] { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

/* Soft market-green atmosphere behind the headline — depth, not decoration. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  padding: 7px 14px;
  border-radius: 999px;
}

h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 26px 0 0;
  max-width: 16ch;
}

.lede {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: var(--step-1);
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 640;
  font-size: var(--step-0);
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #04140a;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(34, 197, 94, 0.36); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--text);
  background: var(--bg-raised);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); }

.apple-glyph {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  margin-top: -0.14em;
}

.cta-row-center {
  justify-content: center;
  margin-top: 30px;
}
.cta-note {
  font-size: var(--step--1);
  color: var(--text-tertiary);
}

.hero-note {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--text-tertiary);
}

/* ---------- Sections ---------- */

section { padding: clamp(56px, 7vw, 96px) 0; }

.section-title {
  font-size: var(--step-2);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 680;
}

.section-sub {
  margin: 0 0 40px;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* Feature grid — equal cells, deliberate rhythm. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--bg-raised), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  font-weight: 640;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--step-0);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--accent-bright);
  margin-bottom: 6px;
}
.card-icon svg { width: 21px; height: 21px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-bright);
  font-weight: 680;
  font-size: var(--step--1);
}
.step h3 { margin: 0 0 4px; font-size: var(--step-0); font-weight: 640; }
.step p { margin: 0; color: var(--text-secondary); font-size: var(--step--1); }

/* Honesty / risk panel — the one place red is allowed. */
.notice {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.06);
  border-radius: var(--radius);
  padding: 26px;
}
.notice h3 {
  margin: 0 0 8px;
  font-size: var(--step-0);
  color: var(--risk);
  font-weight: 660;
}
.notice p { margin: 0; color: var(--text-secondary); font-size: var(--step--1); }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(48px, 6vw, 84px) 0; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: var(--step-2); max-width: none; margin: 0 0 6px; }
.legal .updated {
  color: var(--text-tertiary);
  font-size: var(--step--1);
  margin: 0 0 36px;
}
.legal h2 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  font-weight: 650;
}
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 620; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 46px 0 60px;
  color: var(--text-tertiary);
  font-size: var(--step--1);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { color: var(--text-secondary); }
.site-footer .disclosure {
  margin-top: 26px;
  max-width: 70ch;
  line-height: 1.6;
}
