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

:root {
  --ink: #0d0620;
  --violet-deep: #1a0b33;
  --violet-card: #241040;
  --electric: #6c2bd9;
  --magenta: #b721ff;
  --gold: #ffc531;
  --off-white: #f7f5fb;
  --muted: #9d92b8;
  --line: rgba(255, 255, 255, 0.09);

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 6, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
}

.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--off-white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  font-weight: 700;
  font-size: 14px;
}

.nav-toggle { display: none; }

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(closest-side, rgba(108, 43, 217, 0.35), transparent);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.03;
  margin: 18px 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--gold), #ff9f4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  color: white;
  box-shadow: 0 12px 30px -12px rgba(108, 43, 217, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--off-white);
}

.store-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Pendulum demo (signature element) ---------- */

.demo-card {
  position: relative;
  background: linear-gradient(180deg, var(--violet-card), var(--violet-deep));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 32px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--electric);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin: 0 auto 18px;
}
.demo-label-wrap { display: flex; justify-content: center; }

.pendulum-stage {
  position: relative;
  height: 260px;
  display: flex;
  justify-content: center;
}

.pivot-dot {
  position: absolute;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.pendulum-fixed,
.pendulum-swing {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform-origin: top center;
}

.pendulum-fixed { filter: brightness(0) opacity(0.9); }

.pendulum-swing {
  animation: swing 1.1s ease-in-out infinite alternate;
}

.pendulum-swing.stopped { animation-play-state: paused; }

@keyframes swing {
  0% { transform: rotate(-19deg); }
  100% { transform: rotate(19deg); }
}

.parrot-emoji { font-size: 46px; line-height: 1; }

.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}
.pendulum-fixed .dot { background: #1c1c1c; box-shadow: none; }

.demo-status {
  text-align: center;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  min-height: 18px;
}
.demo-status.win { color: var(--gold); }
.demo-status.miss { color: #ff8080; }

.demo-actions { display: flex; justify-content: center; margin-top: 16px; }

.btn-stop {
  background: var(--gold);
  color: #241040;
  padding: 12px 34px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-stop:active { transform: translateY(1px); }

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--violet-deep);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track .sep { color: var(--gold); }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section { padding: 100px 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 14px 0 12px;
  line-height: 1.1;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Precision ladder */

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

.tier {
  display: grid;
  grid-template-columns: 90px 1fr 160px;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--violet-deep);
}

.tier-mult {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--off-white);
}

.tier-3 .tier-mult { color: var(--gold); font-size: 36px; }

.tier-body h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; }
.tier-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.tier-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tier-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--electric), var(--magenta));
}
.tier-3 .tier-bar-fill { background: linear-gradient(90deg, var(--gold), #ff9f4a); }

.tier-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

/* How it works */

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

.step {
  padding: 32px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--violet-card), var(--violet-deep));
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 10px;
}

.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Trust */

.trust {
  background: var(--off-white);
  color: var(--ink);
}

.trust .section-head p { color: #6b6580; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  padding: 28px;
  border-radius: 18px;
  background: white;
  border: 1px solid #e7e2f2;
}

.trust-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 43, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.trust-card h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.trust-card p { color: #6b6580; font-size: 13.5px; line-height: 1.6; margin: 0; }

/* FAQ */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--violet-deep);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-q .plus {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-item.open .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.open .faq-a { max-height: 220px; padding-bottom: 20px; }

/* Final CTA */

.final-cta {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(183, 33, 255, 0.25), transparent 60%),
    var(--violet-deep);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 16px;
}

.final-cta p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 16px;
}

/* Footer */

footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }

.footer-tag { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 260px; line-height: 1.5; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-col a { display: block; color: var(--off-white); font-size: 14px; margin-bottom: 10px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .pendulum-swing, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .steps, .trust-grid { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 60px 1fr; }
  .tier-bar-wrap { grid-column: 1 / -1; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 72px 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
