:root {
  color-scheme: light dark;

  --bg: #0b1220;
  --bg2: #0a0f1a;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #0ea5e9;
  --accent2: #22c55e;

  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius2: 24px;
  --focus: rgba(14, 165, 233, 0.7);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

/*
  Background seams are usually a browser compositing artifact (esp. Safari) when
  large gradients are rendered into tiles during scroll. Keeping the gradient on
  the root element (and avoiding fixed pseudo-elements) is typically the most
  stable approach.
*/
html {
  background-color: var(--bg);
  background-image: radial-gradient(
      1100px 420px at 15% 5%,
      rgba(14, 165, 233, 0.35),
      rgba(14, 165, 233, 0) 60%
    ),
    radial-gradient(
      900px 420px at 90% 10%,
      rgba(34, 197, 94, 0.25),
      rgba(34, 197, 94, 0) 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}

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

a:hover {
  text-decoration: underline;
}

.button,
.nav a,
a {
  outline: none;
}

.button:focus-visible,
.nav a:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 12px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Removing backdrop-filter avoids Safari/Chrome gradient tiling seams. */
  background: rgba(10, 15, 26, 0.82);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand__tag {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.language-selector {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background 140ms ease;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-selector:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.machine-translation-disclaimer {
  width: min(920px, calc(100% - 40px));
  margin: 14px auto 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.machine-translation-disclaimer::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  vertical-align: text-bottom;
}

/* RTL (Right-to-Left) Support */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

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

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

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

html[dir="rtl"] .hero__inner {
  direction: rtl;
}

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

html[dir="rtl"] ul,
html[dir="rtl"] .bullets,
html[dir="rtl"] .checklist,
html[dir="rtl"] .mini {
  padding-left: 0;
  padding-right: 18px;
}

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

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


.hero {
  padding: 56px 0 42px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  margin: 0 0 14px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.subhead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 56ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.cta--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button--primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(34, 197, 94, 1));
  color: #06121a;
  border-color: transparent;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
}

.bullets {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets strong {
  color: var(--text);
}

.hero__media {
  display: grid;
  place-items: center;
}

.stack {
  position: relative;
  width: min(360px, 100%);
}

.stack__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.stack__img:nth-child(2) {
  position: absolute;
  inset: auto auto -26px -26px;
  width: 72%;
  transform: rotate(-5deg);
  opacity: 0.98;
}

.section {
  padding: 54px 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h3 {
  margin: 0;
}

.examples {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.callout {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius2);
  padding: 18px;
}

.callout--accent {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.14),
    rgba(34, 197, 94, 0.12)
  );
}

.callout__title {
  font-size: 16px;
  letter-spacing: 0.1px;
}

.chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
}

.mini {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.2px;
}

.section__lede {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius2);
  overflow: hidden;
}

.card__copy h3 {
  margin: 0;
  font-size: 18px;
}

.card__copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card__media {
  display: grid;
  place-items: center;
}

.card__media img {
  /* Normalize screenshot sizes so all feature cards feel consistent */
  width: auto;
  max-width: 100%;
  height: clamp(260px, 55vw, 460px);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.center {
  margin-top: 24px;
  display: grid;
  place-items: center;
}

.privacy {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist strong {
  color: var(--text);
}

.note {
  border: 1px solid var(--border);
  background: var(--card2);
  border-radius: var(--radius2);
  padding: 18px;
}

.note h3 {
  margin: 0;
  font-size: 16px;
}

.note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.note__links {
  margin-top: 12px;
}

.note__links a {
  color: rgba(14, 165, 233, 0.95);
}

.final {
  text-align: center;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

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

.footer__brand {
  font-weight: 800;
}

.footer__meta {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 4px;
}

.footer__right {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .stack {
    width: min(460px, 100%);
  }
  .stack__img:nth-child(2) {
    inset: auto auto -18px -18px;
  }
}

@media (min-width: 900px) {
  /* Make feature cards feel more “designed”: copy + screenshot side-by-side */
  .card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 18px;
    padding: 22px;
  }

  .card:nth-child(even) .card__copy {
    order: 2;
  }

  .card:nth-child(even) .card__media {
    order: 1;
  }
}

@media (max-width: 780px) {
  .nav {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .privacy {
    grid-template-columns: 1fr;
  }
  .examples {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover {
    transform: none;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7fafc;
    --bg2: #eef2f7;
    --text: rgba(2, 10, 18, 0.92);
    --muted: rgba(2, 10, 18, 0.72);
    --muted2: rgba(2, 10, 18, 0.58);
    --border: rgba(2, 10, 18, 0.12);
    --card: rgba(255, 255, 255, 0.75);
    --card2: rgba(255, 255, 255, 0.9);
    --shadow: 0 18px 45px rgba(2, 10, 18, 0.14);
  }

  html {
    background-color: var(--bg);
    background-image: radial-gradient(
        1100px 420px at 15% 5%,
        rgba(14, 165, 233, 0.18),
        rgba(14, 165, 233, 0) 60%
      ),
      radial-gradient(
        900px 420px at 90% 10%,
        rgba(34, 197, 94, 0.14),
        rgba(34, 197, 94, 0) 60%
      ),
      linear-gradient(180deg, var(--bg), var(--bg2));
  }

  .header {
    background: rgba(247, 250, 252, 0.78);
  }
}

/* Safari 26.x: the only truly seam-free option is to avoid large radial gradients. */
@supports (-webkit-touch-callout: none) {
  html {
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-image: linear-gradient(180deg, var(--bg), var(--bg2));
  }

  @media (prefers-color-scheme: light) {
    html {
      background-attachment: scroll;
      background-repeat: no-repeat;
      background-image: linear-gradient(180deg, var(--bg), var(--bg2));
    }
  }
}


