/* ═══════════════════════════════════════════
   COMPONENTS — Section-by-section styles
   ═══════════════════════════════════════════ */

/* ── Screen Reader Only ── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Body ── */

body {
  background: var(--surface-bg);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(21, 180, 137, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(21, 180, 137, 0.35);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--lavender);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--duration-fast), backdrop-filter var(--duration-fast);
}

nav.scrolled {
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--surface-border);
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  padding: 8px 20px;
  border: 1px solid rgba(21, 180, 137, 0.3);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
}

.nav-cta:hover {
  background: rgba(21, 180, 137, 0.1);
  border-color: var(--green);
}

/* ── Mobile Nav Toggle ── */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-8) var(--space-8);
    background: var(--deep);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-6);
  }

  .nav-links a {
    font-size: var(--text-lg);
  }

  .nav-cta {
    margin-top: var(--space-4);
  }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-30) 0 var(--space-20);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(123, 117, 168, 0.12) 0%, rgba(21, 180, 137, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BRAND STORY
   ═══════════════════════════════════════════ */

.brand-story {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.brand-story blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}

.brand-story blockquote strong {
  color: var(--text-primary);
  font-style: normal;
}

/* ═══════════════════════════════════════════
   CARDS (shared)
   ═══════════════════════════════════════════ */

.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}

.card:hover {
  border-color: rgba(123, 117, 168, 0.3);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(21, 180, 137, 0.1);
  color: var(--green);
  margin-bottom: var(--space-5);
}

.card-icon--lavender {
  background: rgba(123, 117, 168, 0.12);
  color: var(--lavender);
}

.card-icon--green {
  background: rgba(21, 180, 137, 0.1);
  color: var(--green);
}

.card-icon--amber {
  background: rgba(184, 117, 15, 0.12);
  color: var(--amber);
}

/* ═══════════════════════════════════════════
   PROBLEM
   ═══════════════════════════════════════════ */

#problem .section-subtitle {
  margin-bottom: var(--space-12);
}

.problem-grid {
  margin-top: var(--space-12);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS — Steps
   ═══════════════════════════════════════════ */

.steps {
  margin-top: var(--space-12);
  max-width: 700px;
}

.step {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--surface-border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
}

.step-content h3 {
  margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */

.features-grid {
  margin-top: var(--space-12);
}

.feature-card:hover {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   SIGNALS
   ═══════════════════════════════════════════ */

#signals .section-subtitle {
  margin-bottom: var(--space-12);
}

.signal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.signal-card {
  flex: 1 1 160px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-fast);
}

.signal-card:hover {
  border-color: rgba(123, 117, 168, 0.3);
}

.signal-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-subtle);
  color: var(--lavender);
  margin-bottom: var(--space-4);
}

.signal-card h4 {
  margin-bottom: var(--space-1);
}

/* ── Signal Sources (Prediction Market Logos) ── */

.signal-sources {
  margin-top: var(--space-16);
  text-align: center;
}

.signal-sources p {
  margin-bottom: var(--space-6);
}

.source-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.source-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.source-logo:hover {
  color: var(--text-secondary);
}

.source-logo span {
  font-size: var(--text-sm);
  font-weight: 500;
}

.source-logo-img {
  height: 20px;
  width: auto;
  filter: invert(1) brightness(0.6);
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.source-logo-img[alt="Polymarket"] {
  height: 22px;
}

.source-logo:hover .source-logo-img {
  opacity: 1;
}

@media (max-width: 500px) {
  .source-logos {
    gap: var(--space-6);
  }
}

/* ═══════════════════════════════════════════
   APP PREVIEW — Phone Frames
   ═══════════════════════════════════════════ */

#app-preview h2 {
  margin-bottom: var(--space-12);
}

.phone-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  perspective: 1000px;
}

.phone-frame {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--deep);
  border: 2px solid rgba(123, 117, 168, 0.15);
  box-shadow: var(--shadow-lg);
  opacity: 0.7;
  transform: scale(0.9);
  transition: opacity var(--duration-normal), transform var(--duration-normal);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-frame--featured {
  width: 260px;
  opacity: 1;
  transform: scale(1);
  border-color: rgba(123, 117, 168, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow-lavender);
}

@media (max-width: 767px) {
  .phone-showcase {
    gap: var(--space-3);
  }

  .phone-frame {
    width: 140px;
    border-radius: 20px;
  }

  .phone-frame--featured {
    width: 180px;
  }
}

@media (max-width: 500px) {
  .phone-frame:not(.phone-frame--featured) {
    display: none;
  }

  .phone-frame--featured {
    width: 260px;
  }
}

/* ═══════════════════════════════════════════
   WAITLIST
   ═══════════════════════════════════════════ */

#waitlist {
  border-top: 1px solid var(--surface-border);
}

.waitlist-content {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-content h2 {
  margin-bottom: var(--space-4);
}

.waitlist-content .section-subtitle {
  margin-bottom: var(--space-10);
}

.waitlist-form {
  margin-top: var(--space-8);
}

.waitlist-input-group {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-input-group input {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast);
}

.waitlist-input-group input::placeholder {
  color: var(--text-muted);
}

.waitlist-input-group input:focus {
  outline: none;
  border-color: var(--lavender);
}

.waitlist-note {
  margin-top: var(--space-4);
}

.waitlist-success {
  padding: var(--space-8) 0;
}

.success-icon {
  margin-bottom: var(--space-4);
}

.waitlist-success h3 {
  margin-bottom: var(--space-2);
}

@media (max-width: 500px) {
  .waitlist-input-group {
    flex-direction: column;
  }

  .waitlist-input-group .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--surface-border);
}

.footer-logo img {
  height: 24px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-repos {
  margin-top: var(--space-6);
}

.footer-repos p {
  margin-bottom: var(--space-3);
}

.repo-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.repo-link:hover {
  color: var(--text-secondary);
}

.repo-link svg {
  flex-shrink: 0;
}

.footer-divider {
  height: 1px;
  background: var(--surface-border);
  margin: var(--space-8) 0;
}

.footer-tagline {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .repo-links {
    justify-content: center;
  }
}
