:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.corner-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 2px 2px, rgba(167, 139, 250, 0.55) 1.4px, transparent 1.6px),
    radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.35) 0, rgba(124, 58, 237, 0.12) 28%, transparent 62%);
  background-size: 14px 14px, 100% 100%;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000 0, #000 32%, transparent 70%);
  mask-image: radial-gradient(ellipse at top left, #000 0, #000 32%, transparent 70%);
}

.accent-glow {
  position: fixed;
  right: -8%;
  bottom: -10%;
  width: 350px;
  height: 350px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0, transparent 60%);
  filter: blur(60px);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 48px));
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
}

.brand .logo {
  display: block;
  width: auto;
  height: 1.75rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 0;
}

.wordmark .logo {
  display: block;
  width: auto;
  height: 1.75rem;
}

.support-link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.support-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero {
  padding: 8rem 0;
}

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 2.5rem;
  max-width: 28rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  min-height: 56px;
  padding: 0.75rem 3rem;
}

.stats {
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  gap: 2.5rem;
  padding: 5rem 0;
}

.stat-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--faint);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.block {
  padding: 8rem 0;
}

.block-head {
  margin-bottom: 4rem;
}

.block h2,
.cta-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.block-head p,
.cta-copy p {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
}

.feature-grid {
  display: grid;
  gap: 3rem 4rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-box {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.feature:hover .icon-box {
  background: rgba(255, 255, 255, 0.1);
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature p,
.process-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.process h2 {
  margin-bottom: 4rem;
}

.process-list {
  display: grid;
  gap: 2rem;
  max-width: 640px;
}

.process-item {
  display: flex;
  gap: 1.5rem;
}

.process-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.process-item h3 {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.cta-glow {
  position: absolute;
  right: 0;
  top: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.flow {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  background: #000;
  color: #fff;
}

.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-back {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
}

.flow-back:hover {
  color: rgba(255, 255, 255, 0.85);
}

.flow-body {
  width: min(560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

body.flow-open {
  overflow: hidden;
}

.progress {
  height: 2px;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 25%;
  height: 100%;
  background: #fff;
  transition: width 0.4s var(--ease);
}

.form-steps-indicator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.form-steps-indicator li {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid transparent;
}

.form-steps-indicator li.is-active,
.form-steps-indicator li.is-done {
  color: #fff;
  border-bottom-color: #fff;
}

.form-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 560px;
  animation: fade 0.35s var(--ease);
}

.form-step.is-active {
  display: block;
}

.form-step legend {
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.field-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.has-device-options {
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .has-device-options {
    grid-template-columns: 1fr;
  }
}

.optional {
  color: var(--faint);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.field select option {
  color: #111;
}

.picker {
  position: relative;
}

.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.picker-trigger:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.picker.is-open .picker-trigger,
.picker-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  outline: none;
}

.picker-value {
  font-size: 1rem;
  line-height: 1.3;
}

.picker-value.is-placeholder {
  color: var(--faint);
}

.picker-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s var(--ease);
}

.picker.is-open .picker-chevron {
  transform: rotate(180deg);
}

.picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0c0c0c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.picker-search {
  padding: 0.25rem 0.25rem 0.45rem;
}

.picker-search input {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.picker-search input::placeholder {
  color: var(--faint);
}

.picker-search input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.picker-search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.6;
}

.picker-options {
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.picker-options::-webkit-scrollbar {
  width: 8px;
}

.picker-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
}

.picker-option:hover,
.picker-option.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.picker-option.is-selected {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.picker-option[data-value=""] {
  color: var(--faint);
}

.picker-empty {
  margin: 0.35rem 0.75rem 0.6rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.field select.picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.field-note,
.field-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-error {
  margin: 0.4rem 0 0;
  color: #ffb4ab;
  font-size: 0.88rem;
}

.device-options {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.option-card:has(input:checked) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.option-card input {
  accent-color: #fff;
  width: 16px;
  height: 16px;
}

.is-hidden {
  display: none !important;
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.review-list {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0;
  padding: 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.review-list div {
  display: grid;
  gap: 0.15rem;
}

.review-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.review-list dd {
  margin: 0;
  font-weight: 600;
}

.success-panel {
  max-width: 36rem;
  padding-top: 0.5rem;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.success-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.application-id {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.success-note {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.faq h2 {
  margin-bottom: 2rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--faint);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--faint);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .narrow {
    width: min(1200px, calc(100% - 32px));
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .block {
    padding: 4.5rem 0;
  }

  .stats-grid {
    padding: 2.75rem 0;
  }

  .form-steps-indicator {
    letter-spacing: 0.02em;
    font-size: 0.68rem;
  }

  .form-nav .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
