/* ChessP2P landing — design system + sections
 * Palette pulled from the app icon: deep purple + neon cyan, with hot pink as a spark.
 */

:root {
  --bg-0: #050211;
  --bg-1: #0d0524;
  --bg-2: #1a0a3e;
  --purple-deep: #2d0b5e;
  --purple: #4a1f8a;
  --purple-bright: #8a47ff;
  --cyan: #00d4ff;
  --cyan-soft: #4fc3f7;
  --pink: #ff2d8a;
  --ink: #f5f0ff;
  --ink-dim: #b8a8d8;
  --ink-dimmer: #7a6d99;
  --line: rgba(138, 71, 255, 0.18);
  --line-bright: rgba(0, 212, 255, 0.35);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-glow: 0 0 60px rgba(138, 71, 255, 0.4);
  --shadow-cyan: 0 0 40px rgba(0, 212, 255, 0.35);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* ------------------------------- NAV ------------------------------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 48px);
  z-index: 10;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  /* Soft purple-cyan glow picked up from the icon's own palette */
  filter: drop-shadow(0 0 14px rgba(138, 71, 255, 0.5)) drop-shadow(0 0 24px rgba(0, 212, 255, 0.2));
}
.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.06);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav__cta:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* ------------------------------ HERO ------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  padding: 100px 0 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(138, 71, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(0, 212, 255, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 45, 138, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  z-index: -2;
  overflow: hidden;
}

/* AI-generated showcase video, full-bleed behind hero content. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  /* Slight color tint so the video feels integrated with the purple/cyan palette. */
  filter: saturate(1.1) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}

/* Dark gradient overlay so the hero text stays legible over the cinematic video. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(5, 2, 17, 0.55) 70%, rgba(5, 2, 17, 0.85) 100%),
    linear-gradient(180deg, rgba(5, 2, 17, 0.3) 0%, transparent 30%, transparent 70%, rgba(5, 2, 17, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: float 14s ease-in-out infinite;
}
.hero__glow--a {
  background: radial-gradient(circle, var(--purple-bright), transparent 65%);
  top: -150px; left: -100px;
}
.hero__glow--b {
  background: radial-gradient(circle, var(--cyan), transparent 65%);
  bottom: -200px; right: -150px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}

/* P2P signal arc — five bars pulsing between two virtual pieces */
.hero__signal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 12px;
  opacity: .12;
  z-index: -1;
}
.hero__signal span {
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  border-radius: 4px;
  animation: pulse 2.2s ease-in-out infinite;
}
.hero__signal span:nth-child(2) { animation-delay: .2s; height: 120px; }
.hero__signal span:nth-child(3) { animation-delay: .4s; height: 160px; }
.hero__signal span:nth-child(4) { animation-delay: .6s; height: 120px; }
.hero__signal span:nth-child(5) { animation-delay: .8s; height: 80px; }
@keyframes pulse {
  0%, 100% { opacity: .3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.hero__content {
  position: relative;
  width: min(1100px, 92vw);
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 128px);
  line-height: .95;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__title-line:nth-child(2) { animation-delay: .12s; }
.hero__title-line:nth-child(3) { animation-delay: .24s; }
.hero__title-line--accent {
  background: linear-gradient(90deg, var(--cyan), var(--purple-bright), var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards, sheen 8s linear infinite;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__sub {
  font-size: clamp(16px, 2vw, 21px);
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) .4s forwards;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) .55s forwards;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.store:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}
.store svg { width: 28px; height: 28px; fill: var(--ink); }
.store small {
  display: block;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.store strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.hero__kicker {
  font-size: 14px;
  color: var(--ink-dimmer);
  margin: 0;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) .75s forwards;
}
.hero__kicker em {
  color: var(--cyan-soft);
  font-style: normal;
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1.5px solid var(--ink-dimmer);
  border-radius: 14px;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 1s forwards;
}
.hero__scroll span {
  width: 3px; height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ------------------------- SECTION SHARED ------------------------- */
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin: 0 0 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
}

/* ------------------------------ PITCH ----------------------------- */
.pitch { padding: 80px 0; position: relative; }
.pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(138, 71, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.pitch__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pitch__card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(138, 71, 255, 0.08), rgba(13, 5, 36, 0.6));
  border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.pitch__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.pitch__card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.4);
}
.pitch__card:hover::before { opacity: 1; }
.pitch__icon {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}
.pitch__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.pitch__card p {
  color: var(--ink-dim);
  margin: 0;
  font-size: 15px;
}

/* ------------------------------ HOW ------------------------------- */
.how { padding: 80px 0; }
.how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.how__steps li {
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 5, 36, 0.4);
  position: relative;
}
.how__num {
  position: absolute;
  top: -20px;
  left: 24px;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--purple-bright), var(--cyan));
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.how__steps li h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.how__steps li p {
  color: var(--ink-dim);
  margin: 0;
  font-size: 15px;
}
.how__steps li em {
  color: var(--cyan-soft);
  font-style: normal;
  font-weight: 600;
}

/* --------------------------- FEATURES ----------------------------- */
.features {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(138, 71, 255, 0.05), transparent);
}
.features__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.features__grid li {
  padding: 20px;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 212, 255, 0.04);
}
.features__grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
}
.features__grid span {
  color: var(--ink-dim);
  font-size: 14px;
}

/* ------------------------------ FAQ ------------------------------- */
.faq { padding: 80px 0; }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  color: var(--cyan);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
.faq details p {
  color: var(--ink-dim);
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
}

/* ----------------------------- NOTIFY ----------------------------- */
.notify {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.12), transparent 60%);
}
.notify h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.notify > .container > p {
  color: var(--ink-dim);
  margin: 0 0 36px;
  font-size: 17px;
}
.notify__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.notify__form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.notify__form input[type="email"]:focus {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}
.notify__form button {
  padding: 14px 28px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--purple-bright), var(--cyan));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.notify__form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.notify__success {
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 600;
}

/* ----------------------------- FOOTER ----------------------------- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-dimmer);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.footer__mark {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a:hover { color: var(--cyan); }
.footer__copyright {
  margin: 0;
  text-align: center;
}

/* -------------------- REVEAL ANIMATIONS (JS) ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- REDUCED MOTION --------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------- SMALL SCREENS ------------------------------ */
@media (max-width: 600px) {
  .nav { padding: 18px 20px; }
  .hero { padding: 100px 0 60px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: flex-start; }
  .footer__row { flex-direction: column; text-align: center; }
}
