/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #181818;
  --bg-card:  #202020;
  --bg-input: #252525;
  --border:   #303030;
  --border-hi:#505050;
  --text:     #f0f0f0;
  --text-dim: #808080;
  --white:    #ffffff;
  --radius:   6px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: underline; }
a:hover { opacity: 0.7; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-grey { background: var(--bg-card); }
.section-narrow { max-width: 520px; margin: 0 auto; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
  color: var(--white);
}
.section-sub {
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
  font-size: 15px;
}

/* ── Header / Nav ───────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  background: rgba(24,24,24,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
  padding: 0 8px;
}
.nav-link:hover { color: var(--white); opacity: 1; }

.nav-btn {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .nav-link { display: none; }
  .nav-btn  { padding: 7px 12px; font-size: 12px; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-primary { background: var(--white); color: #0c0c0c; }
.btn-outline  {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-hi);
}
.btn-outline:hover { border-color: var(--white); opacity: 1; }
.btn-ghost    {
  background: transparent;
  color: var(--text-dim);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--white); opacity: 1; }

.w-full { width: 100%; }

/* ── Plans ──────────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.plan {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--bg-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.plan:hover { border-color: var(--border-hi); }

.plan-popular {
  border-color: #555;
  background: #181818;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: #0c0c0c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-period {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.plan-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin: 4px 0 2px;
  color: var(--white);
}

.plan-per {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.plan-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-hi);
}

/* ── Steps ──────────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.step-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--border-hi);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.req { color: var(--text-dim); }

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus { border-color: var(--border-hi); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-dim);
}
.checkbox-label a { color: var(--text-dim); }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; accent-color: var(--white); }

/* ── Status box ─────────────────────────────────────────────────────────────── */
.status-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.status-box.active   { border-color: #555; }
.status-box.inactive { border-color: var(--border); }

.status-box .label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.status-box .val   { font-weight: 700; color: var(--white); }
.status-box .sub-url {
  margin-top: 12px;
  background: var(--bg-input);
  padding: 10px 12px;
  border-radius: 4px;
  word-break: break-all;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── Alert ──────────────────────────────────────────────────────────────────── */
.alert-error {
  background: #1a0a0a;
  border: 1.5px solid #4a1a1a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: #ff8a80;
  margin-top: 12px;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dim);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--white); }

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.modal-plan {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

#pay-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pay-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
}

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: #0c0c0c;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  z-index: 2000;
  transition: opacity 0.3s;
}
.toast.hidden { display: none; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); opacity: 1; }

/* ── Success overlay ─────────────────────────────────────────────────────────── */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.success-box {
  background: #1c1c1c;
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.success-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-loading-text { color: var(--text-dim); font-size: 15px; }

.success-check {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--white);
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.success-hint {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}
.success-hint strong { color: var(--text); }

.success-link-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.success-link-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.success-link-url {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: 14px;
  line-height: 1.5;
}

.success-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.success-meta strong { color: var(--white); }

.success-email-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .success-box { padding: 28px 20px; }
  .success-title { font-size: 18px; }
}

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section   { padding: 60px 0; }
  .hero      { padding: 72px 0 60px; }
  .modal-box { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
