:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: rgba(13, 27, 43, .78);
  --line: rgba(255, 255, 255, .1);
  --text: #edf6fc;
  --muted: #9fb2c4;
  --cyan: #1cffd6;
  --violet: #a57aff;
  --amber: #ffbe5c;
  --danger: #ff6b78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

#sf-canvas { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }
.aurora {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 74% 18%, rgba(28, 255, 214, .13), transparent 28%),
    radial-gradient(circle at 18% 60%, rgba(155, 92, 255, .12), transparent 30%);
  filter: blur(60px);
}

.site-header, main, footer { position: relative; z-index: 1; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1220px; margin: 0 auto; padding: 14px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 29, .82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-star { filter: drop-shadow(0 0 10px rgba(28, 255, 214, .45)); }
.brand-wordmark { width: auto; height: 17px; }
.back-link, footer a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #91a4b6; text-decoration: none;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: .08em; text-transform: uppercase;
}
.back-link svg { width: 16px; }
.back-link:hover, footer a:hover { color: var(--cyan); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 88px; }
.hero { max-width: 790px; margin-bottom: 42px; }
.eyebrow, .step-label {
  margin: 0 0 12px; color: var(--cyan);
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: .25em; text-transform: uppercase;
}
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: -.04em; }
.hero-copy { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 22px; }
.side-stack { display: grid; align-content: start; gap: 22px; }
.panel {
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)), var(--panel);
  box-shadow: 0 30px 90px -48px rgba(0, 0, 0, .9);
  backdrop-filter: blur(15px);
}
.action-panel { padding: clamp(24px, 4vw, 38px); }
.compact-panel { padding: 26px; }
.panel-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-heading.small { align-items: flex-start; }
.panel-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.panel-heading .step-label { margin-bottom: 6px; }
.icon-shell {
  flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid rgba(28, 255, 214, .3); border-radius: 15px;
  background: rgba(28, 255, 214, .1); color: var(--cyan);
}
.icon-shell.violet { color: var(--violet); border-color: rgba(165, 122, 255, .32); background: rgba(165, 122, 255, .11); }
.icon-shell.amber { color: var(--amber); border-color: rgba(255, 190, 92, .32); background: rgba(255, 190, 92, .1); }
.icon-shell svg { width: 24px; }
.panel p { color: var(--muted); line-height: 1.7; }
.panel strong { color: #dbe7f0; }

.field-row { margin-top: 24px; }
.field-row > label { display: block; margin-bottom: 9px; color: #c9d8e4; font-size: 13px; font-weight: 700; }
.inline-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input[type="email"], input[type="text"] {
  min-width: 0; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
  background: rgba(2, 10, 18, .7); color: var(--text);
}
input::placeholder { color: #5f7486; }
button {
  border: 1px solid rgba(28, 255, 214, .36); border-radius: 11px; padding: 12px 18px;
  cursor: pointer; background: rgba(28, 255, 214, .1); color: var(--cyan); font-weight: 800;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(28, 255, 214, .17); }
button:disabled { cursor: not-allowed; opacity: .4; }
.confirm-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.check-row { display: flex; align-items: flex-start; gap: 11px; color: #cbd8e3; line-height: 1.5; }
.check-row input { margin-top: 4px; accent-color: var(--danger); }
.danger-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 17px;
  border-color: rgba(255, 107, 120, .45); background: rgba(255, 107, 120, .12); color: #ff9ca5;
}
.danger-button:hover:not(:disabled) { background: rgba(255, 107, 120, .2); }
.danger-button svg { width: 18px; }
.status { margin-top: 22px; min-height: 48px; padding: 13px 15px; border-left: 3px solid var(--cyan); background: rgba(28, 255, 214, .06); color: #c8d9e4; line-height: 1.5; }
.status.is-error { border-color: var(--danger); background: rgba(255, 107, 120, .07); color: #ffc0c5; }
.status.is-success { border-color: var(--cyan); color: #b9fff0; }
.support-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); text-decoration: none; font-weight: 750; overflow-wrap: break-word; }
.support-link svg { width: 15px; }
.is-hidden { display: none; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { color: #ffc0c5; }

.scope { margin-top: 76px; }
.scope > h2 { margin: 0 0 26px; font-size: clamp(30px, 4vw, 44px); }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scope article { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(10, 23, 38, .68); }
.scope article > svg { width: 23px; color: var(--cyan); }
.scope h3 { margin: 15px 0 8px; font-size: 20px; }
.scope article p, .privacy-note { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.privacy-note { margin-top: 22px; }
.privacy-note a { color: var(--cyan); }

footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1120px; margin: 0 auto; padding: 38px 20px;
  border-top: 1px solid var(--line); color: #667b8e;
  font: 500 12px "JetBrains Mono", monospace;
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 850px) {
  main { padding-top: 58px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand-wordmark { display: none; }
  .back-link { font-size: 10px; }
  .inline-control { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  main { width: min(100% - 28px, 1120px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
