/* ===== Design Tokens ===== */
:root {
  --background: hsl(220, 25%, 10%);
  --foreground: hsl(210, 20%, 90%);
  --card: hsl(220, 20%, 14%);
  --card-foreground: hsl(210, 20%, 90%);
  --primary: hsl(210, 80%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 20%, 16%);
  --secondary-foreground: hsl(210, 20%, 90%);
  --muted: hsl(220, 15%, 18%);
  --muted-foreground: hsl(215, 15%, 60%);
  --accent: hsl(0, 70%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(220, 15%, 20%);
  --radius: 0.5rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

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

ul {
  list-style: disc;
}

/* ===== Layout ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 ;
}

.container--sm {
  max-width: 48rem;
}

.container--md {
  max-width: 64rem;
}

.flex-1 {
  flex: 1;
}

/* ===== Header ===== */
.header {
  background: var(--primary);
  padding: 1.25rem 1rem;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--primary-foreground);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.lang-toggle:hover {
  color: var(--primary-foreground);
}

.lang-toggle svg {
  width: 1rem;
  height: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 3rem;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 1.5rem;
  background: var(--background);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.hero__subtext {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero__stat-box {
  background: hsla(210, 80%, 55%, 0.05);
  border-radius: 1rem;
  padding: 3rem;
  border: 2px solid hsla(210, 80%, 55%, 0.2);
  text-align: center;
}

.hero__stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero__stat-label {
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ===== Features ===== */
.features {
  background: var(--secondary);
  padding: 4rem 1.5rem;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background: var(--background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background: hsla(210, 80%, 55%, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Steps ===== */
.steps {
  padding: 4rem 1.5rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps__subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: hsla(210, 80%, 55%, 0.05);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

[dir="rtl"] .step-card {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.step-card__number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ===== Contact ===== */
.contact {
  padding: 4rem 1.5rem;
  background: var(--background);
  text-align: center;
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact__box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--secondary);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.contact__box svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact__box a {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.contact__box a:hover {
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  padding: 2rem 1.5rem;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--foreground);
}

.footer__sep {
  color: var(--muted-foreground);
}

/* ===== Content Pages (About, Privacy, Terms) ===== */
.content-page {
  padding: 3rem 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

[dir="rtl"] .back-link svg {
  transform: rotate(180deg);
}

.content-page h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.content-section {
  margin-bottom: 1.5rem;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.content-section p,
.content-section li {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.content-section ul {
  padding-left: 1.5rem;
}

[dir="rtl"] .content-section ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

.content-section a {
  color: var(--primary);
}

.content-section a:hover {
  opacity: 0.8;
}

.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--muted-foreground);
}

/* ===== Hamburger & Mobile Nav ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-foreground);
  padding: 0.25rem;
}

.hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

.header__mobile-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header__nav--mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.header__nav--mobile.open {
  display: flex;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header__nav--desktop {
    display: none;
  }

  .header__mobile-actions {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .header .container {
    flex-wrap: wrap;
  }

  .header__nav--mobile {
    width: 100%;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .steps__grid {
    grid-template-columns: 1fr;
  }
}
