:root {
  --bg: #0d0f14;
  --bg-soft: #14171f;
  --panel: #181c26;
  --line: #242a38;
  --text: #eef1f7;
  --muted: #8d97ab;
  --accent: #c8ff4d;
  --accent-dim: #9fd135;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(200, 255, 77, .12), transparent 62%),
    radial-gradient(700px 420px at 4% 8%, rgba(94, 129, 255, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 20px;
}

.brand em { color: var(--accent); font-style: normal; }

.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), #5ee08a);
  box-shadow: 0 0 0 4px rgba(200, 255, 77, .1);
  position: relative;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 8px 9px 8px 10px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  font-size: 14px;
  color: var(--muted);
}

.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--text); }

.health {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.health.ok { color: var(--accent); border-color: rgba(200, 255, 77, .35); }
.health.bad { color: var(--danger); border-color: rgba(255, 107, 107, .35); }

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(18px, 4vw, 44px) 0 28px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid rgba(200, 255, 77, .3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
}

h1 span {
  background: linear-gradient(92deg, var(--accent), #7ee0c0 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 56ch;
}

.card {
  background: linear-gradient(180deg, rgba(28, 33, 45, .92), rgba(20, 24, 33, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 26px);
}

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; min-width: 0; }
.field span { font-size: 13px; color: var(--muted); }

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #0f1219;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #5b6579; }

input:focus, select:focus {
  outline: none;
  border-color: rgba(200, 255, 77, .55);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, .13);
}

input:invalid:not(:placeholder-shown) { border-color: rgba(255, 107, 107, .5); }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.advanced { border-top: 1px solid var(--line); padding-top: 14px; }
.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "+ "; color: var(--accent); }
.advanced[open] summary::before { content: "– "; }
.advanced[open] summary { margin-bottom: 14px; color: var(--text); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #10160a;
  box-shadow: 0 10px 26px rgba(200, 255, 77, .22);
}
.btn.primary:hover { filter: brightness(1.06); }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
  padding: 10px 16px;
}
.btn.ghost:hover { border-color: rgba(200, 255, 77, .45); color: var(--accent); }

.btn[disabled] { opacity: .65; cursor: progress; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(16, 22, 10, .3);
  border-top-color: #10160a;
  display: none;
  animation: spin .8s linear infinite;
}
button[aria-busy="true"] .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 107, .1);
  border: 1px solid rgba(255, 107, 107, .35);
  color: #ffb3b3;
  font-size: 14px;
}

.muted { color: var(--muted); }

.notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 87, .34);
  background: rgba(255, 196, 87, .07);
}

.notice h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #f5d79b;
}

.notice p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; }

.notice-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.notice-row .field { flex: 1; min-width: 0; }
.notice-row .btn { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 520px) {
  .notice-row { flex-wrap: wrap; }
  .notice-row .field { flex-basis: 100%; }
}

.hero-side { display: grid; gap: 18px; justify-items: center; }

.phone {
  width: min(238px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #1d2230, #12151d);
  padding: 9px;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 40% 12%, rgba(200, 255, 77, .28), transparent 58%),
    linear-gradient(180deg, #2a3242, #151922);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.ph-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.ph-bars { display: grid; gap: 6px; margin-top: 6px; }
.ph-bars i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.ph-bars i:nth-child(1) { width: 78%; }
.ph-bars i:nth-child(2) { width: 92%; }
.ph-bars i:nth-child(3) { width: 55%; }
.ph-bars i:nth-child(4) { width: 84%; }
.ph-bars i:nth-child(5) { width: 40%; }

.ph-caption {
  margin-top: auto;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  letter-spacing: -.01em;
}

.ph-tag {
  align-self: center;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #10160a;
  font-weight: 700;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  width: 100%;
}
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.panel {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 24px);
  margin-top: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel h2, .how h2, .limits h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.02em;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 255, 77, .14);
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #232937;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width .45s ease;
}

.steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #5f6a80;
}
.steps li::before { content: "○ "; }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "✓ "; color: var(--accent); }
.steps li.active { color: var(--text); }
.steps li.active::before { content: "◐ "; color: var(--accent); }

.results { margin-top: 26px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.meta b { color: var(--text); font-weight: 600; }

.hints {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hints li {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 196, 87, .3);
  background: rgba(255, 196, 87, .07);
  color: #f0d7a4;
  font-size: 13.5px;
}

.clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.clip {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #10131a;
  display: flex;
  flex-direction: column;
}

.clip video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  display: block;
}

.clip-body { padding: 12px 14px 14px; display: grid; gap: 10px; }

.clip-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.clip-title b { font-weight: 650; }
.clip-title span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }

.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.clip-actions .btn { padding: 8px 12px; font-size: 13px; border-radius: 9px; }

.how, .limits { margin-top: clamp(30px, 5vw, 60px); }

.steps-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.steps-grid li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(24, 28, 38, .6);
}
.steps-grid span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps-grid h3 { margin: 0 0 6px; font-size: 16px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.limits ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 9px; font-size: 14.5px; }
.limits li::marker { color: var(--accent); }

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 64px) 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: #5b6579;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .phone { width: 150px; }
}

@media (max-width: 620px) {
  .row, .grid2 { grid-template-columns: 1fr; }
  .topnav a { display: none; }
  .hero-side { grid-template-columns: 1fr; justify-items: start; }
  .phone { width: 132px; }
  .clips { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .clip-body { padding: 10px 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
