:root {
  --bg: #0a0a0f;
  --bg-elevated: #121218;
  --surface: #161616;
  --text: #ffffff;
  --text-muted: #8e8e93;
  --accent: #11bcac;
  --accent-hover: #0ea89a;
  --accent-soft: rgba(17, 188, 172, 0.12);
  --border: #2a2a32;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --max-width: 720px;
  --landing-max: 1120px;
  --radius: 16px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  text-decoration: none;
}

/* ── Legal pages ── */

.site-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.page-landing .brand-logo {
  width: 40px;
  height: 40px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.lang-switch a,
.lang-switch__btn {
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.25rem 0.125rem;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.lang-switch a.is-active,
.lang-switch__btn.is-active {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch a:focus-visible,
.lang-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-switch span,
.lang-switch__sep {
  color: var(--border);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.doc-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(22, 22, 22, 0.72);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.doc-card:hover,
.doc-card:focus-visible {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(17, 188, 172, 0.45);
}

.doc-card h2 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
}

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

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  display: grid;
  gap: 1.75rem;
}

.legal-content section {
  display: grid;
  gap: 0.75rem;
}

.legal-content h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.legal-content h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--text);
}

.legal-content p {
  margin: 0;
  color: var(--text-muted);
}

.legal-content ul {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
}

.legal-content li + li {
  margin-top: 0.375rem;
}

.legal-content a {
  word-break: break-word;
}

.legal-intro p + p {
  margin-top: 0.75rem;
}

.placeholder {
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(22, 22, 22, 0.55);
}

.placeholder h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.placeholder p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand-copy {
  text-align: right;
}

[dir="rtl"] .site-header {
  flex-direction: row-reverse;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Landing page ── */

.page-landing {
  overflow-x: hidden;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--landing-max));
  margin: 0 auto;
  padding: 0.875rem 0;
}

.landing-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav__link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav__link:hover,
.landing-nav__link:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.hero {
  width: min(100% - 2rem, var(--landing-max));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.hero__content {
  max-width: 42rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  cursor: default;
}

.btn-primary--large {
  min-height: 3.25rem;
  padding-inline: 2rem;
  font-size: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--text);
  border-color: rgba(17, 188, 172, 0.5);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Product visual / phone mockups */

.product-visual {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 0 0.5rem;
}

.product-visual__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(320px, 52vw, 520px);
  max-width: 56rem;
  margin: 0 auto;
}

.phone-mockup {
  margin: 0;
  flex-shrink: 0;
}

.phone-mockup__frame {
  position: relative;
  border-radius: 2.25rem;
  padding: 0.5rem;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.phone-mockup__screen {
  overflow: hidden;
  border-radius: 1.85rem;
  background: var(--bg);
  direction: ltr;
}

.phone-mockup--center .phone-mockup__frame {
  width: clamp(220px, 28vw, 280px);
}

.phone-mockup--back {
  position: absolute;
  bottom: 0;
  opacity: 0.55;
  z-index: 0;
}

.phone-mockup--left {
  left: 0;
  transform: translateX(-8%) rotate(-6deg);
}

.phone-mockup--right {
  right: 0;
  transform: translateX(8%) rotate(6deg);
}

.phone-mockup--back .phone-mockup__frame {
  width: clamp(180px, 22vw, 220px);
}

.phone-mockup--center {
  position: relative;
  z-index: 1;
}

/* App screen placeholders — swap inner content for <img> screenshots when available */

.app-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(380px, 50vw, 480px);
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
}

.app-screen--home {
  justify-content: flex-start;
  padding-top: 2.5rem;
}

.app-screen__brand {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-screen__brand-accent {
  color: var(--accent);
}

.app-screen__tagline {
  margin: 0 0 2rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.app-screen__step {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-screen__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.app-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.app-pill--active {
  background: rgba(17, 188, 172, 0.22);
}

.app-screen__cta {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
}

.app-screen--focus {
  gap: 0.75rem;
}

.app-screen__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-screen__timer {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.app-screen__commitment {
  margin: 0;
  max-width: 12rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.app-screen--complete {
  gap: 0.5rem;
}

.app-screen__complete-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.app-screen__complete-stat {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.app-screen__complete-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section__inner {
  width: min(100% - 2rem, var(--landing-max));
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 36rem;
  text-align: center;
}

.section__title {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__title--small {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.section__lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section--steps {
  border-top: 1px solid var(--border-subtle);
}

.section--why {
  background: var(--bg-elevated);
}

.section--contact {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.section--cta {
  border-top: 1px solid var(--border-subtle);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.steps-list__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps-list__number {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.steps-list__heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.steps-list__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
}

.why-list__heading {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.why-list__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 26rem;
}

.focus-statement {
  padding: clamp(5rem, 14vw, 9rem) 1rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.focus-statement__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.focus-statement__line {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.focus-statement__line + .focus-statement__line {
  margin-top: 0.35em;
}

.focus-statement__line--accent {
  color: var(--accent);
}

.contact-lead {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-email {
  margin: 0;
  font-size: 1.0625rem;
}

.contact-email a {
  font-weight: 600;
}

.landing-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.landing-footer__inner {
  width: min(100% - 2rem, var(--landing-max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.landing-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.landing-footer__links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer__links a:hover,
.landing-footer__links a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

/* RTL */

[dir="rtl"] .landing-header__inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .landing-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero__actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .phone-mockup--left {
  left: auto;
  right: 0;
  transform: translateX(8%) rotate(6deg);
}

[dir="rtl"] .phone-mockup--right {
  right: auto;
  left: 0;
  transform: translateX(-8%) rotate(-6deg);
}

[dir="rtl"] .steps-list__item,
[dir="rtl"] .why-list__item {
  text-align: right;
}

[dir="rtl"] .steps-list__text,
[dir="rtl"] .why-list__text {
  margin-inline-start: auto;
}

[dir="rtl"] .landing-footer__links {
  flex-direction: row-reverse;
}

/* Responsive */

@media (min-width: 900px) {
  .landing-nav {
    display: flex;
  }

  .landing-nav-mobile {
    display: none;
  }
}

@media (max-width: 899px) {
  .landing-header__inner {
    flex-wrap: wrap;
  }

  .lang-switch {
    margin-inline-start: auto;
  }

  .landing-nav-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    width: min(100% - 2rem, var(--landing-max));
    margin: 0 auto;
    padding: 0 0 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  .landing-nav-mobile__link {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }

  .landing-nav-mobile__link:hover,
  .landing-nav-mobile__link:focus-visible {
    color: var(--text);
    text-decoration: none;
  }

  [dir="rtl"] .landing-nav-mobile {
    flex-direction: row-reverse;
  }
}

@media (max-width: 767px) {
  .phone-mockup--back {
    display: none;
  }

  .product-visual__stage {
    min-height: auto;
  }

  .app-screen {
    min-height: 400px;
  }
}

@media (max-width: 430px) {
  .hero__title {
    font-size: clamp(2.25rem, 11vw, 2.75rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 20rem;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .doc-card {
    transition: none;
  }
}
