:root {
  --bg: #fafafc;
  --surface: #ffffff;
  --border: #e2e4ec;
  --text: #0b2251;
  --text-muted: #566389;
  --accent: #1f8b93;
  --accent-dark: #0e4a50;
  --accent-text: #ffffff;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080f;
    --surface: #0d1730;
    --border: #202a4a;
    --text: #f5f6f8;
    --text-muted: #9aa4c4;
    --accent: #2aa5ae;
    --accent-dark: #0e4a50;
    --accent-text: #05080f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  border-radius: 8px;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-picker-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.lang-dropdown-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 320px;
  width: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 34, 81, 0.18);
  z-index: 20;
}

.lang-dropdown-list[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.lang-option:hover,
.lang-option.is-active {
  background: var(--bg);
}

.lang-option img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding-block: 56px;
  color: #ffffff;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 360px;
  min-width: 280px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-subhead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 28px;
  max-width: 46ch;
}

.languages-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-art {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(310px, 70vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.25));
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* How it works */
.how-it-works {
  padding-block: 64px;
}

.how-it-works h2,
.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 32px;
}

.steps {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.screenshot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-block: 8px 16px;
  scroll-snap-type: x proximity;
}

.screenshot-strip img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(11, 34, 81, 0.12);
}

/* Features */
.features {
  padding-block: 64px;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  padding-block: 56px;
  text-align: center;
}

.final-cta .cta-button {
  background: var(--accent);
  color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.footer-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-row a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero-row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subhead {
    margin-inline: auto;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}
