:root {
  --color-primary: #5f8f94;
  --color-primary-dark: #2f4f55;
  --color-primary-light: #8bb9be;
  --color-accent: #7cdedc;
  --color-bg: #0f1c1f;
  --color-card: rgba(18, 35, 39, 0.72);
  --color-card-strong: rgba(18, 35, 39, 0.92);
  --color-surface: #122327;
  --color-text: #f3f7f8;
  --color-text-muted: rgba(243, 247, 248, 0.68);
  --color-border: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 24px 50px rgba(0, 0, 0, 0.32);
  --shadow-glow: 0 8px 30px rgba(124, 222, 220, 0.3);
  --transition: all 200ms ease;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, rgba(95, 143, 148, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(95, 143, 148, 0.25), transparent 45%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family, "Poppins", "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

body[dir='rtl'] {
  direction: rtl;
  font-family: "Vazirmatn", "IRANSans", "Poppins", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(12, 23, 26, 0.86);
  border-bottom: 1px solid var(--color-border);
}

.navbar .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.navbar .brand--text {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.navbar .brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-glow);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

body[dir='rtl'] .navbar .inner {
  flex-direction: row-reverse;
}

body[dir='rtl'] .navbar nav {
  flex-direction: row-reverse;
}

.navbar nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline: 24px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
  color: var(--color-text-muted);
}

.language-option:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-text);
}

.language-option.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(124, 222, 220, 0.12);
  color: var(--color-text);
}

.language-option .language-name {
  font-size: 0.84rem;
}

body[dir='rtl'] .language-switcher {
  margin-inline: 0 24px;
  flex-direction: row-reverse;
}

\.navbar nav \.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.navbar .cta-group {
  display: flex;
  gap: 12px;
}

body[dir='rtl'] .navbar .cta-group {
  flex-direction: row-reverse;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(95, 143, 148, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

.badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(95, 143, 148, 0.15);
  border: 1px solid rgba(95, 143, 148, 0.32);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 20px 40px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, 1fr);
}

.hero-content {
  grid-column: span 7;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(95, 143, 148, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 222, 220, 0.35);
  box-shadow: var(--shadow-glow);
}

.hero-logo-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-logo-name {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-logo-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  margin: 18px 0;
  line-height: 1.08;
}

.hero-content p {
  max-width: 560px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

body[dir='rtl'] .hero-actions,
body[dir='rtl'] .cta-actions {
  flex-direction: row-reverse;
}

.hero-figure {
  grid-column: span 5;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg, rgba(95, 143, 148, 0.4), rgba(12, 23, 26, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 18, 0) 30%, rgba(8, 16, 18, 0.8) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(12, 23, 26, 0.65);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-slide-text {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.hero-slide-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

body[dir='rtl'] .hero-slide-actions {
  flex-direction: row-reverse;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-indicators {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-indicator {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicator.is-active {
  background: var(--color-accent);
  box-shadow: 0 0 16px rgba(124, 222, 220, 0.6);
}

.hero-figure img,
.hero-figure iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.metric-card {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.6;
  transform: translateY(10px);
  transition: var(--transition);
}

.metric-card.highlight {
  border: 1px solid rgba(124, 222, 220, 0.3);
  box-shadow: var(--shadow-glow);
}

.metric-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 8px;
}

.metric-change {
  font-size: 0.85rem;
  margin-top: 6px;
  color: var(--color-accent);
}

.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feature-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  padding: 28px 26px;
  border-radius: 22px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95, 143, 148, 0.18), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 222, 220, 0.35);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(124, 222, 220, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pricing-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-card {
  background: var(--color-card-strong);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.featured {
  border-color: rgba(124, 222, 220, 0.35);
  box-shadow: 0 30px 50px rgba(95, 143, 148, 0.25);
  transform: translateY(-6px);
}

.plan-header h3 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 600;
}

.plan-period {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  padding-left: 28px;
  position: relative;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.testimonials {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.testimonial-card.highlight {
  border-color: rgba(124, 222, 220, 0.4);
  box-shadow: var(--shadow-glow);
}

.testimonial-card .quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.testimonial-meta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonial-meta img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(124, 222, 220, 0.2);
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-card);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cta-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(95, 143, 148, 0.35), rgba(11, 40, 45, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.cta-banner h3 {
  font-size: 2rem;
  margin: 0;
}

.cta-banner p {
  color: var(--color-text-muted);
  margin: 0;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 20px 60px;
  background: rgba(10, 18, 20, 0.86);
}

.footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

form label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

form input,
form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #ff7979;
  font-size: 0.85rem;
}

.auth-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 36px;
  border-radius: 24px;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.auth-title {
  margin-bottom: 16px;
}

.auth-lead {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.auth-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.auth-link.subtle {
  color: rgba(255, 255, 255, 0.6);
}

.remember-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-surface {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(18, 35, 39, 0.82);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.referral-suggestions {
  margin-bottom: 32px;
}

.referral-suggestions h2 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.referral-cards {
  display: grid;
  gap: 16px;
}

.referral-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(9, 18, 21, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.referral-broker {
  font-weight: 600;
  font-size: 1.02rem;
}

.referral-code {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 4px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.referral-form h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.helper-text {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.auth-verify {
  max-width: 480px;
  border: 1px solid rgba(124, 222, 220, 0.2);
}

.resend-form {
  margin-top: 16px;
}

body[dir='rtl'] .inline-form {
  flex-direction: row-reverse;
}


.flash-message {
  max-width: 560px;
  margin: 16px auto;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.flash-success {
  background: rgba(60, 179, 113, 0.14);
  border: 1px solid rgba(60, 179, 113, 0.28);
}

.flash-danger {
  background: rgba(220, 20, 60, 0.16);
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.flash-warning {
  background: rgba(255, 165, 0, 0.16);
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.flash-info {
  background: rgba(95, 143, 148, 0.18);
  border: 1px solid rgba(95, 143, 148, 0.28);
}

@media (max-width: 960px) {
  .navbar nav {
    display: none;
  }

  .hero {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero-content {
    grid-column: span 1;
  }

  .hero-figure {
    grid-column: span 1;
    min-height: 240px;
  }

  .hero-logo {
    gap: 14px;
  }

  .hero-logo-mark {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .navbar .inner {
    padding: 14px 16px;
  }

  .section {
    padding: 60px 14px;
  }

  .cta-banner {
    padding: 32px 24px;
  }
}
