:root {
  color-scheme: dark;
  --background: #000;
  --surface: #151515;
  --surface-hover: #1c1c1c;
  --paper: #f2ede2;
  --paper-ink: #171714;
  --primary: #e1e0cc;
  --muted: #8b8b83;
  --line: rgba(225, 224, 204, 0.14);
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--primary);
  background: var(--background);
  font-family: "Almarai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
  border-radius: 4px;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  color: rgba(225, 224, 204, 0.68);
  font-size: 12px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(56px, 8vw, 140px);
  padding-block: 132px 80px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 28px 0 0;
  font-size: clamp(48px, 7.1vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero h1 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 600px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(225, 224, 204, 0.7);
  font-size: 11px;
}

.primary-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary);
  font-size: 13px;
}

.primary-link span,
.closing > a span {
  transition: transform 220ms ease;
}

.primary-link:hover span,
.closing > a:hover span {
  transform: translate(3px, 3px);
}

.mission-stage {
  width: min(100%, 440px);
  justify-self: end;
  animation: stage-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mission-card {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 22% 15%, rgba(255, 255, 255, 0.9), transparent 32%),
    var(--paper);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.58);
  transform: rotate(1.4deg);
}

.mission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background:
    repeating-linear-gradient(7deg, transparent 0 3px, rgba(48, 43, 35, 0.05) 4px),
    repeating-linear-gradient(97deg, transparent 0 5px, rgba(255, 255, 255, 0.18) 6px);
  mix-blend-mode: multiply;
}

.mission-number {
  position: relative;
  z-index: 1;
  font-family: "Instrument Serif", serif;
  font-size: 31px;
}

.mission-copy {
  position: relative;
  z-index: 1;
}

.mission-copy p {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.mission-copy span {
  display: block;
  margin-top: 13px;
  color: rgba(23, 23, 20, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.mission-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: #5f5f59;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.statement {
  padding-block: clamp(100px, 15vw, 210px);
  border-top: 1px solid var(--line);
}

.statement h2 {
  max-width: 1120px;
  margin: 36px 0 0;
  font-size: clamp(38px, 6.5vw, 90px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.065em;
}

.statement h2 span {
  color: #686861;
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.statement > p:last-child {
  max-width: 600px;
  margin: 46px 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.steps {
  padding-block: 110px 140px;
}

.steps-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 30px;
  align-items: start;
}

.steps-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 70px;
}

.step-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  transition: background-color 220ms ease, transform 220ms ease;
}

.step-card:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #65655f;
  font-size: 12px;
}

.step-card h3 {
  margin: auto 0 0;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.step-card p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.closing {
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding-block: 120px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 830px;
  margin: 30px 0 0;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.closing > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 32px 46px;
  border-top: 1px solid var(--line);
  color: #66665f;
  font-size: 11px;
}

.site-footer p {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-links a:hover {
  color: var(--primary);
}

.legal-page {
  color: #d8d7c7;
}

.legal-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.legal-header .nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--primary);
}

.legal-main {
  padding-block: 96px 130px;
}

.legal-hero {
  max-width: 980px;
}

.legal-hero h1 {
  margin: 28px 0 0;
  color: var(--primary);
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.legal-lead {
  max-width: 720px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  color: #66665f;
  font-size: 11px;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 82px;
}

.privacy-summary > div {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
}

.privacy-summary span {
  color: #5d5d57;
  font-size: 11px;
}

.privacy-summary strong {
  margin-top: auto;
  color: var(--primary);
  font-size: 19px;
  font-weight: 400;
}

.privacy-summary p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.terms-notice {
  max-width: 860px;
  margin-top: 72px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.terms-notice strong {
  color: var(--primary);
  font-size: 14px;
  font-weight: 400;
}

.terms-notice p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.terms-notice a,
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(225, 224, 204, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.legal-content {
  max-width: 860px;
  margin: 84px auto 0;
}

.legal-content section {
  padding-block: 54px;
  border-top: 1px solid var(--line);
}

.legal-content section:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 30px;
  color: var(--primary);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.legal-content h2 span {
  padding-top: 7px;
  color: #5f5f59;
  font-size: 11px;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 32px 0 10px 62px;
  color: #c3c2b5;
  font-size: 15px;
  font-weight: 400;
}

.legal-content p,
.legal-content ul {
  margin: 14px 0 0 62px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.legal-content ul {
  padding-left: 1.25em;
}

.legal-content li + li {
  margin-top: 9px;
}

.legal-content strong {
  color: #bbbbae;
  font-weight: 400;
}

.support-main {
  max-width: 760px;
}

.support-product-line {
  margin: 26px 0 0;
  color: #777770;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.support-faq {
  max-width: 760px;
}

.support-contact {
  margin-top: 92px;
  padding-block: 64px;
  border-block: 1px solid var(--line);
}

.support-contact h2 {
  margin: 24px 0 0;
  color: var(--primary);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.support-contact > p:not(.section-label, .support-address) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.support-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  margin-top: 34px;
  padding: 13px 16px;
  color: var(--paper-ink);
  background: var(--primary);
  font-size: 13px;
}

.support-mail-link span {
  transition: transform 220ms ease;
}

.support-mail-link:hover span {
  transform: translate(3px, -3px);
}

.support-address {
  margin: 18px 0 0;
  color: #87877f;
  font-size: 12px;
}

.support-details {
  max-width: 620px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.support-details p {
  margin: 0;
}

.support-details ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
}

::selection {
  color: #000;
  background: var(--primary);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-top: 132px;
  }

  .mission-stage {
    width: min(88%, 430px);
    justify-self: center;
  }

  .steps-heading {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-card {
    min-height: 280px;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-summary > div {
    min-height: 190px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-nav {
    min-height: 76px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero {
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .mission-stage {
    width: 94%;
  }

  .statement,
  .steps {
    padding-block: 96px;
  }

  .statement > p:last-child {
    margin-left: 0;
  }

  .step-grid {
    margin-top: 46px;
  }

  .closing {
    min-height: 480px;
    padding-block: 90px;
  }

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

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

  .legal-main {
    padding-block: 76px 96px;
  }

  .legal-hero h1 {
    font-size: clamp(52px, 18vw, 78px);
  }

  .privacy-summary,
  .terms-notice {
    margin-top: 54px;
  }

  .legal-content {
    margin-top: 60px;
  }

  .legal-content section {
    padding-block: 42px;
  }

  .legal-content h2 {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .legal-content h3,
  .legal-content p,
  .legal-content ul {
    margin-left: 44px;
  }

  .support-contact {
    margin-top: 70px;
    padding-block: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
