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

@font-face {
  font-family: "Domine";
  src: url("fonts/Domine-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("fonts/RedHatDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("fonts/RedHatDisplay-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-alt: #f5f2ea;
  --primary: #0a1428;
  --primary-hover: #0f1d3a;
  --accent: #8b6f1f;
  --text: #0a1428;
  --muted: #6b6757;
  --border: #ddd6c2;
  --border-strong: #bdb18e;
  --success: #1f7a4d;
  --danger: #b43838;
  --shadow: 0 24px 70px rgba(10, 20, 40, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Red Hat Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 234, 0.65)),
    repeating-linear-gradient(90deg, rgba(10, 20, 40, 0.035) 0, rgba(10, 20, 40, 0.035) 1px, transparent 1px, transparent 72px);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(221, 214, 194, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: min(260px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

.language-menu.is-open {
  display: grid;
}

.language-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a:focus {
  background: var(--surface-alt);
  color: var(--text);
}

.hero,
.section,
.final-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.82fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 7vw, 82px) 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Domine", Georgia, serif;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-hover);
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-facts div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(221, 214, 194, 0.75);
  border-radius: var(--radius-md);
}

.hero-facts dt {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 620px;
}

.phone-shell {
  width: min(360px, 82vw);
  padding: 12px;
  border: 1px solid rgba(10, 20, 40, 0.16);
  border-radius: 42px;
  background: #111827;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-shell picture {
  display: block;
}

.phone-shell img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--surface-alt);
}

.measurement-card {
  position: absolute;
  right: 0;
  bottom: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 16px;
  border: 1px solid rgba(221, 214, 194, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 50px rgba(10, 20, 40, 0.12);
  backdrop-filter: blur(12px);
}

.measurement-card span {
  color: var(--muted);
}

.measurement-card strong {
  color: var(--success);
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: var(--primary);
  color: #fff;
}

.band h2,
.band h3,
.band .eyebrow {
  color: #fff;
}

.band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.body-copy,
.privacy-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

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

.feature-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.checkmark {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, #fff 43% 55%, transparent 56%),
    var(--success);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.document-row span {
  width: 28px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: linear-gradient(180deg, #fff 0 54%, var(--surface-alt) 55%);
}

.document-row p {
  margin: 0;
  font-weight: 700;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: #ece6d7;
}

.integrity-panel {
  display: grid;
  gap: 12px;
}

.integrity-panel div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.integrity-panel strong {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
}

.integrity-panel span {
  font-weight: 700;
}

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

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.final-cta {
  margin-bottom: 64px;
  padding: clamp(34px, 6vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(10, 20, 40, 0.08);
}

.final-cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.legal-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: color 0.15s, background 0.15s;
}

.legal-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 920px) {
  .hero,
  .split,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-copy strong {
    max-width: 150px;
    overflow-wrap: anywhere;
  }

  .language-toggle {
    max-width: 150px;
  }

  .language-toggle span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-facts,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .phone-shell {
    width: min(310px, 86vw);
  }

  .measurement-card {
    left: 0;
    right: auto;
    bottom: 10px;
  }

  .site-footer {
    display: grid;
  }
}
