/* PlayTube showcase — cinematic dark + neon red. Clash Display (headings) + Satoshi (body). */

:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --ink: #f4f6fb;
  --muted: #9aa3b5;
  --faint: #5b6478;
  --red: #ff2d2d;
  --red-soft: #ff5a4d;
  --red-deep: #b01313;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.035);
  --glass: rgba(12, 14, 20, 0.6);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

/* ── Atmosphere ── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(255, 45, 45, 0.22), transparent 60%),
    radial-gradient(50% 45% at 12% 30%, rgba(176, 19, 19, 0.16), transparent 65%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 90, 77, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  backdrop-filter: blur(14px);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: "Clash Display", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand-logo { height: 30px; width: auto; border-radius: 7px; }
.brand-dot { width: 16px; height: 16px; border-radius: 5px; background: var(--red); box-shadow: 0 0 18px var(--red); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(180deg, var(--red-soft), var(--red-deep));
  box-shadow: 0 6px 22px rgba(255, 45, 45, 0.35); font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.08); }

/* ── Hero ── */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 70px 28px 90px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
/* Allow grid columns to shrink below content width so text wraps instead of overflowing. */
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-soft); font-weight: 700; margin-bottom: 18px;
}
.hero-title {
  font-family: "Clash Display", sans-serif; font-weight: 700;
  font-size: clamp(38px, 7vw, 86px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 22px;
  max-width: 100%; overflow-wrap: break-word; word-break: break-word;
  background: linear-gradient(180deg, #fff 35%, #c6ccdb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 19px; color: var(--muted); max-width: 36ch; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 14px; color: #fff;
  background: linear-gradient(180deg, #15171f, #0c0e14); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 45, 45, 0.5); }
.gp-icon { color: var(--red-soft); filter: drop-shadow(0 0 8px rgba(255, 90, 77, 0.6)); }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-text small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.store-badge-text strong { font-family: "Clash Display", sans-serif; font-size: 19px; font-weight: 600; }
.ghost-btn { color: var(--muted); font-weight: 500; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.ghost-btn:hover { color: var(--ink); border-color: var(--red); }

/* ── Phone mockup ── */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 540px; min-width: 0; }
.glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.45), transparent 62%);
  filter: blur(40px); animation: pulse 6s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(1.12); opacity: 1; } }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #23262f, #0a0b10 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #05060a; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #05060a; }
.phone-screen img { height: 100%; width: 100%; object-fit: cover; }
.phone-placeholder {
  height: 100%; display: grid; place-items: center; font-family: "Clash Display", sans-serif; font-weight: 700;
  font-size: 26px; color: var(--faint);
  background: radial-gradient(circle at 50% 35%, rgba(255, 45, 45, 0.25), transparent 60%), #0a0b10;
}

/* ── Sections ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 60px 28px; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; margin: 8px 0 0; }

/* ── Gallery ── */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 26px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot {
  flex: 0 0 auto; width: 230px; aspect-ratio: 9 / 19.5; margin: 0; border-radius: 28px; overflow: hidden;
  scroll-snap-align: center; border: 1px solid var(--line); background: #05060a;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.shot:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(255, 45, 45, 0.45); }
.shot img { height: 100%; width: 100%; object-fit: cover; }

/* ── Footer ── */
.footer { max-width: var(--maxw); margin: 40px auto 0; padding: 50px 28px 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin: 14px 0; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.socials { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; transition: 0.25s; }
.socials a:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 16px rgba(255, 45, 45, 0.35); }
.footer-bottom { margin-top: 36px; color: var(--faint); font-size: 14px; }

/* ── Content (privacy/terms) ── */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 60px 28px 40px; }
.doc-title { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; margin: 10px 0 30px; }
.doc-body { color: #d3d8e4; }
.doc-body h1, .doc-body h2, .doc-body h3 { font-family: "Clash Display", sans-serif; color: #fff; letter-spacing: -0.01em; margin-top: 1.8em; }
.doc-body h2 { font-size: 26px; } .doc-body h3 { font-size: 20px; }
.doc-body a { color: var(--red-soft); text-decoration: underline; text-underline-offset: 3px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; } .doc-body li { margin: 0.4em 0; }
.doc-body blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 3px solid var(--red); color: var(--muted); background: var(--card); border-radius: 0 8px 8px 0; }
.doc-body code { background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.doc-body hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.not-found { text-align: center; padding-top: 80px; }
.not-found .doc-title { font-size: clamp(64px, 14vw, 130px); }

/* ── Reveal animations ── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.shot[data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .phone, .glow { animation: none; }
}

/* ── Responsive ── */

/* Tablet / small laptop */
@media (max-width: 1024px) {
  .hero { gap: 28px; padding: 56px 24px 76px; }
  .hero-title { font-size: clamp(40px, 6.5vw, 70px); }
  .phone { width: 264px; }
  .glow { width: 380px; height: 380px; }
  .section { padding: 50px 24px; }
}

/* Stack the hero — single column, centred, phone on top */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .hero-copy > * { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 440px; order: -1; }
  .footer-top { flex-direction: column; gap: 26px; }
  .footer-links { flex-flow: row wrap; gap: 18px; }
}

/* Phones */
@media (max-width: 560px) {
  .nav { padding: 14px 16px; gap: 12px; }
  .nav-links { gap: 12px; font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; } /* keep just the Download CTA */
  .nav-cta { padding: 8px 14px; }
  .brand span { white-space: nowrap; }
  .hero { padding: 26px 16px 56px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-desc { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .store-badge { width: 100%; max-width: 320px; justify-content: center; }
  .hero-visual { min-height: 400px; }
  .phone { width: 230px; }
  .glow { width: 300px; height: 300px; }
  .section { padding: 40px 18px; }
  .shots { gap: 16px; }
  .shot { width: 70vw; max-width: 240px; }
  .footer { padding: 40px 18px 30px; }
  .doc-wrap { padding: 40px 18px 32px; }
  .doc-body { font-size: 16px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero-title { font-size: 30px; }
  .phone { width: 200px; }
  .brand { font-size: 18px; }
  .nav-cta { padding: 7px 12px; font-size: 14px; }
}
