:root {
  --bg: #070711;
  --panel: #12121a;
  --panel-2: #181826;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f5ff;
  --muted: #a6a1b8;
  --accent: #7b4dff;
  --accent-2: #9ab5ff;
  --ok: #67f0b2;
  --danger: #ff5d7d;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(123, 77, 255, .28), transparent 34rem),
    radial-gradient(circle at 96% 18%, rgba(154, 181, 255, .14), transparent 30rem),
    var(--bg);
}

button, input { font: inherit; }
button { cursor: pointer; }

.platform-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.platform-hero,
.access-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), rgba(18,18,26,.82);
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
}

.platform-hero {
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  align-content: space-between;
  gap: 32px;
  border-radius: 34px;
  padding: clamp(24px, 5vw, 52px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
}

.brand strong { display: block; font-size: 18px; }
.brand p, .hero-copy p, .muted { margin: 4px 0 0; color: var(--muted); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

h1, h2 { margin: 0; letter-spacing: 0; }

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.hero-copy > p:last-child {
  max-width: 620px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
}

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

.hero-grid div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(123,77,255,.22);
  background: rgba(123,77,255,.11);
}

.hero-grid strong {
  font-size: 30px;
  line-height: 1;
}

.hero-grid span {
  color: rgba(247,245,255,.66);
  font-weight: 750;
}

.access-card {
  display: grid;
  gap: 18px;
  border-radius: 32px;
  padding: 22px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7,7,17,.38);
}

.mode-switch button,
.primary,
.secondary,
.ghost {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  padding: 0 16px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mode-switch button.active {
  border-color: rgba(123,77,255,.42);
  background: rgba(123,77,255,.2);
}

.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #5e32ff);
  box-shadow: 0 18px 42px rgba(123,77,255,.28);
}

.secondary { background: rgba(255,255,255,.075); }
.ghost { background: transparent; color: var(--muted); }

.primary:hover,
.secondary:hover,
.ghost:hover,
.mode-switch button:hover {
  transform: translateY(-1px);
  border-color: rgba(123,77,255,.35);
}

.form {
  display: none;
  gap: 13px;
  animation: rise .28s ease both;
}

.form.active { display: grid; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(123,77,255,.28);
  background: rgba(123,77,255,.14);
  color: #ddd5ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.ok {
  border-color: rgba(103,240,178,.3);
  background: rgba(103,240,178,.12);
  color: #bfffe2;
}

.pay-card,
.result-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(123,77,255,.22);
  border-radius: 20px;
  background: rgba(123,77,255,.11);
}

.pay-card p,
.result-card p {
  margin: 4px 0 0;
  color: rgba(247,245,255,.66);
  line-height: 1.45;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  padding: 11px 13px;
}

input:focus {
  border-color: rgba(123, 77, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(123, 77, 255, 0.14);
}

.fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.domain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.domain-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.domain-field span {
  padding: 0 12px;
  color: #d8d2ef;
  font-weight: 900;
}

.result-card[hidden],
.toast[hidden] { display: none; }

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: #f7f5ff;
  color: #15131f;
  font-weight: 900;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.toast.error { background: #ffd6df; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .platform-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .platform-hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .platform-shell { padding: 12px; }
  .platform-hero,
  .access-card { border-radius: 26px; }
  .hero-grid,
  .fields-2 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 38px; }
  .card-head { flex-direction: column; }
}
