:root {
  --bg: #f4efe6;
  --bg-soft: #fbf7f1;
  --canvas: rgba(255, 252, 247, 0.8);
  --surface: rgba(255, 249, 242, 0.92);
  --surface-strong: #fffdf9;
  --ink: #15130f;
  --muted: #5d564b;
  --line: rgba(21, 19, 15, 0.12);
  --accent: #c5434f;
  --accent-deep: #8b2438;
  --accent-soft: rgba(197, 67, 79, 0.1);
  --shadow: 0 32px 90px rgba(38, 22, 15, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(197, 67, 79, 0.14), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(192, 154, 87, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f4ed 0%, #f4efe6 45%, #f8f4ed 100%);
  color: var(--ink);
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 72%);
  pointer-events: none;
  z-index: -2;
}

body[dir="rtl"] {
  font-family: "Beiruti", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.9;
  z-index: -1;
}

.page-glow-1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -90px;
  background: rgba(197, 67, 79, 0.18);
}

.page-glow-2 {
  width: 340px;
  height: 340px;
  bottom: 12%;
  left: -120px;
  background: rgba(138, 94, 36, 0.12);
}

.page-glow-3 {
  width: 240px;
  height: 240px;
  top: 22%;
  left: 5%;
  background: rgba(197, 67, 79, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  padding: 18px 0 0;
  z-index: 30;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(255, 251, 245, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 54px rgba(25, 18, 12, 0.08);
}

.brand,
.nav-actions,
.desktop-nav,
.hero-actions,
.signal-row,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
}

.desktop-nav {
  gap: 18px;
}

.desktop-nav a,
.mobile-menu a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.locale-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.locale-btn.active {
  color: var(--ink);
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(24, 18, 12, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffdf9;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 18px 36px rgba(139, 36, 56, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
}

.button-tertiary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.menu-btn {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  margin-top: 10px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 14px;
}

.mobile-menu.open {
  display: flex;
}

.hero {
  padding: 96px 0 72px;
}

.hero-home {
  min-height: calc(100svh - 112px);
  display: flex;
  align-items: center;
}

.hero-grid,
.support-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1,
.section-intro h2,
.section-head h2,
.split-copy h2,
.cta-band h2,
.policy-section h2,
.support-block h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-body,
.section-intro p,
.section-head p,
.detail-item p,
.split-copy p,
.bullet-stack p,
.policy-section p,
.policy-aside p,
.support-block p,
.support-surface-list li,
.site-footer {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero-body {
  max-width: 620px;
  margin: 22px 0 0;
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.eyebrow,
.mini-label,
.trust-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(197, 67, 79, 0.16);
}

.eyebrow-dark {
  background: rgba(21, 19, 15, 0.06);
  color: var(--ink);
  border-color: rgba(21, 19, 15, 0.08);
}

.signal-row {
  margin-top: 30px;
  flex-wrap: wrap;
}

.signal,
.summary-item {
  min-width: 150px;
  padding: 18px 20px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(20, 17, 12, 0.08);
}

.signal strong,
.summary-item strong {
  display: block;
  font-size: 0.98rem;
}

.signal span,
.summary-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 690px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 248, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  inset: 18px 0 64px 108px;
  padding: 16px;
}

.hero-card-float {
  width: 250px;
  height: 520px;
  left: 0;
  bottom: 0;
  padding: 12px;
  transform: rotate(-8deg);
}

.hero-card-top,
.support-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-label {
  color: var(--accent-deep);
  background: rgba(197, 67, 79, 0.1);
}

.mini-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding-top: 60px;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.4), rgba(255, 255, 255, 0.6));
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.story-grid,
.split-highlight,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
}

.detail-list,
.bullet-stack {
  display: grid;
  gap: 20px;
}

.detail-item,
.bullet-stack article,
.support-block,
.support-surface,
.legal-summary,
.policy-aside,
.cta-band {
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.detail-item,
.bullet-stack article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
}

.detail-item h3,
.bullet-stack h3,
.trust-link h3,
.flow-step h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-item p,
.bullet-stack p,
.trust-link p,
.flow-step p {
  margin: 10px 0 0;
}

.detail-index,
.policy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.flow-step {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.flow-step img {
  aspect-ratio: 10 / 12;
  border-radius: 22px;
  object-fit: cover;
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flow-step-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(21, 19, 15, 0.06);
  font-weight: 800;
}

.bullet-stack article {
  grid-template-columns: 1fr;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.trust-link {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 252, 248, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.trust-link:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 67, 79, 0.18);
  box-shadow: 0 34px 90px rgba(38, 22, 15, 0.15);
}

.trust-kicker {
  color: var(--ink);
  background: rgba(21, 19, 15, 0.06);
}

.trust-cta,
.text-link {
  color: var(--accent-deep);
  font-weight: 800;
}

.split-highlight {
  align-items: center;
}

.legal-hero {
  display: grid;
  gap: 24px;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
}

.policy-aside {
  padding: 28px;
  border-radius: 30px;
  position: sticky;
  top: 112px;
}

.policy-article {
  display: grid;
  gap: 0;
  padding: 10px 0;
}

.policy-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.policy-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-section h2,
.support-block h2,
.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.04;
}

.support-surface {
  padding: 24px;
  border-radius: 30px;
}

.support-surface-list,
.support-checklist,
.support-steps {
  margin: 0;
  display: grid;
  gap: 14px;
}

.support-surface-list,
.support-checklist {
  padding: 0;
  list-style: none;
}

.support-surface-list li,
.support-checklist li,
.support-steps li {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(21, 19, 15, 0.08);
}

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

.support-grid-narrow {
  align-items: start;
}

.support-block {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
}

.support-block ul,
.support-block ol {
  padding-inline-start: 1.2rem;
}

body[dir="rtl"] .support-block ul,
body[dir="rtl"] .support-block ol {
  padding-inline-start: 0;
  padding-inline-end: 1.2rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 32px;
}

.site-footer {
  padding: 26px 0 42px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
}

.brand-footer .brand-subtitle {
  max-width: 360px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hide-mobile {
  display: inline-flex;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .hide-mobile {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero-grid,
  .support-hero-grid,
  .story-grid,
  .split-highlight,
  .policy-layout,
  .support-grid,
  .trust-grid,
  .footer-shell,
  .cta-band {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-visual {
    min-height: 620px;
  }

  .hero-card-main {
    inset: 10px 0 74px 64px;
  }

  .hero-card-float {
    width: 220px;
    height: 470px;
  }

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

  .policy-aside {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100% - 22px));
  }

  .site-header {
    padding-top: 12px;
  }

  .nav-shell {
    min-height: 70px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

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

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

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

  .nav-actions {
    gap: 8px;
  }

  .locale-btn {
    padding: 0 10px;
    min-height: 36px;
  }

  .hero,
  .section {
    padding: 64px 0;
  }

  .hero-copy h1,
  .section-intro h2,
  .section-head h2,
  .split-copy h2 {
    font-size: 2.35rem;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-card-main {
    inset: 8px 4px 54px 34px;
    padding: 10px;
  }

  .hero-card-float {
    width: 142px;
    height: 304px;
    left: 0;
    bottom: 8px;
    transform: rotate(-4deg);
    padding: 8px;
  }

  .signal,
  .summary-item,
  .detail-item,
  .bullet-stack article,
  .support-block,
  .support-surface,
  .policy-aside,
  .trust-link,
  .cta-band {
    padding: 20px;
  }

  .flow-grid,
  .legal-summary,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    padding: 16px;
  }

  .policy-section {
    grid-template-columns: 1fr;
  }

  .policy-number {
    width: 40px;
    height: 40px;
  }

  .footer-shell {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .brand-subtitle {
    display: none;
  }

  .hero-copy h1,
  .section-intro h2,
  .section-head h2,
  .split-copy h2,
  .cta-band h2,
  .support-block h2,
  .policy-section h2 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-card-main {
    inset: 4px 2px 44px 20px;
  }

  .hero-card-float {
    width: 120px;
    height: 260px;
  }
}

@font-face {
  font-family: "Beiruti";
  src: url("./fonts/Beiruti-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Beiruti";
  src: url("./fonts/Beiruti-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Beiruti";
  src: url("./fonts/Beiruti-Bold.ttf") format("truetype");
  font-weight: 700;
}
