/* ============================================================
   CandleBoss — styles.css
   Dark-first, brand colors from the iOS app
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --green:   #3DC98A;
  --red:     #F55C6B;
  --purple:  #9470FA;
  --gold:    #FAC038;

  /* Backgrounds */
  --bg:       #111722;
  --bg-card:  #1A2030;
  --bg-card2: #1F2840;
  --border:   rgba(255,255,255,0.07);

  /* Text */
  --text:     #FFFFFF;
  --text-2:   rgba(255,255,255,0.60);
  --text-3:   rgba(255,255,255,0.35);

  /* Layout */
  --max-w: 1160px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #0a1208;
}
.btn-primary:hover { background: #4ee49a; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(61,201,138,0.35); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-2); max-width: 540px; margin: 0 auto; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,23,34,0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.logo-icon { font-size: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}
.nav-links a:not(.btn) {
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 580px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(61,201,138,0.12);
  border: 1px solid rgba(61,201,138,0.25);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Phone Mockup ───────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  background: #0d1219;
  border-radius: 40px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(61,201,138,0.08);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  padding: 32px 16px 16px;
}

.mock-drill { display: flex; flex-direction: column; gap: 14px; }

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.mock-streak { font-size: 13px; font-weight: 600; color: var(--gold); }

.mock-chart {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  height: 100px;
  display: flex;
  align-items: flex-end;
}

.mock-candles {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  justify-content: center;
  height: 100%;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.candle .wick-top, .candle .wick-bot {
  width: 2px;
  background: rgba(255,255,255,0.25);
}
.candle.bull .body  { background: var(--green); }
.candle.bear .body  { background: var(--red); }
.candle .body { width: 14px; border-radius: 2px; }

/* candle sizes */
.candle:nth-child(1) .wick-top { height: 8px; }
.candle:nth-child(1) .body     { height: 28px; }
.candle:nth-child(1) .wick-bot { height: 5px; }

.candle.big .wick-top { height: 6px; }
.candle.big .body     { height: 52px; }
.candle.big .wick-bot { height: 4px; }

.candle.small .wick-top { height: 10px; }
.candle.small .body     { height: 14px; }
.candle.small .wick-bot { height: 10px; }

.candle.pulse .wick-top { height: 7px; }
.candle.pulse .body     { height: 36px; }
.candle.pulse .wick-bot { height: 5px; }
.candle.pulse .body {
  background: var(--green);
  animation: glow-pulse 1.8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,201,138,0); }
  50% { box-shadow: 0 0 12px 4px rgba(61,201,138,0.45); }
}

.mock-question {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.mock-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-answer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 10px;
  text-align: center;
  color: var(--text-2);
}
.mock-answer.correct {
  background: rgba(61,201,138,0.12);
  border-color: rgba(61,201,138,0.35);
  color: var(--green);
  font-weight: 600;
}

.mock-xp {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  animation: pop 0.4s ease;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Strip ──────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip-inner::-webkit-scrollbar { display: none; }

.strip-inner span {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  flex-shrink: 0;
}

/* ── Features ───────────────────────────────────────────────── */
.features { padding: 96px 0; }

.features-grid {
  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: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(61,201,138,0.25);
  transform: translateY(-2px);
}

.feature-card--large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 0;
}
.feature-card--large .feature-icon {
  grid-column: 1;
  grid-row: 1;
}
.feature-card--large h3 {
  grid-column: 1 / -1;
  grid-row: 2;
}
.feature-card--large p {
  grid-column: 1 / -1;
}
.feature-card--large .feature-list {
  grid-column: 1 / -1;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works { padding: 96px 0; background: rgba(255,255,255,0.015); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(61,201,138,0.10);
  border: 1px solid rgba(61,201,138,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 2px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  align-self: center;
  flex: 0 0 40px;
  margin-bottom: 60px;
}

/* ── Categories ─────────────────────────────────────────────── */
.categories { padding: 96px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.cat-card:hover { border-color: rgba(61,201,138,0.25); transform: translateY(-2px); }

.cat-icon { font-size: 28px; }
.cat-name { font-size: 13px; font-weight: 600; }
.cat-count { font-size: 11px; color: var(--text-3); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing { padding: 96px 0; background: rgba(255,255,255,0.015); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(61,201,138,0.35);
  background: linear-gradient(160deg, rgba(61,201,138,0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 48px rgba(61,201,138,0.08);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0a1208;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-amount { font-size: 42px; font-weight: 800; line-height: 1; }
.price-period { font-size: 14px; color: var(--text-3); }

.plan-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.plan-features li.yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.plan-features li.no {
  color: var(--text-3);
  text-decoration: line-through;
}
.plan-features li.no::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.plan-features li.no:empty,
.plan-features li.no:has(> br),
.plan-features li.no[style] {
  visibility: hidden;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-3);
}

/* ── Download CTA ───────────────────────────────────────────── */
.download {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(61,201,138,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-inner { position: relative; z-index: 1; }

.download-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.download-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.download-content p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 36px;
}

.download-sub {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 13px !important;
  color: var(--text-3) !important;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }

  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 1px; height: 40px; border-top: none; border-left: 1px dashed rgba(255,255,255,0.15); flex: 0 0 40px; margin-bottom: 0; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; display: flex; flex-direction: column; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 400px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}
