/* Landing page. Shares the palette in style.css and adds its own layout. */

.lp {
  /* A pair of soft accent washes behind an otherwise flat dark page. */
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(124, 92, 255, .20), transparent 60%),
    radial-gradient(700px 420px at 8% 22%, rgba(255, 61, 127, .11), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

.lp main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.lp h1, .lp h2, .lp h3 { letter-spacing: -0.8px; }

/* --------------------------------------------------------------------- nav */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(14px);
}

.lp-nav .brand { text-decoration: none; color: var(--text); font-size: 23px; }

.lp-links { display: flex; gap: 26px; }

.lp-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.lp-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.ghost-btn, .solid-btn {
  display: inline-block;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}

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

.ghost-btn:hover { border-color: var(--accent); }

.solid-btn {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .9);
}

.solid-btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.solid-btn:active, .ghost-btn:active { transform: translateY(1px); }

.big { padding: 14px 28px; font-size: 15px; }

/* -------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 92px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-2), var(--cam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  max-width: 30em;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- hero mockup */

.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.demo-tag {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-source {
  position: relative;
  flex: 1 1 0;
  max-width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px;
}

/* Abstract stand-in for gameplay — no real footage needed. */
.demo-scene {
  position: absolute;
  inset: 7px;
  border-radius: 7px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .07), transparent 45%),
    linear-gradient(30deg, #1b2436 0%, #2a3550 45%, #3a2f5c 100%);
}

/*
 * Positioned as percentages of the frame so they land on the actual regions of
 * whatever demo clip is in public/demo. Update these to match a new clip —
 * they are the boxes a user would draw, not decoration.
 *
 * Current clip: webcam 1536,0 384x212 and gameplay 313,56 893x882 of 1920x1080.
 */
.demo-box {
  position: absolute;
  border: 2px dashed;
  border-radius: 4px;
}

.demo-box span {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
  color: #0d0e13;
  white-space: nowrap;
}

.demo-box.cam {
  left: 80%; top: 0; width: 20%; height: 19.6%;
  border-color: var(--cam);
}

/* No room above a box flush with the top edge, so the label drops inside. */
.demo-box.cam span { background: var(--cam); top: auto; bottom: 2px; }

.demo-box.game {
  left: 16.3%; top: 5.2%; width: 46.5%; height: 81.7%;
  border-color: var(--game);
}

.demo-box.game span { background: var(--game); }

.demo-arrow { flex: none; color: var(--accent); opacity: .75; }

/* Real footage, when public/demo has been filled in. */
.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.demo-scene { overflow: hidden; }

/* With a real render playing there is nothing left to illustrate. */
.phone-inner.has-video .phone-cam,
.phone-inner.has-video .phone-game,
.phone-inner.has-video .phone-caption,
.phone-inner.has-video .phone-mark { display: none; }

.demo-phone {
  position: relative;
  flex: none;
  width: 152px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .9);
}

.phone-inner {
  position: relative;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-cam {
  height: 34%;
  background:
    radial-gradient(52% 62% at 50% 46%, rgba(255, 255, 255, .2), transparent 70%),
    linear-gradient(160deg, #6b4a3a, #43303f);
}

.phone-game {
  flex: 1;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .06), transparent 40%),
    linear-gradient(30deg, #1b2436 0%, #2a3550 45%, #3a2f5c 100%);
}

.phone-caption {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
  -webkit-text-stroke: 2.5px #000;
  paint-order: stroke fill;
}

.phone-caption .hot { color: #ffe600; animation: capPulse 2.4s ease-in-out infinite; }

@keyframes capPulse {
  0%, 45%, 100% { color: #ffe600; }
  55%, 90% { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-caption .hot { animation: none; }
}

.phone-mark {
  position: absolute;
  right: 7px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 1.6px #000;
  paint-order: stroke fill;
}

.phone-mark svg { flex: none; }

/* --------------------------------------------------------------- sections */

.lp h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  text-align: center;
}

.how, .features, .pricing { padding: 72px 0; border-top: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(22, 24, 31, .4));
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(124, 92, 255, .17);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.steps h3, .feature-grid h3 { margin: 0 0 7px; font-size: 16.5px; }
.steps p, .feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.feature-grid article {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .15s, transform .12s;
}

.feature-grid article:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Small abstract marks — cheaper than icon fonts and always on-palette. */
.f-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-bottom: 15px;
  position: relative;
  background: rgba(124, 92, 255, .14);
}

.f-icon::before, .f-icon::after { content: ""; position: absolute; }

.cam-icon::before {
  inset: 9px 8px 12px; border: 2px solid var(--cam); border-radius: 3px;
}
.cam-icon::after {
  left: 14px; top: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cam);
}

.subs-icon::before {
  left: 8px; top: 13px; width: 18px; height: 3px;
  border-radius: 2px; background: var(--accent-2);
}
.subs-icon::after {
  left: 8px; top: 20px; width: 11px; height: 3px;
  border-radius: 2px; background: #ffe600;
}

.type-icon::before {
  left: 9px; top: 9px; width: 16px; height: 3px; background: var(--text); border-radius: 2px;
}
.type-icon::after {
  left: 15px; top: 9px; width: 4px; height: 17px; background: var(--text); border-radius: 2px;
}

.trim-icon::before {
  left: 8px; top: 14px; right: 8px; height: 7px;
  border-radius: 2px; background: rgba(124, 92, 255, .45);
}
.trim-icon::after {
  left: 12px; top: 10px; width: 3px; height: 15px;
  border-radius: 2px; background: var(--accent-2);
  box-shadow: 10px 0 0 var(--accent-2);
}

.mark-icon::before {
  left: 8px; top: 12px; width: 10px; height: 10px;
  border-radius: 2px; background: var(--accent);
}
.mark-icon::after {
  left: 21px; top: 14px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--game);
}

.link-icon::before {
  left: 9px; top: 15px; width: 11px; height: 4px;
  border-radius: 3px; background: var(--accent-2); transform: rotate(-30deg);
}
.link-icon::after {
  left: 15px; top: 15px; width: 11px; height: 4px;
  border-radius: 3px; background: var(--game); transform: rotate(-30deg);
}

/* ----------------------------------------------------------------- pricing */

.pricing-sub {
  margin: 0 auto 40px;
  max-width: 34em;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -30px rgba(124, 92, 255, 1);
}

.price-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.price { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -2px; }
.price-unit { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.price-free {
  max-width: 780px;
  margin: 22px auto 34px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.price-free strong { color: var(--text); }

.pricing > .solid-btn { display: block; width: max-content; margin: 0 auto; }

/* ------------------------------------------------------------------ footer */

.lp-footer {
  border-top: 1px solid var(--line);
  padding: 44px 28px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.lp-footer .brand { font-size: 19px; margin-bottom: 8px; }
.lp-footer p { margin: 4px 0; }
.lp-footer .fine { font-size: 12px; opacity: .65; margin-top: 14px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-bottom: 64px; }
  .steps, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .lp-links { display: none; }
}

@media (max-width: 600px) {
  .lp main { padding: 0 18px; }
  .hero-demo { flex-direction: column; }
  .demo-source { max-width: 100%; width: 100%; }
  .demo-arrow { transform: rotate(90deg); }
}
