:root {
  color-scheme: dark;
  --bg: #06110f;
  --panel: #0b1c19;
  --line: #24453c;
  --text: #f1fff9;
  --muted: #91ada3;
  --mint: #53f0b4;
  --cyan: #55d9ec;
  --red: #ff7b83;
  --shadow: 0 30px 80px #0008;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, #14634a80, transparent 36%),
    radial-gradient(circle at -10% 80%, #13485766, transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1080px, calc(100% - 32px)); margin: auto; padding: 28px 0 64px; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 54px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; letter-spacing: -.02em; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--mint), var(--cyan)); box-shadow: 0 0 30px #53f0b455; display: grid; place-items: center; color: #052019; font-weight: 900; }
.live { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: #0a1b17cc; padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #62746e; }
.dot[data-ready="true"] { background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: 42px; align-items: center; margin-bottom: 30px; }
.eyebrow { color: var(--mint); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; }
.hero h1 { font-size: clamp(44px, 7vw, 78px); line-height: .96; letter-spacing: -.065em; margin: 16px 0 22px; max-width: 750px; }
.hero p { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 620px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.chip { border: 1px solid var(--line); background: #0b1c19aa; border-radius: 999px; padding: 8px 11px; color: #b8d3ca; font-size: 12px; }
.chip-private { color: #d7fff0; border-color: #397060; background: #123128; }

.pay-card { border: 1px solid #356356; background: linear-gradient(160deg, #102a23, #091915); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pay-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: #53f0b41a; filter: blur(20px); right: -70px; top: -75px; pointer-events: none; }
.price-label { font-size: 13px; color: var(--muted); }
.price { font-size: 40px; letter-spacing: -.045em; font-weight: 800; margin: 6px 0 3px; }
.price small { font-size: 17px; color: var(--muted); font-weight: 650; }
.route { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan); background: #06110f; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin: 22px 0; overflow-wrap: anywhere; }
.facts { display: grid; gap: 10px; margin-bottom: 22px; }
.fact { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.fact strong { color: var(--text); font-weight: 650; text-align: right; }

.button { width: 100%; border: 0; border-radius: 13px; padding: 14px 18px; font-weight: 800; font-size: 15px; cursor: pointer; transition: .18s transform, .18s opacity, .18s box-shadow; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: linear-gradient(120deg, var(--mint), var(--cyan)); color: #06241d; box-shadow: 0 12px 30px #53f0b426; }
.button.secondary { background: #17332c; color: var(--text); border: 1px solid #31574c; margin-bottom: 10px; }
.button.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; color: #dffff3; background: linear-gradient(135deg, #173b31, #123a43); border: 1px solid #3b7665; margin-bottom: 10px; }
.button.privacy .beta { border: 1px solid #62a895; border-radius: 999px; padding: 2px 6px; color: var(--mint); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.button.compact { width: auto; min-width: 190px; padding: 10px 14px; margin: 10px 0 0; font-size: 13px; }
.button.link-button { display: inline-flex; justify-content: center; text-decoration: none; color: #06241d; background: linear-gradient(120deg, var(--mint), var(--cyan)); }
.button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }

.status { margin-top: 14px; min-height: 44px; border-radius: 11px; background: #06110f; padding: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; border: 1px solid transparent; }
.status[data-tone="working"] { color: var(--cyan); border-color: #255d66; }
.status[data-tone="success"] { color: var(--mint); border-color: #285f4b; }
.status[data-tone="error"] { color: var(--red); border-color: #663038; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.step { border: 1px solid var(--line); background: #091916bb; border-radius: 18px; padding: 20px; }
.num { width: 28px; height: 28px; border-radius: 9px; background: #16372e; display: grid; place-items: center; color: var(--mint); font-size: 12px; font-weight: 900; margin-bottom: 24px; }
.step h2 { font-size: 16px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.state { display: block; color: #d7ece5; margin-top: 13px; font-size: 12px; }
.state[data-ready="true"] { color: var(--mint); }

.result { border: 1px solid #356356; background: #0b1e19; border-radius: 22px; padding: 24px; margin-top: 18px; }
.result-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.weather { display: flex; gap: 18px; align-items: end; }
.temp { font-size: 50px; font-weight: 850; letter-spacing: -.05em; }
.condition { text-transform: capitalize; color: var(--mint); font-weight: 700; }
.tx { font-size: 12px; color: var(--muted); text-align: right; }
.tx a { color: var(--cyan); text-decoration: none; }
.json { margin-top: 18px; max-height: 220px; overflow: auto; background: #06110f; border-radius: 12px; padding: 14px; color: #b6d8ce; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; color: #69867d; font-size: 12px; }
.foot a { color: #91ada3; text-decoration: none; }

.private-dialog { width: min(760px, calc(100% - 28px)); max-height: min(860px, calc(100vh - 28px)); overflow: auto; color: var(--text); background: linear-gradient(160deg, #102a23, #071512); border: 1px solid #397060; border-radius: 24px; padding: 28px; box-shadow: 0 40px 120px #000c; }
.private-dialog::backdrop { background: #020806d9; backdrop-filter: blur(8px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.dialog-head h2 { margin: 8px 0 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.02; letter-spacing: -.045em; max-width: 590px; }
.dialog-close { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #31574c; border-radius: 50%; color: var(--text); background: #17332c; font-size: 25px; line-height: 1; cursor: pointer; }
.dialog-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 18px 0 22px; }
.private-steps { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.private-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; border: 1px solid var(--line); background: #071613bd; border-radius: 15px; padding: 16px; }
.private-step-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #052019; background: linear-gradient(135deg, var(--mint), var(--cyan)); font-size: 12px; font-weight: 900; }
.private-step h3 { margin: 3px 0 5px; font-size: 15px; }
.private-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.session-address { margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; color: var(--cyan); background: #04100d; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.private-status { margin: 14px 0; min-height: 44px; border-radius: 11px; background: #06110f; padding: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; border: 1px solid transparent; }
.private-status[data-tone="working"] { color: var(--cyan); border-color: #255d66; }
.private-status[data-tone="success"] { color: var(--mint); border-color: #285f4b; }
.private-status[data-tone="error"] { color: var(--red); border-color: #663038; }
.privacy-boundary { margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid #64572d; background: #2a2412a6; color: #e8ddae; }
.privacy-boundary strong { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.privacy-boundary p { margin: 0; color: #bdaf78; font-size: 12px; line-height: 1.55; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav { margin-bottom: 34px; }
  .hero h1 { font-size: 52px; }
  .result-top, .foot { flex-direction: column; }
  .tx { text-align: left; }
  .private-dialog { padding: 22px 18px; }
  .private-step { grid-template-columns: 30px 1fr; gap: 10px; padding: 14px; }
  .button.compact { width: 100%; min-width: 0; }
}
