/* TradeTrack landing — dark glass with green financial-chart accents,
   matching the app icon. Plain CSS, no build step. */

:root {
  --bg: #061426;
  --bg-deep: #030c18;
  --glass: rgba(16, 36, 58, 0.55);
  --glass-strong: rgba(18, 42, 66, 0.8);
  --border: rgba(120, 190, 200, 0.14);
  --text: #e8f0f5;
  --muted: #93a5b8;
  --accent: #10e7bd;
  --profit: #22c55e;
  --radius: 18px;
  --container: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Background ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(16, 231, 189, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(34, 197, 94, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 70%);
}

.candles {
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  width: 100%;
  height: 420px;
  opacity: 0.07;
}
.candles polyline { fill: none; stroke: var(--profit); stroke-width: 3; }
.candles rect { fill: var(--profit); }
.candles line { stroke: var(--profit); stroke-width: 2; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 12, 24, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--profit));
  color: #032018;
  box-shadow: 0 8px 24px rgba(16, 231, 189, 0.25);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(16, 231, 189, 0.45); }
.btn-small { padding: 8px 16px; font-size: 0.92rem; border-radius: 10px; }
/* Not a link: a platform that's on its way (iPhone). */
.btn-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  border-style: dashed;
  cursor: default;
}
.btn-soon:hover { transform: none; }

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

.hero {
  display: grid;
  /* 45 % text, 55 % mockup. */
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.nowrap { white-space: nowrap; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--profit));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.fineprint { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }

.hero-visual { position: relative; }
/* Ready-made laptop + phone mockup with a transparent background; the
   shadow follows the devices' outline, not the image's rectangle. */
.hero-mockup {
  width: 100%;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.5));
}

/* ---------- Demo strip ---------- */

.demo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--glass);
}
.demo-inner { padding-top: 22px; padding-bottom: 22px; color: var(--muted); text-align: center; }
.demo-inner strong { color: var(--text); margin-right: 6px; }

/* ---------- Features ---------- */

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
}
.section-lead {
  max-width: 40em;
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.features { padding-top: 96px; padding-bottom: 40px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 88px;
}
.feature.reverse .feature-copy { order: 2; }
.feature h3 { margin: 0 0 12px; font-size: 1.75rem; line-height: 1.2; }
.feature p { color: var(--muted); font-size: 1.05rem; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 0 0 1.5px var(--profit);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.45em + 4px);
  width: 4px;
  height: 7px;
  border: solid var(--profit);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Ready-made device mockups (transparent PNG → WebP, see
   scripts/landing_images.py). The shadow follows the device outline. */
.feature-mockup {
  width: min(320px, 78%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}
.feature-mockup-wide { width: min(540px, 100%); }

.feature-visual { display: flex; justify-content: center; align-items: flex-start; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 96px;
}
.mini {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mini h4 { margin: 0 0 6px; font-size: 1.05rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */

.pricing { padding-top: 96px; padding-bottom: 40px; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-price { margin: 6px 0 4px; color: var(--muted); }
.plan .checks { flex: 1; margin-bottom: 24px; }
.plan-pro {
  background: var(--glass-strong);
  border-color: rgba(16, 231, 189, 0.45);
  box-shadow: 0 0 0 1px rgba(16, 231, 189, 0.15), 0 20px 60px rgba(16, 231, 189, 0.12);
}

/* ---------- Privacy ---------- */

.privacy { padding-top: 88px; }
.privacy-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}
.privacy-card h2 { margin: 0 0 10px; font-size: 1.6rem; }
.privacy-card p { color: var(--muted); margin: 0 0 14px; }

/* ---------- Final CTA + footer ---------- */

.final-cta { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.final-cta h2 { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.2rem); }

.footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.disclaimer { margin-top: 14px; font-size: 0.82rem; opacity: 0.8; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature.reverse .feature-copy { order: 0; }
  .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .plans { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .lead { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
