/* AXIS Design System — tokens copied directly from the real journal
   (public/index.html), not reinvented. See DESIGN-SYSTEM.md. */
:root {
  --bg: #080a0c;
  --bg-card: #0e1115;
  --bg-card2: #131820;
  --bg-hover: #171e28;
  --border: #1c2330;
  --border-light: #243040;
  --text: #e8edf5;
  --text-muted: #7a8a9e;
  --text-dim: #3d4e62;
  --accent: #22c55e;
  --accent-dim: #052010;
  --accent-bright: #4ade80;
  --accent-glow: rgba(34,197,94,0.15);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #a78bfa;
  --font: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-sm: 5px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(34,197,94,0.04) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Animated background canvas — same one the journal itself uses, so the
   homepage feels like a continuation of the product rather than a
   separate marketing site. Sits behind everything (z-index 0); every
   other section of the page is normal-flow content painted after it in
   DOM order, so it naturally renders on top without needing an explicit
   z-index bump — same pattern already proven in the journal. */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.nav, .hero, .features, .pricing, .dyl-footer, .auth-wrap {
  position: relative;
  z-index: 1;
}

/* Micro-interactions — feature cards lift and glow on hover instead of
   sitting completely static, without becoming distracting */
.feature-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(34,197,94,0.08);
}

/* Pulsing glow on the primary CTA — same animation language already
   used inside the journal (chart analysis button, score ring), not a
   new pattern invented just for this page */
.hero-cta .btn-primary {
  animation: heroCtaPulse 2.6s ease-in-out infinite;
}
@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ── Logo lockup — identical markup to the journal sidebar ── */
.axis-logo { display: flex; align-items: center; gap: 10px; }
.axis-logo-text { font-family: var(--font-condensed); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; color: var(--text); }
.axis-logo-sub { font-size: 8px; letter-spacing: 1.5px; color: var(--text-dim); font-family: var(--font-condensed); font-weight: 700; text-transform: uppercase; margin-top: 1px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid var(--border);
}
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-bright); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border-light); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--accent); text-decoration: none; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
}
.auth-card h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.auth-card p.sub { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }

.msg { font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; display: none; }
.msg.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.msg.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim); }

.hero {
  max-width: 900px; margin: 0 auto; padding: 90px 24px 60px; text-align: center;
}
.hero h1 { font-family: var(--font-condensed); font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }
.hero-cta .btn { padding: 13px 28px; font-size: 15px; }

.features {
  max-width: 1000px; margin: 0 auto; padding: 40px 24px 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.15s;
}
.feature-card:hover { border-color: var(--border-light); }
.feature-card .icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.pricing {
  max-width: 420px; margin: 0 auto 90px; padding: 0 24px;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.price-card .amount { font-family: var(--mono); font-size: 40px; font-weight: 700; margin: 12px 0; color: var(--accent); }
.price-card .amount span { font-family: var(--font); font-size: 15px; color: var(--text-muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; font-size: 14px; color: var(--text-muted); }
.price-card li { padding: 6px 0; display: flex; gap: 8px; }

/* ── DYL Trades footer — present on every page, not just the homepage ── */
.dyl-footer {
  border-top: 1px solid var(--border); padding: 32px 24px; margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}
.dyl-footer .socials { display: flex; gap: 16px; align-items: center; }
.dyl-footer a { color: var(--text-muted); }
.dyl-footer a:hover { color: var(--accent); }

.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent);
  animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
