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

:root {
  --bg:      #08090c;
  --surface: #0f1117;
  --border:  rgba(255,255,255,0.08);
  --accent:  #c8f135;
  --accent2: #3df5c1;
  --text:    #e8eaf0;
  --muted:   #6b7280;
  --font:    'Vazirmatn', sans-serif;
}

/* ── Base ──────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* Background grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(200,241,53,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,241,53,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orb */
body::after {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(200,241,53,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page ──────────────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* ── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,241,53,0.08);
  border: 1px solid rgba(200,241,53,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeDown 0.6s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite; flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Domain name ───────────────────────────────────────── */
.domain-name {
  font-weight: 900;
  font-size: clamp(32px, 10vw, 110px);
  line-height: 1.05; text-align: center;
  margin-bottom: 24px; direction: ltr;
  animation: fadeDown 0.7s 0.1s ease both;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tld { color: var(--accent); -webkit-text-fill-color: var(--accent); }

/* ── Tagline ───────────────────────────────────────────── */
.tagline {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted); text-align: center;
  max-width: 500px; line-height: 2;
  margin-bottom: 48px; font-weight: 300;
  animation: fadeDown 0.7s 0.2s ease both;
}

/* ── Honest message ────────────────────────────────────── */
.honest-msg {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 48px;
  max-width: 480px; width: 100%;
  animation: fadeDown 0.7s 0.3s ease both;
  position: relative; overflow: hidden;
}

.honest-msg::before {
  content: '';
  position: absolute; right: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 0 20px 20px 0;
}

.honest-msg-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.honest-msg-body { flex: 1; }

.honest-msg-title {
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 5px; line-height: 1.8;
}

.honest-msg-title span { color: var(--accent); }

.honest-msg-sub {
  font-size: 13px; color: var(--muted);
  font-weight: 300; line-height: 1.9;
}

/* ── CTA Button ────────────────────────────────────────── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #08090c;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 18px 40px; border: none; border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeDown 0.7s 0.4s ease both;
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(200,241,53,0.35); }
.cta-btn:active { transform: translateY(0); }

.cta-icon {
  width: 20px; height: 20px;
  transform: scaleX(-1);
  transition: transform 0.2s ease;
}

.cta-btn:hover .cta-icon { transform: scaleX(-1) translateX(3px); }

/* ── Secondary link ────────────────────────────────────── */
.secondary-link {
  margin-top: 20px; font-size: 13px;
  color: var(--muted); text-align: center;
  animation: fadeDown 0.7s 0.5s ease both;
}

.secondary-link a {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  direction: ltr; display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.secondary-link a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Features ──────────────────────────────────────────── */
.features {
  display: flex; gap: 16px; margin-top: 60px;
  flex-wrap: wrap; justify-content: center;
  animation: fadeDown 0.7s 0.6s ease both;
}

.feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.feat-icon { width: 16px; height: 16px; color: var(--accent2); flex-shrink: 0; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 40px;
  width: 100%; max-width: 480px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  position: relative; text-align: right;
}

.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); font-size: 18px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.modal h2 {
  font-weight: 800; font-size: 28px; margin-bottom: 6px;
}

.modal > div > p {
  font-size: 14px; color: var(--muted);
  margin-bottom: 28px; line-height: 2; font-weight: 300;
}

/* ── Form ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 8px; font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  color: var(--text); font-family: var(--font);
  font-size: 14px; outline: none;
  transition: border-color 0.2s;
  resize: vertical; text-align: right;
}

.form-group input[type="email"],
.form-group input[type="number"],
.form-group input.ltr { direction: ltr; text-align: left; }

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(200,241,53,0.4); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

/* ── CAPTCHA ───────────────────────────────────────────── */
.captcha-row {
  display: flex; gap: 10px;
  align-items: stretch; direction: ltr;
}

.captcha-row input { flex: 1; }

#captcha-refresh {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px; color: var(--muted);
  font-size: 18px; padding: 0 14px;
  cursor: pointer; flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, transform 0.35s ease;
}

#captcha-refresh:hover {
  color: var(--accent);
  border-color: rgba(200,241,53,0.3);
  transform: rotate(180deg);
}

/* ── Submit button ─────────────────────────────────────── */
.submit-btn {
  width: 100%; background: var(--accent); color: #08090c;
  border: none; border-radius: 100px; padding: 16px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.submit-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Success ───────────────────────────────────────────── */
.success-msg { display: none; text-align: center; padding: 20px 0; }

.success-icon {
  width: 60px; height: 60px;
  background: rgba(200,241,53,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px;
}

.success-msg h3 { font-weight: 800; font-size: 24px; margin-bottom: 8px; }
.success-msg p  { font-size: 14px; color: var(--muted); line-height: 2; }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
  .honest-msg { flex-direction: column; text-align: center; padding: 20px; }
  .honest-msg::before { width: 100%; height: 3px; top: 0; right: 0; border-radius: 20px 20px 0 0; }
  .modal { padding: 28px 20px; }
}
