:root {
  --bg: #0a0e17;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --text-muted: #8b9cb8;
  --accent: #00c8ff;
  --accent-glow: rgba(0, 200, 255, 0.35);
  --gold: #f0b429;
  --radius: 14px;
  --font-fa: "Vazirmatn", "Tahoma", sans-serif;
  --font-en: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: var(--accent-glow);
  animation: float 12s ease-in-out infinite;
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: rgba(240, 180, 41, 0.15);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo__domain {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.lang-switch__btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn--active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

/* Hero */
.hero {
  flex: 1;
  text-align: center;
  margin-bottom: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* Progress */
.progress {
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

.progress__bar {
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.progress__fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Notify form */
.notify {
  max-width: 440px;
  margin: 0 auto;
}

.notify__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.notify__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notify__input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.notify__btn {
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.notify__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.notify__btn:active {
  transform: translateY(0);
}

.notify__msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.notify__msg--success {
  color: #4ade80;
}

.notify__msg--error {
  color: #f87171;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    padding: 1.5rem 1rem 2rem;
  }

  .header {
    margin-bottom: 2.5rem;
  }

  .notify__row {
    flex-direction: column;
  }

  .notify__btn {
    width: 100%;
  }
}
