/* AppShotFlow landing — light-table design system, turned up for the storefront.
   Layout language: generous whitespace + type hierarchy; boxes only where they carry meaning. */

:root {
  --ink: #0c0d10;
  --panel: #16171c;
  --panel-2: #1b1c23;
  --seam: #272932;
  --seam-soft: rgba(39, 41, 50, 0.6);
  --paper: #eef0f4;
  --dim: #9aa0ac;
  --signal: #ff8a3d;
  --signal-press: #ff7a22;
  --signal-ink: #20120a;
  --radius: 12px;
  --font-ui: 'Inter', 'Segoe UI', 'Malgun Gothic', system-ui, sans-serif;
  --font-brand: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

img, canvas {
  -webkit-user-drag: none;
  user-select: none;
}

/* film-grain texture over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ---------- shared bits ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--signal);
  transform: rotate(-8deg);
  box-shadow: 0 0 18px rgba(255, 138, 61, 0.55);
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ffa35c, var(--signal-press));
  color: var(--signal-ink);
  box-shadow: 0 4px 18px rgba(255, 122, 34, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 122, 34, 0.38);
}

.btn-ghost {
  background: transparent;
  border-color: var(--seam);
  color: var(--paper);
}

.btn-ghost:hover { border-color: #3a3d49; }

.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-block { display: block; width: 100%; text-align: center; border-radius: 14px; }

.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

/* CTA arrow that nudges on hover */
.btn-arrow::after {
  content: '→';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.18s ease;
}

.btn-arrow:hover::after { transform: translateX(4px); }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 18px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 5vw;
  background: rgba(12, 13, 16, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--seam-soft);
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--paper); }

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

.hero {
  position: relative;
  padding: 128px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.18), rgba(217, 54, 54, 0.07) 55%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffb37d, var(--signal) 45%, #ff5d5d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 46ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-trust {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 84px;
}

/* marquee of live-rendered outputs */

.marquee {
  position: relative;
  width: 100%;
  transform: rotate(-2deg) scale(1.03);
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-card {
  width: 226px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.marquee-caption {
  position: relative;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  padding: 14px 5vw 96px;
}

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

.section { padding: 150px 0; }

.section-alt {
  background: #101116;
  border-top: 1px solid var(--seam-soft);
  border-bottom: 1px solid var(--seam-soft);
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.section-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 52ch;
  margin-bottom: 76px;
}

/* steps — bare numbered columns over a hairline, no boxes */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  border-top: 1px solid var(--seam);
  padding-top: 26px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--signal);
  margin-bottom: 14px;
}

.step h3, .feature h3, .point h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p, .feature p, .point p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
}

/* studio preview */

.window {
  border: 1px solid var(--seam);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  margin-bottom: 64px;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #101116;
  border-bottom: 1px solid var(--seam);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c2e38;
}

.window-bar span:first-child { background: rgba(255, 138, 61, 0.8); }

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.point {
  border-left: 2px solid rgba(255, 138, 61, 0.5);
  padding-left: 20px;
}

/* features — icon + text, whitespace instead of cards */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
}

.feature svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 28px;
}

.plan {
  background: #14151b;
  border: 1px solid var(--seam);
  border-radius: 22px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-free { border-color: rgba(255, 138, 61, 0.55); }

.plan h3 {
  font-family: var(--font-brand);
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(255, 138, 61, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan-price span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  margin-top: 4px;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan li {
  font-size: 14.5px;
  color: var(--dim);
  padding-left: 24px;
  position: relative;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 700;
}

.plan-soon { opacity: 0.75; }

.pricing-promise {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--dim);
}

/* faq — hairline dividers, no boxes */

.faq {
  max-width: 720px;
  border-top: 1px solid var(--seam);
}

.faq details {
  border-bottom: 1px solid var(--seam);
  padding: 24px 2px;
}

.faq summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--signal);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 60ch;
}

/* cta band */

.cta-band {
  position: relative;
  text-align: center;
  padding: 140px 0;
  background:
    radial-gradient(ellipse 800px 360px at 50% 120%, rgba(255, 138, 61, 0.2), transparent 70%),
    linear-gradient(180deg, #0c0d10, #111015);
  border-top: 1px solid var(--seam-soft);
}

.cta-band h2 {
  font-family: var(--font-brand);
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* footer */

.footer {
  border-top: 1px solid var(--seam-soft);
  padding: 52px 0 68px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer p {
  font-size: 13px;
  color: var(--dim);
}

.footer a:not(.brand) {
  width: fit-content;
  color: var(--dim);
  font-size: 13px;
  text-decoration: none;
}

.footer a:not(.brand):hover { color: var(--paper); }

/* ---------- not found ---------- */

.error-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 138, 61, 0.16), transparent 34%),
    var(--ink);
}

.error-shell {
  width: min(720px, calc(100% - 40px));
  margin: auto;
  padding: 72px 0 110px;
  text-align: center;
}

.error-code {
  color: var(--orange);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.error-shell h1 {
  font-family: var(--font-brand);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}

.error-copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- scroll reveals (JS-gated: never hides content without JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .steps .step:nth-child(2), .js .features .feature:nth-child(2),
.js .plans .plan:nth-child(2), .js .studio-points .point:nth-child(2) { transition-delay: 0.1s; }
.js .steps .step:nth-child(3), .js .features .feature:nth-child(3),
.js .studio-points .point:nth-child(3) { transition-delay: 0.2s; }
.js .features .feature:nth-child(4) { transition-delay: 0.05s; }
.js .features .feature:nth-child(5) { transition-delay: 0.15s; }
.js .features .feature:nth-child(6) { transition-delay: 0.25s; }

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

@media (max-width: 880px) {
  .hero { padding-top: 80px; }
  .hero-trust { margin-bottom: 60px; }
  .steps, .features, .studio-points { grid-template-columns: 1fr; gap: 36px; }
  .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .marquee-card { width: 180px; }
  .section { padding: 88px 0; }
  .section-lede { margin-bottom: 52px; }
  .features { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
