:root {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-soft: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --brand: #0d9488;
  --brand-2: #06b6d4;
  --brand-3: #6366f1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.18), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.28), 0 18px 36px -18px rgba(79, 70, 229, 0.25);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090f;
    --bg-soft: #0d1117;
    --bg-elev: #111827;
    --fg: #f1f5f9;
    --fg-muted: #cbd5e1;
    --fg-soft: #94a3b8;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.55), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 20px 40px -18px rgba(79, 70, 229, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}

.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0d9488;
  color: white;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, #0d9488 60%, transparent);
}

.brand-mark svg { width: 78%; height: 78%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--fg); }

.nav-cta {
  background: var(--fg);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
}

.lang-switch.is-open .lang-menu { display: block; }

.lang-menu li {
  border-radius: 8px;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-menu button:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }

.lang-menu button[aria-current="true"] {
  color: var(--brand);
  font-weight: 600;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.lang-menu .lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* RTL adjustments */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] .shots-nav--prev { left: auto; right: -10px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .shots-nav--next { right: auto; left: -10px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .hero-shot { transform: rotate(1deg); }
[dir="rtl"] .privacy-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .privacy-list li::before { left: auto; right: 0; }
[dir="rtl"] .hero-bullets li { flex-direction: row; }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, color-mix(in srgb, var(--brand-3) 24%, transparent), transparent 70%);
  filter: blur(10px);
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 20px 0 18px;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-md);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-btn small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.78;
  letter-spacing: 0.04em;
}

.store-btn strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.store-btn--google {
  background: #0f172a;
}

@media (prefers-color-scheme: dark) {
  .store-btn { background: #f8fafc; color: #0f172a; border-color: rgba(15, 23, 42, 0.1); }
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 14.5px;
}

.hero-bullets li > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  inset: -10% -5% -10% -5%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elev);
  padding: 14px;
  border: 1px solid var(--border);
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}

.hero-shot:hover { transform: rotate(0deg) scale(1.01); }

@media (max-width: 900px) {
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { transform: none; }
}

/* ========== TRUST STRIP ========== */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item strong {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-item span {
  font-size: 13px;
  color: var(--fg-soft);
}

@media (max-width: 640px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ========== SECTION SHELL ========== */
.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 16px 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--fg-muted);
  margin: 0;
}

/* ========== FEATURES ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: white;
}

.feature-icon[data-color="indigo"]  { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.feature-icon[data-color="emerald"] { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon[data-color="amber"]   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feature-icon[data-color="pink"]    { background: linear-gradient(135deg, #ec4899, #db2777); }
.feature-icon[data-color="sky"]     { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.feature-icon[data-color="violet"]  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ========== SCREENSHOTS CAROUSEL ========== */
.shots {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.shots-carousel {
  position: relative;
}

.shots-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 8px 4px 32px;
  scrollbar-width: none;
}

.shots-track::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 min(720px, 88%);
  scroll-snap-align: center;
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.shot img {
  border-radius: 12px;
  width: 100%;
}

.shot figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-soft);
  font-weight: 500;
}

.shots-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease;
}

.shots-nav:hover { transform: translateY(-50%) scale(1.06); }

.shots-nav--prev { left: -10px; }
.shots-nav--next { right: -10px; }

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.shots-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shots-dots button[aria-current="true"] {
  background: var(--brand);
  transform: scale(1.4);
}

@media (max-width: 640px) {
  .shots-nav { display: none; }
}

/* ========== PRIVACY ========== */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.privacy-grid h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 14px 0 16px;
}

.privacy-grid p {
  color: var(--fg-muted);
  font-size: 16px;
  margin: 0 0 20px;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list li {
  position: relative;
  padding-left: 24px;
  color: var(--fg-muted);
  font-size: 14.5px;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.privacy-read-more {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.privacy-read-more:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.privacy-card {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
}

.privacy-card-line {
  margin: 0;
  font-size: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.privacy-card-line:first-of-type { border-top: none; padding-top: 0; }

.privacy-card-line strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ========== CTA ========== */
.cta {
  padding: 80px 0 110px;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
  color: white;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 20% 30%, color-mix(in srgb, var(--brand-3) 35%, transparent), transparent 70%),
    radial-gradient(50% 50% at 90% 80%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-box p {
  color: rgba(241, 245, 249, 0.78);
  font-size: 17px;
  margin: 0 0 28px;
}

.cta-box .cta-row {
  justify-content: center;
  margin-bottom: 0;
}

.cta-box .store-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: transparent;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 28px 0;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
  color: var(--fg-soft);
}

.footer-links a:hover { color: var(--fg); }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--fg-soft);
}

/* ========== LEGAL / PROSE PAGE ========== */
.legal-body { background: var(--bg-soft); }

.legal {
  padding: 64px 0 96px;
}

.legal-prose {
  max-width: 760px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.legal-back {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-soft);
  margin-bottom: 24px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.legal-back:hover { color: var(--brand); }

.legal-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 10px;
}

.legal-sub {
  color: var(--fg-muted);
  font-size: 17px;
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--fg-soft);
  font-size: 13px;
  margin: 0;
}

.legal-intro {
  color: var(--fg-muted);
  font-size: 16px;
  margin: 0 0 32px;
}

.legal-prose section {
  margin-bottom: 28px;
}

.legal-prose h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
}

.legal-prose p {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-prose ul {
  padding-left: 22px;
  margin: 8px 0 12px;
  color: var(--fg-muted);
}

.legal-prose ul li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.legal-note {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 14.5px !important;
  color: var(--fg) !important;
  margin-top: 12px !important;
}

.legal-prose a {
  color: var(--brand);
  font-weight: 500;
}

.legal-prose a:hover { text-decoration: underline; }

[dir="rtl"] .legal-prose ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .legal-note { border-left: none; border-right: 3px solid var(--brand); border-radius: 8px 0 0 8px; }

@media (max-width: 600px) {
  .legal-prose { padding: 32px 22px; border-radius: var(--radius-lg); }
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
