/* ============================================================
   CalyxFi — Global Stylesheet
   Palette: Midnight Green & Teal (Option B)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg:           #060D10;
  --bg-card:      #0D2B2B;
  --bg-elevated:  #0F3535;
  --accent:       #00C9A7;
  --accent-bright:#00E5C3;
  --accent-dim:   #00A88A;
  --accent-glow:  rgba(0,201,167,0.28);
  --accent-faint: rgba(0,201,167,0.07);
  --text:         #DFF0EE;
  --text-sec:     #9ABFBB;
  --muted:        #527872;
  --border:       rgba(0,201,167,0.13);
  --border-strong:rgba(0,201,167,0.28);
  --danger:       #FF6B6B;
  --nav-h:        72px;
  --r:            12px;
  --r-lg:         20px;
  --shadow:       0 8px 48px rgba(0,0,0,0.55);
  --max-w:        1140px;
  --ease:         0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-sec); line-height: 1.78; }

/* ── Layout ─────────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 40px;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(6,13,16,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
  transition: opacity var(--ease);
}
.brand:hover { opacity: 0.85; }
.brand-name { color: var(--text); }
.brand-name em { font-style: normal; color: var(--accent); }
/* Fi accent: green only inside headings; inherits text colour everywhere else */
.fi { color: inherit; font-style: normal; }
h1 .fi, h2 .fi { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-sec); transition: color var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn-primary { color: #060D10; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.4rem; padding: 4px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 9px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: all var(--ease); border: none; font-family: inherit;
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-faint);
  box-shadow: 0 0 18px var(--accent-glow);
}
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: 11px; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { max-width: 580px; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 1.05rem; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 48px rgba(0,201,167,0.07);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-faint); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.35rem;
}
.card h3 { margin-bottom: 10px; }

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

/* ── HERO (Home) ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%,  rgba(0,201,167,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 90%,  rgba(0,201,167,0.05) 0%, transparent 50%),
    var(--bg);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--accent-faint); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero-tag .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.45; transform:scale(0.75); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead {
  font-size: 1.12rem; color: var(--text-sec);
  max-width: 560px; margin-bottom: 40px; line-height: 1.82;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding-top: 40px; padding-bottom: 56px;
  border-top: 1px solid var(--border);
}
.stat-item {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; padding-right: 0; padding-left: 0; }
.stat-item:first-child { padding-left: 0; }
.stat-item + .stat-item { padding-left: 32px; }
.stat-val {
  font-size: 2.1rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.04em; line-height: 1;
}
.stat-lbl {
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 7px;
}

/* ── HOW IT WORKS (Home teaser) ──────────────────────────── */
.features-band { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── CALYX BRAND SECTION ─────────────────────────────────── */
.calyx-visual-wrap {
  display: flex; justify-content: center; align-items: center;
}
.calyx-big {
  position: relative; width: 280px; height: 280px;
}
.calyx-big svg { width: 100%; height: 100%; }
.calyx-ring {
  position: absolute; inset: -20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.calyx-text h2 { margin-bottom: 20px; }
.calyx-text blockquote {
  font-size: 1.05rem; color: var(--text-sec); font-style: italic;
  border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0;
  line-height: 1.8;
}

/* ── WAITLIST / CTA SECTION ──────────────────────────────── */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section .lead { margin: 0 auto 40px; }
.waitlist-form {
  display: flex; gap: 10px; max-width: 440px; margin: 0 auto 28px;
}
.waitlist-form input {
  flex: 1; padding: 13px 18px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 0.95rem; outline: none;
  transition: border-color var(--ease);
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--muted); }
.success-msg {
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
  padding: 14px; text-align: center;
}
.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.social-link {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-sec);
  transition: all var(--ease);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  position: relative; overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.65; }
.page-hero .page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.08rem; max-width: 520px; }

/* ── STRATEGY PAGE ───────────────────────────────────────── */
.step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 28px; margin-bottom: 56px; position: relative;
}
.step::after {
  content: ''; position: absolute;
  left: 27px; top: 58px; bottom: -36px;
  width: 2px; background: linear-gradient(to bottom, var(--border), transparent);
}
.step:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--accent); flex-shrink: 0;
}
.step-body { padding-top: 12px; }
.step-body h3 { margin-bottom: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  padding: 4px 11px; border-radius: 6px;
  background: var(--accent-faint); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── PERFORMANCE PAGE ────────────────────────────────────── */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 40px;
}
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px; text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: default; position: relative;
}
.metric-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-2px);
}
.metric-card.highlight { border-color: var(--accent); background: linear-gradient(135deg, var(--bg-card), #0A3535); }
.metric-card.highlight:hover { box-shadow: 0 0 52px rgba(0,201,167,0.38); }

/* Tooltip */
.metric-card[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  color: var(--text-sec); font-size: 0.72rem; line-height: 1.55;
  padding: 9px 13px; border-radius: 9px; width: 210px;
  white-space: normal; text-align: left; text-transform: none; letter-spacing: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 0.18s; z-index: 20;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.metric-card[data-tip]:hover::after { opacity: 1; }
.m-val {
  font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.metric-card.positive .m-val { color: var(--accent); }
.metric-card.neutral .m-val { color: var(--text); }
.m-lbl { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.chart-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px; margin-bottom: 40px;
}
.chart-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 8px; flex-wrap: wrap; gap: 12px;
}
.chart-header h3 { color: var(--text); }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-sec); }
.legend-line { width: 24px; height: 3px; border-radius: 2px; }
.chart-subtitle { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.chart-note { font-size: 0.75rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Bear avoidance table */
.table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
td { padding: 16px 20px; font-size: 0.9rem; color: var(--text-sec); border-bottom: 1px solid rgba(0,201,167,0.05); }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text); font-weight: 600; }
.text-danger  { color: #FF8080; font-weight: 700; }
.text-success { color: var(--accent); font-weight: 700; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-cash { background: rgba(0,201,167,0.1); color: var(--accent); }
.badge-bear { background: rgba(255,100,100,0.1); color: #FF8080; }
.disclaimer-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 24px; margin-top: 40px;
}
.disclaimer-box p { font-size: 0.78rem; color: var(--muted); line-height: 1.7; }

/* ── PRICING PAGE ────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px; align-items: stretch;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 30px;
  position: relative; transition: all var(--ease);
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 48px rgba(0,201,167,0.12);
}
.pricing-card.coming-soon {
  opacity: 0.42; pointer-events: none;
  filter: saturate(0.2);
}
.coming-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.plan-tier { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.plan-price sub { font-size: 1rem; font-weight: 400; color: var(--muted); vertical-align: baseline; }
.plan-price.free-price { color: var(--accent); }
.plan-desc { font-size: 0.88rem; color: var(--muted); margin: 14px 0 26px; line-height: 1.65; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 32px; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-sec); margin-bottom: 12px; line-height: 1.5;
}
.plan-features li .check { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.featured-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #050E0B;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 0 0 8px 8px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .tagline { font-size: 0.85rem; color: var(--muted); margin-top: 10px; max-width: 200px; line-height: 1.65; }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-sec); margin-bottom: 11px; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(0,201,167,0.06);
}
.footer-bottom .copy { font-size: 0.8rem; color: var(--muted); }
.footer-bottom .disc { font-size: 0.72rem; color: var(--muted); opacity: 0.65; max-width: 580px; line-height: 1.65; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid  { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-card.coming-soon { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .metrics-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(6,13,16,0.97); backdrop-filter: blur(14px); padding: 28px; gap: 18px; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; padding: 0 !important; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .waitlist-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .chart-header { flex-direction: column; }
}
