/* ════════════════════════════════════════
   Flappy Board — Marketing Site
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Custom Properties ── */
:root {
  --bg:            #0C0A07;
  --bg-alt:        #0F0D09;
  --bg-section:    #0A0906;
  --bg-card:       #151209;
  --bg-code:       #0E0C08;

  --tile-bg:       #1C1910;
  --tile-border:   #2E2A1E;
  --tile-lit:      #F4E8C0;
  --tile-dim:      #7A6E50;
  --tile-glow:     rgba(244, 196, 80, 0.15);

  --amber:         #E8A820;
  --amber-bright:  #FFC840;
  --amber-muted:   rgba(232, 168, 32, 0.18);
  --amber-line:    rgba(232, 168, 32, 0.3);

  --cream:         #EDE0C0;
  --cream-dim:     #8A7C5E;

  --text:          #BEB2A0;
  --text-muted:    #7E6E56;
  --text-subtle:   #5A5040;

  --border:        #201C14;
  --border-mid:    #2C2618;

  --font-display:  'Abril Fatface', Georgia, serif;
  --font-body:     'Crimson Pro', Georgia, serif;
  --font-mono:     'Courier Prime', 'Courier New', monospace;

  --r:             4px;
  --r-lg:          8px;
  --max:           1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9000;
}

/* ════════════════════════
   NAV
   ════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(9, 8, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 0.45rem 1.1rem;
  border-radius: var(--r);
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
}

/* ════════════════════════
   HERO
   ════════════════════════ */
.hero {
  padding: 5rem 2rem;
  background:
    radial-gradient(ellipse 70% 90% at 65% 50%, rgba(40, 30, 8, 0.5) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
  min-height: 55svh;
}

/* ── Hero text ── */
.hero-text {
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--cream-dim);
  font-weight: 300;
  max-width: 520px;
  margin: 0 0 2.2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--cream);
  color: #0A0808;
  padding: 0.85rem 1.8rem;
  border-radius: var(--r-lg);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-cta:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.hero-cta svg {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
}

.hero-visual {
  position: relative;
}

.hero-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-mid);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.03),
    0 24px 80px rgba(0,0,0,0.85),
    0 0 140px rgba(30, 20, 5, 0.6);
}

/* ════════════════════════
   PROOF STRIP
   ════════════════════════ */
.proof {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
}

.proof-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ════════════════════════
   TV FEATURE
   ════════════════════════ */
.tv-section {
  padding: 6rem 2rem;
  background: var(--bg-section);
}

.tv-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.9rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.section-body {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
}

.tv-screen {
  position: relative;
}

.tv-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-mid);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.8),
    0 0 120px rgba(30, 20, 5, 0.5);
}


.tv-platform-tag {
  position: absolute;
  bottom: -0.8rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
}

/* ════════════════════════
   FEATURES GRID
   ════════════════════════ */
.features {
  padding: 6rem 2rem;
  background: var(--bg);
}

.features-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.2rem 2rem;
  transition: background 0.2s;
}
.feature-card:hover {
  background: #16141E;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--cream-dim);
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
}

/* ════════════════════════
   DEVICE SHOWCASE
   ════════════════════════ */
.devices {
  padding: 6rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.devices-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.devices-header {
  margin-bottom: 3.5rem;
}

.device-strip {
  display: grid;
  grid-template-columns: 1fr 0.55fr 1fr;
  gap: 2rem;
  align-items: end;
}

.device-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-mid);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.device-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.device-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ════════════════════════
   PRICING
   ════════════════════════ */
.pricing {
  padding: 7rem 2rem;
  background: var(--bg-section);
}

.pricing-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.pricing-header {
  margin-bottom: 3.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.plan {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.plan.is-featured {
  background: #131020;
  position: relative;
}

.plan.is-featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--amber);
  padding: 0.25rem 0.9rem;
  border-radius: 0 0 var(--r) var(--r);
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.6rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.plan-price-note {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 300;
}

.plan-features li::before {
  content: '—';
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.plan-features li.dim {
  color: var(--text-muted);
}

.plan-features li.dim::before {
  color: var(--text-subtle);
}

/* ════════════════════════
   INTEGRATIONS / API
   ════════════════════════ */
.integrations {
  padding: 6rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.integrations-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3A3440;
}

.code-file {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: auto;
}

.code-body {
  padding: 1.5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

.code-body .c { color: #4A4260; }   /* comment */
.code-body .k { color: #C080E8; }   /* keyword */
.code-body .s { color: #80C890; }   /* string */
.code-body .n { color: #90C8F0; }   /* name */
.code-body .p { color: var(--text-muted); } /* punct */
.code-body .v { color: var(--amber); }  /* value */

.integration-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.integration-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, background 0.15s;
}
.integration-cta:hover {
  border-color: var(--amber-line);
  background: var(--tile-bg);
}

.integration-cta svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  color: var(--cream-dim);
}

.integration-cta span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.integration-cta strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.integration-cta-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ════════════════════════
   FOOTER
   ════════════════════════ */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ════════════════════════
   SCROLL REVEAL
   ════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ════════════════════════
   PRO WAIT-LIST
   ════════════════════════ */
.waitlist {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.waitlist-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  background: var(--bg-code);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-subtle);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber-line);
}

.waitlist-form button {
  background: var(--amber);
  color: var(--bg);
  border: none;
  border-radius: var(--r);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.waitlist-form button:hover {
  background: var(--amber-bright);
}

/* ════════════════════════
   DOWNLOAD
   ════════════════════════ */
.download {
  padding: 7rem 2rem;
  background: var(--bg);
}

.download-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.download-header {
  margin-bottom: 3.5rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.download-card:hover {
  border-color: var(--amber-line);
  transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}

.download-platform {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.download-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream);
  margin-top: 0.7rem;
  line-height: 1.15;
}

.download-desc {
  color: var(--text);
  font-size: 1rem;
  margin-top: 0.7rem;
  flex-grow: 1;
}

/* Official Apple App Store badge — do not restyle the artwork itself.
   Clear space (>= 1/10 of badge height) is preserved via margin. */
.download-badge {
  align-self: flex-start;
  height: 48px;
  width: auto;
  margin-top: 1.8rem;
}

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; min-height: unset; }
  .hero-visual { order: -1; }
  .hero-text { text-align: center; }
  .hero-sub { margin: 0 auto 2.2rem; }
  .tv-inner { grid-template-columns: 1fr; }
  .tv-inner .tv-screen { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; border: none; gap: 1rem; }
  .plan { border: 1px solid var(--border); border-radius: var(--r-lg); }
  .integrations-inner { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .device-strip { grid-template-columns: 1fr; }
  .device-item:nth-child(2) { display: none; } /* hide iPad on small */
}

@media (max-width: 600px) {
  .nav { padding: 0.9rem 1.2rem; }
  .hero { padding: 2.5rem 1rem 3rem; }
  .hero-inner { gap: 2rem; }
  .hero-headline { font-size: 2.6rem; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-inner { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-heading { font-size: 2rem; }
}
