:root {
  color-scheme: light;
  --ink: #171724;
  --muted: #66677a;
  --paper: #fff9ff;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(120, 88, 190, 0.18);
  --sky: #9dceff;
  --blue: #536cff;
  --violet: #8a56f2;
  --lilac: #d6a7ff;
  --pink: #ff629b;
  --yellow: #ffd36a;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(157, 206, 255, 0.46), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(255, 98, 155, 0.32), transparent 24rem),
    radial-gradient(circle at 78% 80%, rgba(214, 167, 255, 0.42), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #fff5fb 54%, #f7f1ff 100%);
  min-height: 100vh;
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(83, 108, 255, 0.20));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.language-select {
  margin-left: auto;
  max-width: 190px;
  border: 1px solid rgba(127, 90, 240, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.legal-precedence {
  padding: 14px 16px;
  border-left: 4px solid #7f5af0;
  border-radius: 8px;
  background: rgba(127, 90, 240, 0.08);
}

[dir="rtl"] .legal-precedence {
  border-left: 0;
  border-right: 4px solid #7f5af0;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 46px;
  align-items: center;
  padding: 22px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #5e3bc6;
  font-weight: 850;
  font-size: 0.88rem;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(83, 108, 255, 0.18);
}

.button.primary {
  color: white;
  background: linear-gradient(110deg, var(--blue), var(--violet), var(--pink));
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.phone {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
  aspect-ratio: 0.74;
  padding: 16px;
  border-radius: 42px;
  background: linear-gradient(150deg, rgba(255,255,255,0.9), rgba(255,255,255,0.44));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 30px 80px rgba(83, 108, 255, 0.22);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 4%, rgba(157, 206, 255, 0.62), transparent 11rem),
    radial-gradient(circle at 85% 8%, rgba(255, 98, 155, 0.42), transparent 10rem),
    linear-gradient(160deg, #ffffff, #f7f0ff);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.app-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(138, 86, 242, 0.24));
}

.pill {
  padding: 8px 11px;
  border-radius: 999px;
  color: #6b42d8;
  background: rgba(214, 167, 255, 0.24);
  font-weight: 900;
  font-size: 0.8rem;
}

.book-stack {
  display: grid;
  gap: 14px;
}

.book-card {
  padding: 16px;
  min-height: 112px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(120deg, var(--sky), var(--blue));
  box-shadow: 0 16px 28px rgba(83, 108, 255, 0.16);
}

.book-card:nth-child(2) {
  background: linear-gradient(120deg, var(--violet), var(--pink));
}

.book-card:nth-child(3) {
  color: var(--ink);
  background: linear-gradient(120deg, #fff, #ffe1ef);
}

.book-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.book-card span {
  opacity: 0.78;
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.legal-card,
.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(83, 108, 255, 0.08);
  backdrop-filter: blur(20px);
}

.feature {
  padding: 22px;
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--pink));
  font-size: 1.4rem;
}

.feature h3,
.legal-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.feature p,
.legal-card p,
.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.legal-card {
  padding: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 38px 0 18px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.doc {
  padding: clamp(22px, 5vw, 44px);
  margin: 30px 0 58px;
}

.doc h2 {
  margin-top: 36px;
  font-size: 1.45rem;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin-top: 24px;
  font-size: 1.22rem;
  color: var(--ink);
}

.doc ul {
  padding-left: 20px;
}

.updated {
  color: #6b42d8;
  font-weight: 900;
}

.contact-card {
  max-width: 680px;
}

.email-link {
  color: #5e3bc6;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone {
    width: min(340px, 100%);
  }

  .grid,
  .legal-strip {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
