/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --accent: #FF2D55;
  --accent-soft: rgba(255, 45, 85, 0.12);
  --accent-glow: rgba(255, 45, 85, 0.35);

  --bg: #0A0A0F;
  --bg-elev: #14141C;
  --bg-elev-2: #1B1B26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #FFFFFF;
  --text-muted: #9A9AA5;
  --text-dim: #6E6E78;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ─── Eyebrow / labels ───────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 60px;
}

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .nav { padding: 18px 40px; } }

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
}
.nav__brand:hover { color: var(--text); }
.nav__icon { width: 32px; height: 32px; border-radius: 7px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px !important;
  transition: filter .2s, transform .2s;
}
.nav__cta:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 120px 0 80px; } }

.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 45, 85, 0.18) 0%, transparent 60%),
    radial-gradient(600px 400px at 80% 30%, rgba(180, 60, 220, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px auto 24px;
  max-width: 14ch;
  background: linear-gradient(180deg, #fff 0%, #c9c9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 500;
  transition: transform .15s, filter .15s, background .15s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn--app-store {
  background: #fff;
  color: #000;
  padding: 12px 18px;
}
.btn--app-store:hover { background: #f0f0f0; color: #000; filter: none; }
.btn--app-store svg { color: #000; }

.btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn__sub { font-size: 11px; font-weight: 400; opacity: 0.75; letter-spacing: 0.02em; }
.btn__main { font-size: 17px; font-weight: 600; }

/* ─── Hero stage (device collage) ────────────────────────────────── */
.hero__stage {
  position: relative;
  margin: 60px auto 0;
  max-width: 1040px;
  height: clamp(280px, 40vw, 560px);
  display: flex; justify-content: center; align-items: center;
}

.hero__stage img {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-strong);
  background: #000;
  object-fit: cover;
}

.stage__mac {
  width: 70%;
  max-width: 720px;
  aspect-ratio: 16/10;
  z-index: 1;
  border-radius: 14px;
}
.stage__ipad {
  width: 28%;
  max-width: 280px;
  aspect-ratio: 3/4;
  bottom: -8%;
  left: 8%;
  z-index: 2;
  border-radius: 18px;
  transform: rotate(-4deg);
}
.stage__iphone {
  width: 16%;
  max-width: 180px;
  aspect-ratio: 9/19.5;
  bottom: -10%;
  right: 10%;
  z-index: 3;
  border-radius: 26px;
  transform: rotate(5deg);
}

@media (max-width: 640px) {
  .hero__stage { height: 320px; margin-top: 30px; }
  .stage__mac { width: 90%; }
  .stage__ipad { width: 38%; left: 0%; bottom: -12%; }
  .stage__iphone { width: 22%; right: 2%; bottom: -14%; }
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 100px 24px 80px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 120px 40px 100px; }
}

.stat__num {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Features grid ──────────────────────────────────────────────── */
.features { padding: 60px 24px 100px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.card__icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Showcase ───────────────────────────────────────────────────── */
.showcase {
  padding: 80px 0;
}
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .showcase__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.showcase--reverse .showcase__inner { direction: ltr; }
@media (min-width: 900px) {
  .showcase--reverse .showcase__copy { order: 2; }
  .showcase--reverse .showcase__media { order: 1; }
}

.showcase__copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.showcase__lede {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.bullets li:first-child { border-top: none; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.bullets li::after {
  content: "";
  position: absolute;
  left: 8px; top: 21px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.showcase__media { display: flex; justify-content: center; }

.device {
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-strong);
}
.device--iphone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/19.5;
  border-radius: 38px;
  object-fit: cover;
}
.device--ipad {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  border-radius: 22px;
  object-fit: cover;
}
.device--mac {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/10;
  border-radius: 14px;
  object-fit: cover;
}

/* ─── Sources ────────────────────────────────────────────────────── */
.sources { padding: 100px 24px; background: linear-gradient(180deg, transparent, var(--bg-elev) 30%, var(--bg-elev) 70%, transparent); }

.sources__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}
@media (min-width: 900px) { .sources__grid { grid-template-columns: repeat(3, 1fr); } }

.source-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s;
}
.source-card:hover { border-color: var(--border-strong); }

.source-card h3 {
  font-size: 22px; font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.source-card > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.source-card ul { display: flex; flex-direction: column; gap: 8px; }
.source-card li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.source-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.source-card strong { color: var(--text); font-weight: 600; }

/* ─── Languages ──────────────────────────────────────────────────── */
.languages { padding: 100px 24px; text-align: center; }

.languages__lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: -30px auto 50px;
  line-height: 1.55;
}

.languages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 540px) { .languages__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .languages__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .languages__grid { grid-template-columns: repeat(5, 1fr); } }

.languages__grid span {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.languages__grid span:hover { color: var(--text); border-color: var(--accent); }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta {
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(255, 45, 85, 0.20) 0%, transparent 60%);
}
.cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 60px 24px 80px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }
}

.footer__brand {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
}
@media (min-width: 768px) { .footer__brand { justify-content: flex-start; } }
.footer__icon { width: 44px; height: 44px; border-radius: 10px; }
.footer__brand strong { font-size: 16px; display: block; }
.footer__brand p { color: var(--text-muted); font-size: 14px; }

.footer__links {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

.footer__legal {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Footer language switcher */
.footer__lang {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}
.footer__lang summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.footer__lang summary::-webkit-details-marker { display: none; }
.footer__lang summary:hover { color: var(--text); border-color: var(--border-strong); }
.footer__lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .footer__lang-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__lang-grid { grid-template-columns: repeat(4, 1fr); } }
.footer__lang-grid a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  text-align: left;
}
.footer__lang-grid a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Legal pages */
.legal { padding: 80px 24px 120px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 16px; }
.legal .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal ul li { list-style: disc; margin: 6px 0; }
.legal a { color: var(--accent); }
.legal-back { margin-top: 60px; }

/* RTL adjustments */
[dir="rtl"] .nav__brand img,
[dir="rtl"] .footer__icon { margin: 0; }
[dir="rtl"] .stage__ipad { left: auto; right: 8%; transform: rotate(4deg); }
[dir="rtl"] .stage__iphone { right: auto; left: 10%; transform: rotate(-5deg); }
[dir="rtl"] .bullets li { padding: 10px 28px 10px 0; }
[dir="rtl"] .bullets li::before { left: auto; right: 4px; }
[dir="rtl"] .bullets li::after { left: auto; right: 8px; transform: rotate(-45deg); border-left: 2px solid var(--accent); border-right: none; border-bottom: 2px solid var(--accent); }
[dir="rtl"] .source-card li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .source-card li::before { left: auto; right: 0; content: "←"; }
