:root {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --card: #15151a;
  --ink: #f5f4f1;
  --muted: #a1a1aa;
  --dim: #6b6b75;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --orange: #ff6a2b;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, #ff5a24 0%, #ff8a3a 45%, #ffc65c 100%);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #111; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- particles ---------- */
.particles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--pad);
  transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; }
.brand b { font-weight: 800; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.lang {
  display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lang:hover { border-color: var(--ink); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.2s var(--ease), box-shadow 0.3s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-grad { background: var(--grad); color: #1a0d05; box-shadow: 0 10px 40px -10px rgba(255, 106, 43, 0.65); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255, 140, 60, 0.8); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(72px, 12vh, 140px);
}
.hero-inner { max-width: 1320px; width: 100%; margin: 0 auto; }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 9.2vw, 152px);
  line-height: 0.92; letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.hero-lead { max-width: 34em; margin-top: 32px; font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.scroll-cue {
  position: absolute; right: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--dim), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ---------- statement ---------- */
.statement {
  min-height: 110vh;
  display: flex; align-items: center;
  padding: 0 var(--pad);
}
.statement p {
  max-width: 1320px; margin: 0 auto; width: 100%;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -0.035em;
}

/* ---------- app sections ---------- */
.app { position: relative; height: 230vh; }
.app-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px;
  max-width: 1320px; margin: 0 auto; padding: 80px var(--pad) 40px;
}
.app-copy { max-width: 540px; }
.app-name { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.app-name img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 30px -6px color-mix(in srgb, var(--tint) 60%, transparent); }
.app-title {
  margin-top: 28px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5vw, 80px); line-height: 0.98; letter-spacing: -0.04em;
}
.app-text { margin-top: 24px; color: var(--muted); font-size: 17px; max-width: 30em; }
.app-points { margin-top: 24px; display: grid; gap: 10px; font-size: 15px; color: #d6d5d2; }
.app-points li { display: flex; align-items: center; gap: 14px; }
.app-points li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--tint); flex: none; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.6); }
.store .apple { width: 17px; height: 20px; fill: #fff; }
.app-site { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; transition: color 0.2s ease; }
.app-site:hover { color: var(--ink); }

.app-visual { position: relative; height: min(78vh, 720px); }
.fan { position: absolute; inset: 0; }
.shot {
  position: absolute; left: 50%; top: 50%;
  width: min(30%, 260px);
  transform: translate(-50%, -50%);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: var(--card);
  will-change: transform, opacity;
}
.shot img { width: 100%; }
.shot-0 { transform: translate(calc(-50% - 78%), calc(-50% + 4%)) rotate(-8deg) scale(0.88); z-index: 1; }
.shot-1 { transform: translate(-50%, -50%); z-index: 3; width: min(36%, 310px); }
.shot-2 { transform: translate(calc(-50% + 78%), calc(-50% + 4%)) rotate(8deg) scale(0.88); z-index: 2; }

.app-wide .shot { width: min(70%, 600px); border-radius: 14px; }
.app-wide .shot-0 { transform: translate(calc(-50% - 14%), calc(-50% - 30%)) scale(0.82); }
.app-wide .shot-1 { transform: translate(-50%, -50%); width: min(76%, 660px); }
.app-wide .shot-2 { transform: translate(calc(-50% + 14%), calc(-50% + 30%)) scale(0.82); }

@media (max-width: 900px) {
  .app { height: auto; padding: 72px 0; }
  .app-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 40px; padding: 0 var(--pad); }
  .app-visual { height: 520px; }
  .shot { width: 46%; border-radius: 20px; }
  .shot-1 { width: 52%; }
  .shot-0 { transform: translate(calc(-50% - 62%), calc(-50% + 4%)) rotate(-8deg) scale(0.86); }
  .shot-2 { transform: translate(calc(-50% + 62%), calc(-50% + 4%)) rotate(8deg) scale(0.86); }
  .app-wide .app-visual { height: 340px; }
  .app-wide .shot { width: 86%; }
  .app-wide .shot-1 { width: 90%; }
}
@media (max-width: 520px) {
  .app-visual { height: 440px; }
}

/* ---------- sections ---------- */
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em;
  max-width: 14em;
}
.section-lead { margin-top: 24px; max-width: 36em; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); }

/* ---------- platforms ---------- */
.platforms { padding: clamp(120px, 16vh, 200px) 0; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.platform {
  padding: 16px 16px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: 24px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.platform:hover { border-color: var(--line-2); transform: translateY(-4px); }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1c1c22; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.browser-bar span { margin-left: 10px; font-size: 11px; color: var(--dim); }
.browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.browser-soon { background: var(--card); }
.browser-soon p { aspect-ratio: 16 / 10; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--dim); }
.platform-sector { margin: 24px 8px 0; font-size: 13px; color: var(--dim); }
.platform h3 { margin: 6px 8px 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.platform h3 a { display: inline-flex; gap: 8px; }
.platform h3 a span { font-size: 0.6em; color: var(--dim); transition: transform 0.3s var(--ease), color 0.2s ease; }
.platform h3 a:hover span { transform: translate(3px, -3px); color: var(--amber); }
.platform > p:last-child { margin: 10px 8px 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .platform-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- build ---------- */
.build { padding: clamp(120px, 18vh, 220px) 0 clamp(100px, 14vh, 160px); }
.build-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.build-head { position: sticky; top: 120px; }

.quote {
  display: grid; gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(17, 17, 21, 0.94);
  border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: #0c0c0f; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 14px;
  font: inherit; font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(10, 10, 12, 0.85); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover span { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.chip input:checked + span { color: #1a0d05; background: var(--grad); border-color: transparent; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.quote .btn { justify-self: start; margin-top: 6px; }
.quote .btn[disabled] { opacity: 0.6; pointer-events: none; }
.quote-status { min-height: 1.4em; font-size: 15px; color: var(--muted); }
.quote-status.is-done { color: #7ee2a8; }
.quote-status.is-error { color: #ff8f8f; }
.quote-status a { color: var(--ink); text-decoration: underline; }
.quote.is-done .field, .quote.is-done .quote-row, .quote.is-done .btn { opacity: 0.4; pointer-events: none; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-head { position: static; }
}
@media (max-width: 520px) { .quote-row { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(80px, 12vh, 140px); counter-reset: step; }
.steps li { position: relative; padding-top: 28px; counter-increment: step; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--grad); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.steps h3::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--text); font-size: 12px; font-weight: 600; color: var(--amber); letter-spacing: 0.06em; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--amber); font-size: 26px; line-height: 1; transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 14vh, 180px) 0 80px; }
.mail {
  display: inline-block; margin-top: 40px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 72px); letter-spacing: -0.035em; line-height: 1.1;
  overflow-wrap: anywhere;
  border-bottom: 2px solid rgba(255, 140, 60, 0.4);
  transition: border-color 0.3s ease;
}
.mail:hover { border-color: var(--amber); }
.list-title { margin-top: clamp(80px, 12vh, 140px); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.app-list { margin-top: 20px; }
.app-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-app { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row-app img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.row-app b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.row-app em { font-style: normal; color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex: none; }
.row-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .row-app em { display: none; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: rgba(10, 10, 12, 0.6); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark { width: 34px; height: 34px; color: var(--ink); }
.footer-brand p { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand b { font-family: var(--display); font-weight: 800; }
.footer-brand span { font-size: 13px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { width: 100%; font-size: 12px; color: var(--dim); line-height: 1.7; }
.footer-legal a { color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: flex; align-items: center; padding-top: 120px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .particles { display: none; }
  .scroll-cue i { animation: none; }
}
