:root {
  color-scheme: light;
  --ink: #10201a;
  --muted: #66746e;
  --soft: #f6f4ee;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --line: #e3ded2;
  --green: #116345;
  --green-dark: #0c3025;
  --green-soft: #e7f2eb;
  --gold: #d5a94a;
  --gold-soft: #fff2cb;
  --blue: #254b7c;
  --blue-soft: #e8f0fb;
  --coral: #a84b3f;
  --coral-soft: #fff0ec;
  --header-bg: rgba(255, 253, 248, 0.92);
  --nav-text: #37433e;
  --pill-bg: #e8f3ed;
  --pill-text: #0c3025;
  --shadow: 0 28px 80px rgba(36, 32, 24, 0.13);
  --shadow-soft: 0 18px 50px rgba(36, 32, 24, 0.1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f7f3;
  --muted: #aab8b2;
  --soft: #101613;
  --surface: #090f0c;
  --surface-raised: #121a16;
  --line: #26332d;
  --green: #29b983;
  --green-dark: #0f2a22;
  --green-soft: #153b2d;
  --gold: #f0c66f;
  --gold-soft: #3b3016;
  --blue: #9fb9ff;
  --blue-soft: #172746;
  --coral: #f0a399;
  --coral-soft: #3b211e;
  --header-bg: rgba(9, 15, 12, 0.92);
  --nav-text: #dbe6e0;
  --pill-bg: #173c2e;
  --pill-text: #d8f3e7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.js body {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js.is-ready body {
  opacity: 1;
  transform: none;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  color: var(--ink);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.js .site-header {
  opacity: 0;
  transform: translateY(-10px);
}

.js.is-ready .site-header {
  opacity: 1;
  transform: none;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(16, 22, 20, 0.08);
}

.brand,
.desktop-nav,
.site-footer nav,
.preview-head,
.hero-actions,
.header-actions,
.audience-note,
.scenario-topline,
.steps li,
.simple-flow li,
.feature-icon {
  display: flex;
  align-items: center;
}

.brand {
  min-width: max-content;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-name {
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(17, 99, 69, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(16, 22, 20, 0.04);
}

.desktop-nav a,
.site-footer a,
.text-link {
  text-decoration: none;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--nav-text);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--green);
  background: var(--green-soft);
}

.header-actions {
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  width: 50px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--soft);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 160ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(16px);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-cta,
.primary-button {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(17, 99, 69, 0.2);
}

.header-cta:hover,
.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

html[data-theme="dark"] .header-cta:hover,
html[data-theme="dark"] .primary-button:hover {
  background: #1f9b70;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-raised);
}

.secondary-button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 680px) minmax(360px, 480px);
  gap: 76px;
  align-items: center;
  justify-content: center;
  padding: 136px 64px 74px;
  background:
    linear-gradient(180deg, rgba(246, 244, 238, 0.82), rgba(255, 253, 248, 0.96)),
    var(--soft);
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(180deg, rgba(16, 22, 19, 0.9), rgba(9, 15, 12, 0.98)),
    var(--surface);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.how-copy h2,
.access-panel h2,
.page-hero h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 720px;
  font-size: 5rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.23rem;
}

.emotional-line {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.audience-note {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.audience-note span {
  padding: 8px 11px;
  border: 1px solid rgba(17, 99, 69, 0.14);
  border-radius: 999px;
  color: var(--pill-text);
  background: var(--pill-bg);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-preview {
  width: min(100%, 480px);
  justify-self: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.preview-head {
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-head img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.preview-head strong,
.preview-head span {
  display: block;
}

.preview-head span {
  color: var(--muted);
}

.message-stack {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.context-card,
.reply-card {
  width: fit-content;
  max-width: 92%;
  padding: 15px 16px;
  border-radius: 18px;
}

.context-card {
  margin-left: auto;
  color: #ffffff;
  background: var(--green);
  border-bottom-right-radius: 6px;
}

.reply-card {
  color: var(--ink);
  background: var(--soft);
  border-bottom-left-radius: 6px;
}

.context-card span,
.reply-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 850;
}

.reply-card span {
  color: var(--gold);
}

.context-card p,
.reply-card p {
  margin: 0;
}

.context-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-grid span {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--nav-text);
  background: var(--soft);
  font-size: 0.88rem;
  font-weight: 850;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.proof-band div {
  padding: 28px 48px;
  background: var(--surface-raised);
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band span {
  margin-top: 7px;
  color: var(--muted);
}

.section,
.site-footer,
.page-section {
  padding: 88px 64px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.centered {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2,
.how-copy h2,
.access-panel h2,
.page-hero h1 {
  font-size: 3.15rem;
}

.section-heading p:not(.eyebrow),
.access-panel p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.centered p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-raised);
  box-shadow: 0 1px 0 rgba(16, 22, 20, 0.02);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.scenario-card:hover,
.compare-card:hover,
.feature:hover {
  border-color: rgba(17, 99, 69, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.scenario-card.is-wide {
  grid-column: span 2;
}

.scenario-topline {
  gap: 12px;
  min-height: 48px;
}

.scenario-topline span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: var(--gold-soft);
  font-weight: 900;
}

.scenario-topline strong {
  line-height: 1.25;
}

.arabic-sample {
  min-height: 78px;
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 17px;
  color: #ffffff;
  background: var(--green);
  font-size: 1.08rem;
  line-height: 1.65;
}

.translation-result {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
}

.relief-line {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.compare-section {
  background: var(--soft);
}

.compare-grid {
  display: grid;
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.compare-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-raised);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.compare-card h3 {
  margin: 0 0 18px;
  font-size: 1.28rem;
}

.pain-card ul,
.simple-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.pain-card li {
  list-style: none;
  padding: 13px 14px;
  border-radius: 15px;
  color: var(--ink);
  background: var(--coral-soft);
}

.simple-flow {
  list-style: none;
}

.simple-flow li {
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--green-soft);
  font-weight: 850;
}

.simple-flow span,
.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--green-dark);
  background: var(--gold);
  font-weight: 900;
}

.demo-screenshot-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin: 0 auto;
}

.demo-shot-card {
  margin: 0;
}

.demo-shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1044 / 2020;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #090d0c;
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.demo-shot-card img:hover {
  border-color: rgba(17, 99, 69, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.2);
}

.demo-shot-card figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.demo-missing {
  display: none;
  min-height: 180px;
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface-raised);
  text-align: center;
}

.demo-shot-card.is-missing img {
  display: none;
}

.demo-shot-card.is-missing .demo-missing {
  display: grid;
  place-items: center;
}

.muted {
  background: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-raised);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature-icon {
  width: 46px;
  height: 46px;
  justify-content: center;
  border-radius: 15px;
  color: var(--pill-text);
  background: var(--pill-bg);
  font-weight: 900;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
}

.feature p,
.access-panel p,
.faq-list p,
.page-section p,
.page-section li {
  color: var(--muted);
}

.how-section {
  background: var(--green-dark);
  color: #ffffff;
}

.how-copy {
  max-width: 820px;
}

.how-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 30px 0 24px;
  padding: 0;
  list-style: none;
}

.steps li {
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.text-link {
  color: #f0c66f;
  font-weight: 850;
}

.access-section {
  background: var(--surface);
}

.access-panel {
  display: flex;
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.access-panel > div {
  max-width: 720px;
}

.access-panel .primary-button {
  flex: 0 0 auto;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #ffffff;
  background: #0d1110;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  gap: 18px;
}

.site-footer a:hover {
  color: #f0c66f;
}

.page-hero {
  padding: 132px 64px 56px;
  color: #ffffff;
  background: var(--green-dark);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-section {
  max-width: 980px;
}

.page-section h2 {
  margin-top: 34px;
}

.page-section li {
  margin: 8px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-preview.reveal,
.demo-shot-card.reveal,
.scenario-card.reveal,
.compare-card.reveal {
  transform: translateY(30px) scale(0.98);
}

.hero-preview.reveal.is-visible,
.demo-shot-card.reveal.is-visible,
.scenario-card.reveal.is-visible,
.compare-card.reveal.is-visible {
  transform: none;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 46px;
  }

  .hero h1 {
    font-size: 4.25rem;
  }

  .hero-preview {
    justify-self: start;
  }

  .proof-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-card.is-wide {
    grid-column: span 2;
  }

  .demo-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-header {
    gap: 10px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-name {
    max-width: none;
    white-space: normal;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero,
  .section,
  .site-footer,
  .page-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .emotional-line {
    font-size: 1rem;
  }

  .section,
  .site-footer,
  .page-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading h2,
  .how-copy h2,
  .access-panel h2,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .scenario-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .scenario-card,
  .scenario-card.is-wide {
    grid-column: auto;
    min-height: auto;
  }

  .demo-screenshot-grid {
    max-width: 390px;
    grid-template-columns: 1fr;
  }

  .proof-band div {
    padding: 22px 20px;
  }

  .access-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    padding: 18px;
    border-radius: 22px;
  }

  .preview-head img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 42px;
  }

  .header-cta {
    display: none;
  }

  .brand-name {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .section-heading h2,
  .how-copy h2,
  .access-panel h2,
  .page-hero h1 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .js body,
  .js .site-header,
  .reveal,
  .hero-preview.reveal,
  .demo-shot-card.reveal,
  .scenario-card.reveal,
  .compare-card.reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
