:root {
  --bg: #11121a;
  --bg-surface: #181a26;
  --fg: #f1f2f8;
  --fg-muted: #8888a0;
  --accent: #f59e0b;
  --accent-dim: #92610a;
  --border: rgba(255,255,255,0.06);
  --accent-soft: rgba(245,158,11,0.06);
  --bg-glow: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.08), transparent 55%),
             radial-gradient(circle at 15% 75%, rgba(245,158,11,0.05), transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(circle at 20% 30%, var(--accent-soft) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, var(--accent-soft) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.radar-glow {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(0, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: glowDrift 18s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  animation: gridDrift 60s linear infinite;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(0, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.15);
  animation: radarPulse 4s ease-in-out infinite;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.1);
}

.radar-sweep::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.06);
}

@keyframes radarPulse {
  0%, 100% { opacity: 1; transform: translate(0, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(0, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 60px, 60px 60px; }
}

@keyframes glowDrift {
  from { transform: translate(0, -50%); }
  to { transform: translate(-30px, calc(-50% - 20px)); }
}

.eyebrow-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 520px;
}

/* FEATURES */
.features {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-surface);
  padding: 40px 36px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #1f2233;
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* HOW */
.how {
  padding: 100px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 60px;
}

.step {
  flex: 1;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.step-connector {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step-connector::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.how-tagline {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.tagline-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* CLOSING */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 20px;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.closing-vision p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* FOOTER */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.footer-brand span {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}

.footer-login {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 120ms ease, color 120ms ease;
}
.footer-login:hover {
  color: var(--fg, #ffffff);
  border-color: var(--accent);
}

.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
}

/* PRICING */
.pricing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--accent-dim);
  position: relative;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-tier {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-cta-wrap {
  margin-top: auto;
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn-pricing:hover {
  opacity: 0.85;
}

.pricing-trial-note {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 12px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .features { padding: 60px 24px; }
  .pricing { padding: 60px 24px; }
  .how { padding: 60px 24px; }
  .closing { padding: 80px 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .how-steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 100%;
    height: 24px;
  }

  .step-connector::before {
    top: 50%;
    left: 20%;
    right: 20%;
    width: 60%;
    height: 1px;
    transform: none;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .radar-sweep, .radar-glow {
    right: -100px;
    top: 20%;
  }

  .closing-headline br { display: none; }
}

/* STOCK ALERTS */
.stocks {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.stocks-inner {
  max-width: 900px;
  margin: 0 auto;
}

.stocks-header {
  margin-bottom: 40px;
}

.stocks-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 12px;
}

.stocks-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
}

.stock-settings {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stock-setting-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-setting-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stock-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s;
}

.stock-input:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.stock-input::placeholder { color: var(--fg-muted); }

.btn-stock-save {
  grid-column: 1 / -1;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: end;
}

.btn-stock-save:hover { opacity: 0.85; }

.stock-settings-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
}

.stock-add {
  margin-bottom: 32px;
}

.stock-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stock-input--ticker { width: 90px; flex-shrink: 0; text-transform: uppercase; }
.stock-input--condition { width: 110px; flex-shrink: 0; }
.stock-input--threshold { width: 120px; }

.stock-threshold-wrap {
  position: relative;
  flex-shrink: 0;
}

.stock-dollar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  font-size: 14px;
  pointer-events: none;
}

.stock-input--threshold { padding-left: 24px; }

.btn-stock-add {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-stock-add:hover { opacity: 0.85; }

.stock-add-error {
  font-size: 13px;
  color: #e63946;
  margin-top: 8px;
  min-height: 18px;
}

.stock-watchlist-header,
.stock-history-header {
  margin-bottom: 12px;
}

.stock-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stock-watchlist,
.stock-history {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.stock-empty {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.stock-row:last-child { border-bottom: none; }

.stock-ticker {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  min-width: 60px;
}

.stock-condition-label {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
}

.stock-status {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status--monitoring {
  background: rgba(42, 157, 143, 0.15);
  color: #2a9d8f;
}

.status--fired {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.btn-delete-stock,
.btn-reset {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-delete-stock {
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
}

.btn-reset {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.btn-delete-stock:hover,
.btn-reset:hover { opacity: 0.8; }

.stock-history-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.stock-history-row:last-child { border-bottom: none; }

.stock-trigger {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
}

.stock-date {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .stock-settings { grid-template-columns: 1fr; }
  .stock-add-row { flex-wrap: wrap; }
  .stock-input--ticker, .stock-input--condition, .stock-input--threshold { width: 100%; }
  .btn-stock-add { width: 100%; }
  .stocks { padding: 60px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .grid-overlay, .radar-glow, .eyebrow-dot, .radar-sweep { animation: none !important; }
}