:root {
  --bg: #05111d;
  --panel: rgba(15, 23, 42, 0.9);
  --panel-strong: #0f172a;
  --card: #0b1220;
  --line: rgba(148, 163, 184, 0.2);
  --text: #edf4ff;
  --muted: #b8c4d8;
  --primary: #60a5fa;
  --primary-strong: #2563eb;
  --accent: #a78bfa;
  --success: #34d399;
  --error: #fca5a5;
  --warning: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #020817 0%, #0f172a 100%);
  color: var(--text);
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-shell {
  padding: 40px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.hero-card,
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

.hero-card {
  padding: 34px;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #dbeafe;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.feature-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  font-weight: 700;
}

.info-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.15), rgba(167, 139, 250, 0.1));
}

.info-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.info-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.info-box p,
.info-box li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.info-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.form-card {
  margin-top: 28px;
  padding: 30px;
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.form-card .subtext {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #dfeafc;
  font-size: 0.92rem;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.95);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0 22px;
  height: 48px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}

.btn.secondary {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
}

.message {
  margin-top: 18px;
  min-height: 20px;
  font-size: 0.96rem;
}

.message.error { color: var(--error); }
.message.success { color: var(--success); }

.inline-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.otp-box {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

.otp-box.visible { display: block; }

.popup-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  z-index: 1000;
}

.popup-backdrop.hidden {
  display: none;
}

.popup-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.popup-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fef3c7;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-card h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.popup-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
