:root {
  --bg: #0b0d12;
  --bg-soft: #12151c;
  --card: #161a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-muted: #8b93a7;
  --primary: #6c5ce7;
  --primary-hover: #7f71f0;
  --primary-soft: rgba(108, 92, 231, 0.15);
  --success: #2ecc71;
  --success-soft: rgba(46, 204, 113, 0.12);
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(108, 92, 231, 0.08), transparent);
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #a29bfe);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.header-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== MAIN ===== */
.main {
  padding: 40px 0 80px;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-item span {
  display: none;
}

@media (min-width: 420px) {
  .step-item span {
    display: inline;
  }
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.step-item.active {
  color: var(--text);
}

.step-item.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.step-item.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
  border-radius: 2px;
  transition: var(--transition);
}

.step-item.done + .step-line {
  background: var(--success);
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

/* PANELS */
.panel {
  display: none;
  animation: fadeUp 0.4s ease;
}

.panel.active {
  display: block;
}

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

.panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.panel-icon.accent {
  background: rgba(162, 155, 254, 0.15);
  color: #a29bfe;
}

.panel h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

input[type="email"],
textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: var(--transition);
}

input[type="email"] {
  padding-left: 44px;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: rgba(18, 21, 28, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: #5a6275;
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-hover);
  box-shadow: none;
  transform: none;
}

.btn.full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn-group .btn:last-child {
  flex: 1;
}

/* Loader */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

.btn.loading .btn-loader {
  display: block;
}

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

/* EMAIL TAG */
.email-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(108, 92, 231, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* SUCCESS */
.success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  animation: scaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
  margin: 24px 0 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
}

.result-row + .result-row {
  border-top: 1px solid var(--border);
}

.result-row span {
  color: var(--text-muted);
}

.result-row strong {
  font-weight: 600;
}

.status-ok {
  color: var(--success);
}

/* TOAST */
.toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1e2330;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.4);
  background: #2a1a1f;
  color: #ff8a8a;
}

.toast.success {
  border-color: rgba(46, 204, 113, 0.35);
  background: #15241c;
  color: #5dde94;
}

/* ===== FAQ ===== */
.faq-section {
  margin-top: 48px;
}

.faq-header {
  text-align: center;
  margin-bottom: 24px;
}

.faq-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.faq-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(108, 92, 231, 0.35);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item .chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  padding: 0 18px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  animation: fadeUp 0.3s ease;
}

.faq-body ol {
  padding-left: 18px;
  margin-top: 6px;
}

.faq-body li {
  margin-bottom: 6px;
}

.faq-body li:last-child {
  margin-bottom: 0;
}

.faq-body code {
  font-size: 12.5px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a29bfe;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer .sep {
  opacity: 0.4;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }

  .panel h1 {
    font-size: 22px;
  }

  .btn-group {
    flex-direction: column-reverse;
  }

  .btn-group .btn {
    width: 100%;
  }
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text);
  background: var(--primary-soft);
  color: #c4b5fd;
}

a.brand {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 480px) {
  .header-badge {
    display: none;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }
}
