/* =====================================================
   Goon.Tube — Marketing Site Shared Styles
   To add a new page: create pages/your-page.html,
   link this stylesheet, and add a <nav> item in each page.
   ===================================================== */

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

:root {
  --grad: linear-gradient(to right, #f32170, #ff6b08, #cf23cf, #eedd44);
  --blue: #4a9eff;
  --dark: #111;
  --card-bg: #1a1a1a;
  --card-border: #2e2e2e;
  --text-muted: #666;
  --text-dim: #999;
  --text-body: #ccc;
  --font-display: 'Creepster', 'Impact', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Spiral background ──────────────────────────── */
#spiral-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

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

/* ── Site header / nav ───────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: none;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(to right, #f32170, #ff6b08, #cf23cf, #f32170);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.site-nav .btn-nav {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity 0.15s;
}

.site-nav .btn-nav:hover {
  opacity: 0.85;
  background: var(--dark);
  color: #fff;
}

.site-nav .btn-nav-ghost {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}

.site-nav .btn-nav-ghost:hover {
  background: #e6e6e6;
  color: #111;
  opacity: 1;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero-eyebrow svg {
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(to right, #f32170, #ff6b08, #cf23cf, #f32170);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  margin-bottom: 44px;
  display: inline-block;
  background: linear-gradient(to right, #f32170, #ff6b08, #cf23cf, #f32170);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-ghost {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}

.btn-ghost:hover {
  background: #e6e6e6;
  color: #111;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  opacity: 0.9;
}

/* ── Platform badge ──────────────────────────────── */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── App preview mockup ──────────────────────────── */
.hero-preview {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  width: 100%;
  max-width: 820px;
}

.preview-window {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05);
}

.preview-titlebar {
  background: #222;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl-red    { background: #ff5f57; }
.tl-yellow { background: #ffbd2e; }
.tl-green  { background: #28c840; }

.preview-titlebar-text {
  font-size: 12px;
  color: #555;
  margin-left: 6px;
  flex: 1;
  text-align: center;
}

.preview-body {
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 16 / 9;
}

.preview-panel {
  background: #0d0d0d center / cover no-repeat;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-panel-play {
  display: none;
}

.preview-panel-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  z-index: 1;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-body);
}

.preview-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 2;
}

.preview-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 1px;
}

/* ── Section base ────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--dark);
}

.section-white {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.section-frosted {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-label.light { color: var(--text-muted); }
.section-label.dim   { color: #555; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-title.grad {
  background: var(--grad);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title.white { color: #fff; }
.section-title.dark  { color: var(--dark); }

.section-desc {
  font-size: 17px;
  max-width: 560px;
  line-height: 1.7;
}

.section-desc.light { color: var(--text-dim); }
.section-desc.dark  { color: #555; }

/* ── Features grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #444;
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #252525;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Layout diagram ──────────────────────────────── */
.layout-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.layout-option {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.layout-option:hover {
  border-color: #555;
}

.layout-diagram {
  width: 100%;
  aspect-ratio: 4/3;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.layout-name {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 4px;
}

.layout-sub {
  font-size: 12px;
  color: #555;
}

/* ── Two-col split ───────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse > *:first-child {
  order: 2;
}
.split.reverse > *:last-child {
  order: 1;
}

/* ── Platform section ────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.platform-card.available {
  border-color: rgba(74, 158, 255, 0.3);
  background: rgba(74, 158, 255, 0.05);
}

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.platform-status.live {
  background: rgba(40, 200, 64, 0.15);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.25);
}

.platform-status.soon {
  background: rgba(255, 189, 46, 0.12);
  color: #ffbd2e;
  border: 1px solid rgba(255, 189, 46, 0.2);
}

.platform-name {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.platform-version {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Waitlist form ───────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  max-width: 420px;
}

.waitlist-input {
  flex: 1;
  background: #252525;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #ccc;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input::placeholder {
  color: #555;
}

.waitlist-input:focus {
  border-color: #555;
}

.waitlist-btn {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.waitlist-btn:hover {
  opacity: 0.9;
}

.waitlist-note {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}

.waitlist-success {
  display: none;
  font-size: 14px;
  color: #28c840;
  margin-top: 16px;
}

.waitlist-success.visible {
  display: block;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #1e1e1e;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #999;
}

.footer-copy {
  font-size: 12px;
  color: #444;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
}

/* ── Scroll fade-in ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-nav .nav-hide-mobile {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse > *:first-child {
    order: unset;
  }
  .split.reverse > *:last-child {
    order: unset;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .layout-demo {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-inner {
    padding: 72px 20px;
  }
}

@media (max-width: 480px) {
  .preview-body {
    grid-template-columns: 1fr 1fr;
  }
}
