:root { --navy: #0d1626; --navy-2: #15223a; --line: rgba(255,255,255,.12); --ink: #f4f6fb; --muted: #a9b4c8; --gold: #f2b544; --ok: #5fd3a0; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 400 17px/1.55 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.status { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; min-width: 0; }
#domain { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; min-width: 4.2ch; text-align: right; }

.form-view { max-width: 760px; margin: 0 auto; padding: clamp(56px, 12vh, 140px) 16px 64px; }
.kicker { margin: 0 0 18px; color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
h1 em { font-family: Fraunces, Georgia, serif; font-weight: 500; font-style: italic; color: var(--gold); letter-spacing: -.01em; }
.sub { margin: 22px 0 34px; max-width: 600px; color: var(--muted); font-size: 1.15rem; }
form { display: flex; gap: 10px; flex-wrap: wrap; }
input { flex: 1 1 280px; min-width: 0; height: 60px; padding: 0 20px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.22); background: var(--navy-2); color: var(--ink); font: 500 1.15rem Archivo, sans-serif; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,181,68,.2); }
button, .btn { cursor: pointer; font: 700 1.05rem Archivo, sans-serif; }
form button { flex: 0 0 auto; height: 60px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--gold); color: #1a1405; }
form button:hover { filter: brightness(1.05); }
form button[disabled] { opacity: .6; cursor: progress; }
.cf { flex-basis: 100%; margin-top: 4px; min-height: 65px; }
.fine { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.err { margin: 14px 0 0; color: #ffb4a8; font-weight: 600; }

.build-view { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 64px); }
.panel { padding: 24px; border-right: 1px solid var(--line); overflow: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { position: relative; padding: 12px 0 12px 34px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.steps li.on { color: var(--ink); }
.steps li.on::before { border-color: var(--gold); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.ok { color: var(--ink); }
.steps li.ok::before { border-color: var(--ok); background: var(--ok); animation: none; box-shadow: inset 0 0 0 3px var(--navy); }
.steps b { display: block; font-weight: 700; }
.steps span { display: block; margin-top: 2px; font-size: .86rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cands-title { grid-column: 1 / -1; margin: 0 0 4px; font-weight: 700; font-size: .95rem; }
.cands figure { margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--navy-2); }
.cands figure.win { border-color: var(--gold); }
.cands img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cands figcaption { padding: 6px 8px; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.cands figcaption b { color: var(--ink); }
.cands figure.win figcaption b { color: var(--gold); }
.cands-why { grid-column: 1 / -1; margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.pages { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pages-title { margin: 0 0 8px; font-weight: 700; font-size: .95rem; }
.pg { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; color: var(--muted); }
.pg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); flex: none; }
.pg.writing .pg-dot, .pg.written .pg-dot, .pg.checking .pg-dot { border-color: var(--gold); border-right-color: transparent; animation: spin .8s linear infinite; }
.pg.done .pg-dot { border-color: var(--ok); background: var(--ok); }
.pg.failed .pg-dot { border-color: #ffb4a8; background: #ffb4a8; }
.pg-title { color: var(--ink); flex: 1; }
.pg-state a { color: var(--gold); font-weight: 700; text-decoration: none; }
.done, .failed { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.done-time { margin: 0 0 16px; font-size: 1.3rem; font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--gold); color: #1a1405; text-decoration: none; }
.btn.buy { margin-top: 10px; background: var(--ok); color: #06261a; }
.done .btn { width: 100%; }
.link { display: block; margin-top: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; font-weight: 600; }
.lead { margin-top: 22px; padding: 18px; border-radius: 14px; background: var(--navy-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.lead strong { font-size: 1.05rem; }
.lead p { margin: 0; color: var(--muted); font-size: .92rem; }
.lead input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.18); background: var(--navy); color: var(--ink); font: 500 .98rem Archivo, sans-serif; }
.lead input:focus { outline: none; border-color: var(--gold); }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead button { height: 46px; border: 0; border-radius: 10px; background: var(--gold); color: #1a1405; font-weight: 700; }
.lead button[disabled], .lead input[disabled] { opacity: .6; }
.lead-msg { font-weight: 600; } .lead-msg.ok { color: var(--ok); } .lead-msg.err { color: #ffb4a8; }
.lead-fine { font-size: .82rem; } .lead-fine a { color: var(--gold); text-decoration: none; font-weight: 700; }
.failed p { color: #ffb4a8; margin: 0 0 14px; }

.stage { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 16px clamp(12px, 2vw, 24px) 0; background: #0a111d; }
.toggle { display: inline-flex; justify-self: center; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--navy-2); }
.toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .92rem; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--navy); }
.frame { position: relative; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 -10px 60px -20px rgba(0,0,0,.6); }
.frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #f7f5f0; }
.frame.phone { justify-self: center; border-radius: 28px 28px 0 0; border: 8px solid #222b3b; border-bottom: 0; }

@media (max-width: 860px) {
  .build-view { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: calc(100vh - 64px); }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .steps li { padding: 8px 0 8px 28px; font-size: .9rem; }
  .steps li::before { top: 11px; width: 16px; height: 16px; }
  .steps span { display: none; }
  .stage { min-height: 78vh; }
}
