:root {
  --bg: #0d0d0f;
  --panel: #151518;
  --panel-2: #1c1c20;
  --line: #28282e;
  --text: #ecedef;
  --muted: #9a9ea7;
  --accent: #ff7a3d;
  --accent-hi: #ff9461;
  --accent-ink: #1d0e06;
  --display: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1120px) / 2)); background: #0d0d0fcc; backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff0d; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; text-decoration: none; }
.brand.small { font-size: 14px; gap: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--text); }

/* buttons + join form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 500 14px Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #ffffff30; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hi); }
.btn:disabled { opacity: 0.6; cursor: default; }
.join { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 480px; margin: 0 auto; }
.join input { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.join input:focus { outline: none; border-color: var(--accent); }
.join .btn { padding: 11px 18px; font-size: 15px; }
.join-note { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 13px; color: var(--muted); text-align: center; }
.join.done input, .join.done button { display: none; }
.join.done .join-note { color: var(--text); font-size: 15px; }

/* hero */
.hero { position: relative; padding: 88px 16px 40px; text-align: center; }
.hero::before { content: ''; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 30%, #ff7a3d2e, transparent 70%); pointer-events: none; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 99px; border: 1px solid #ff7a3d55; color: var(--accent-hi); font-size: 13px; font-weight: 500; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.04; font-weight: 700; max-width: 900px; margin: 0 auto; }
.lede { max-width: 620px; margin: 20px auto 30px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }

/* references → set demo */
.demo { display: flex; align-items: flex-start; justify-content: center; gap: 22px; max-width: 1080px; margin: 56px auto 0; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), #111113); border: 1px solid var(--line); }
.demo-col { display: flex; flex-direction: column; gap: 12px; flex: 0 1 300px; min-width: 0; }
.demo-col.wide { flex: 1 1 560px; }
.demo-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.refs img { aspect-ratio: 1; object-fit: contain; padding: 8px; border-radius: 12px; background: var(--panel-2); }
.demo-arrow { flex: none; width: 48px; color: var(--accent); align-self: center; margin-top: 24px; }
.set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.set figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.set img { aspect-ratio: 1; object-fit: contain; padding: 10px; border-radius: 14px; background: var(--panel-2); box-shadow: 0 0 0 1px #ff7a3d33; }
.set figcaption { font-size: 13px; color: var(--muted); }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 88px 16px 0; }
.section h2, .cta h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 12px 0 0; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #ff7a3d22; color: var(--accent-hi); font-family: var(--display); font-weight: 600; }
.steps h3 { font-size: 20px; margin: 16px 0 8px; }
.steps p, .features p { margin: 0; color: var(--muted); font-size: 15px; }

.range-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.range-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.range-grid img.scene { grid-column: span 2; aspect-ratio: auto; height: 100%; object-fit: cover; padding: 0; }
.range-grid img.pixel { image-rendering: pixelated; }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.features h3 { font-size: 18px; margin-bottom: 8px; }

.cta { max-width: 760px; margin: 100px auto 0; padding: 56px 24px; text-align: center; border-radius: 24px; background: radial-gradient(ellipse 80% 90% at 50% 0%, #ff7a3d26, transparent 70%), var(--panel); border: 1px solid var(--line); }
.cta > p { color: var(--muted); margin: 14px auto 26px; max-width: 520px; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1120px; margin: 72px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* tablet + phone */
@media (max-width: 860px) {
  .demo { flex-direction: column; padding: 18px; }
  .demo-col, .demo-col.wide { flex: none; width: 100%; }
  .demo-arrow { transform: rotate(90deg); margin: 0; width: 32px; }
  .steps, .features { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: repeat(2, 1fr); }
  .range-grid img.scene { grid-column: span 2; aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 560px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; padding: 8px 12px; font-size: 13px; }
  .hero { padding-top: 56px; }
  .set { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .refs img { padding: 4px; border-radius: 8px; }
}
