@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Book.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #d60a0a;
  --red-dark: #9f0000;
  --ink: #201e1e;
  --ink-soft: #303030;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --line: #dedede;
  --muted: #5d6570;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Gotham", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffb3b3;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img { width: 210px; height: 28px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.primary-nav a,
.language-link {
  position: relative;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: .92rem;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.language-link:hover { color: #fff; }

.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 3px;
  background: var(--red);
}

.language-link {
  margin-left: 6px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.22);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  color: white;
  background:
    radial-gradient(circle at 18% 38%, rgba(255,255,255,.08), transparent 33%),
    linear-gradient(110deg, #171616 0%, #262323 48%, #181717 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  left: 7%;
  bottom: -145px;
  width: 280px;
  height: 500px;
  transform: skewY(-18deg);
  border: 1px solid rgba(255,255,255,.19);
  border-bottom: 0;
  background: linear-gradient(145deg, rgba(214,10,10,.92), rgba(159,0,0,.38));
  clip-path: polygon(48% 0, 100% 42%, 100% 100%, 0 100%);
}

.hero::after {
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(90deg, transparent 0 75%, rgba(255,255,255,.18) 75% calc(75% + 1px), transparent calc(75% + 1px)),
    linear-gradient(45deg, transparent 0 72%, rgba(255,255,255,.12) 72% calc(72% + 1px), transparent calc(72% + 1px));
  background-size: 220px 100%, 440px 440px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  min-height: 530px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 70px;
  align-items: center;
}

.hero-kicker {
  align-self: end;
  margin-bottom: 72px;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-copy { max-width: 790px; padding: 72px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--red);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--red); }

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.1vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero h1 { color: #fff; }

.hero-lead {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button,
button.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 22px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.45); }
.button.secondary:hover { border-color: white; background: rgba(255,255,255,.08); }
.button.ghost { background: transparent; color: var(--red); }

.section { padding: 88px 0; }
.section.mist { background: var(--mist); }
.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.narrow { max-width: 820px; }

.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.5vw, 3rem); text-transform: uppercase; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

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

.card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: white;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 18px 42px rgba(32,30,30,.09); }
.card-index { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
.card h3 { margin: 28px 0 12px; font-size: 1.3rem; text-transform: uppercase; }
.card p { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.card-link { margin-top: auto; color: var(--red); font-weight: 700; font-size: .88rem; }

.app-intro { display: grid; grid-template-columns: 180px 1fr; gap: 54px; align-items: center; }
.app-icon { width: 180px; height: 180px; border-radius: 38px; box-shadow: 0 20px 50px rgba(32,30,30,.18); }
.app-intro h2 { margin-bottom: 14px; font-size: clamp(2rem,4vw,3.2rem); text-transform: uppercase; }

.legal-hero { padding: 74px 0 62px; background: var(--ink); color: white; }
.legal-hero h1 { max-width: 900px; font-size: clamp(2.2rem,5vw,4.2rem); color: white; }
.legal-hero p { max-width: 800px; margin: 0; color: rgba(255,255,255,.68); font-size: 1.08rem; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  align-items: start;
}

.legal-copy h2 { margin: 54px 0 18px; font-size: 1.62rem; text-transform: uppercase; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 32px 0 10px; font-size: 1.08rem; }
.legal-copy p, .legal-copy li { color: #4a4a4a; }
.legal-copy ul, .legal-copy ol { padding-left: 22px; }
.legal-copy li + li { margin-top: 9px; }
.legal-copy a { color: var(--red-dark); text-underline-offset: 3px; }

.legal-meta {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-top: 4px solid var(--red);
  background: var(--mist);
}
.legal-meta strong { display: block; margin-bottom: 6px; color: var(--ink); }
.legal-meta p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.legal-meta a { color: var(--red-dark); }

.notice {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--red);
  background: #fff4f4;
}
.notice strong { color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { position: relative; min-height: 46px; padding-left: 58px; }
.steps li + li { margin-top: 22px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-weight: 700;
}

.form-card { margin-top: 30px; padding: 30px; background: var(--mist); border-top: 4px solid var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c6c6c6;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 112px; resize: vertical; }
.field-hint { margin: 0; color: var(--muted); font-size: .82rem; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; color: var(--muted); font-size: .9rem; }

.contact-strip { background: var(--red); color: white; }
.contact-strip .container { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-strip h2 { margin: 0; color: white; font-size: clamp(1.6rem,3vw,2.5rem); text-transform: uppercase; }
.contact-strip p { margin: 8px 0 0; color: #fff; }
.contact-strip .button { border-color: white; background: white; color: var(--red-dark); }

.site-footer { padding: 58px 0 30px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 60px; }
.footer-brand img { width: 210px; height: 28px; }
.footer-brand p { max-width: 400px; color: rgba(255,255,255,.62); }
.site-footer h2 { margin-bottom: 16px; color: white; font-size: 1rem; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact p { margin: 0 0 16px; color: rgba(255,255,255,.56); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.48); font-size: .82rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 0; }
  .primary-nav a[aria-current="page"]::after { right: auto; bottom: 5px; width: 36px; }
  .language-link { margin: 8px 0 0; padding: 13px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-kicker { display: none; }
  .hero-copy { margin-left: 22%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-meta { position: static; }
}

@media (max-width: 680px) {
  .nav-wrap { width: min(calc(100% - 28px), var(--max)); min-height: 76px; }
  .brand img { width: 180px; height: auto; }
  .primary-nav { top: 76px; }
  .hero, .hero-inner { min-height: 560px; }
  .hero::before { left: -86px; bottom: -190px; width: 260px; opacity: .72; }
  .hero-copy { margin-left: 0; padding: 72px 0; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .app-intro { grid-template-columns: 1fr; gap: 30px; }
  .app-icon { width: 120px; height: 120px; border-radius: 27px; }
  .legal-hero { padding: 54px 0; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .contact-strip .container { padding: 38px 0; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .contact-strip, .site-footer, .hero-actions, .menu-toggle { display: none !important; }
  .legal-hero { padding: 0 0 24px; background: white; color: black; }
  .legal-hero h1, .legal-hero p { color: black; }
  .section { padding: 24px 0; }
  .legal-layout { display: block; }
  .legal-meta { margin-top: 30px; }
  a { color: black !important; text-decoration: none !important; }
}
