:root {
  --bg: #050607;
  --panel: #101214;
  --panel-soft: #151718;
  --fg: #efefef;
  --muted: #b7c0bd;
  --dim: #7e8885;
  --line: #2b3431;
  --green: #75f58d;
  --green-strong: #12f05b;
  --amber: #e1b04c;
  --red: #f05d55;
  --blue: #77d7ff;
  --display-font: 'Mares Display', 'Eurostile Extended Black', 'Eurostyle Extended Black', 'Arial Black', 'Trebuchet MS', 'Franklin Gothic Demi Cond', sans-serif;
  --logo-font: 'Trajan Pro 3', 'Trajan Pro', Cinzel, Constantia, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --body-font: Baskerville, 'Baskerville Old Face', 'Times New Roman', serif;
  --ui-font: Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Mares Display';
  src: url('../assets/fonts/eurostile-extended-black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 58% 38% at 64% 8%, rgba(74, 128, 98, 0.12), rgba(5, 6, 7, 0) 62%),
    linear-gradient(180deg, #090b0b 0%, var(--bg) 42%, #070808 100%);
  color: var(--fg);
  font-family: var(--body-font);
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  position: relative;
  display: inline-block;
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #beddea 0%, #a9cada 26%, #88b0c5 58%, #5f86a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.0048em rgba(151, 208, 236, 0.38);
  filter:
    drop-shadow(0 0 0.012em rgba(194, 230, 247, 0.2))
    drop-shadow(0 0 0.05em rgba(105, 178, 226, 0.13));
}

.brand::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: attr(data-text);
  color: rgba(98, 176, 230, 0.08);
  -webkit-text-fill-color: rgba(98, 176, 230, 0.08);
  filter: blur(0.055em);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  border: 1px solid transparent;
  padding: 7px 10px;
  color: rgba(238, 248, 241, 0.82);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  border-color: rgba(117, 245, 141, 0.38);
  color: var(--fg);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui-font);
  font-size: 0.78rem;
}

.language-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(117, 245, 141, 0.24);
  padding: 5px 9px;
  color: rgba(238, 248, 241, 0.82);
  text-decoration: none;
}

.language-link:hover,
.language-link[aria-current='true'] {
  border-color: rgba(117, 245, 141, 0.48);
  background: rgba(117, 245, 141, 0.1);
  color: var(--fg);
}

.flag {
  font-size: 1rem;
  line-height: 1;
}

main {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 28px 0 54px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--logo-font);
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin-bottom: 26px;
}

.brand-expansion {
  margin: 13px 0 26px;
  color: #f3fff5;
  font-family: var(--logo-font);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

.brand-lockup .brand-expansion {
  align-self: stretch;
  margin-bottom: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede,
.section.narrow p,
.split p,
.manual-hero .hero-lede {
  color: rgba(236, 244, 239, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 62ch;
}

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

.button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(117, 245, 141, 0.42);
  padding: 10px 15px;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: rgba(117, 245, 141, 0.16);
  color: #f3fff5;
}

.button-secondary,
.inline-link {
  color: rgba(238, 248, 241, 0.86);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(117, 245, 141, 0.26);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.58);
}

.hero-visual figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  line-height: 1.45;
}

.section {
  padding: 74px 0;
  border-top: 1px solid rgba(117, 245, 141, 0.12);
}

.section.narrow {
  max-width: 820px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 46px;
  align-items: start;
}

.surface-list,
.element-grid,
.manual-grid,
.manual-list {
  display: grid;
  gap: 14px;
}

.surface-list {
  grid-template-columns: 1fr;
}

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

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

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

.surface-list article,
.element-grid article,
.manual-grid article,
.manual-list article,
.safety-panel,
.alpha-note {
  border: 1px solid rgba(117, 245, 141, 0.16);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.78);
  padding: 18px;
}

.surface-list article {
  min-height: 112px;
}

.element-grid p,
.manual-grid p,
.manual-list p,
.surface-list p,
.check-list,
.number-list,
.manual-table {
  color: rgba(226, 234, 229, 0.78);
}

.trust-band {
  border-top-color: rgba(225, 176, 76, 0.25);
}

.check-list,
.number-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li + li,
.number-list li + li {
  margin-top: 10px;
}

.alpha-note {
  margin-bottom: 22px;
}

.manual .manual-hero {
  max-width: 860px;
  padding: 48px 0 42px;
}

.manual .manual-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
}

.safety-panel {
  border-color: rgba(225, 176, 76, 0.46);
  background:
    linear-gradient(90deg, rgba(225, 176, 76, 0.1), rgba(16, 18, 20, 0.82));
}

.safety-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.manual-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(117, 245, 141, 0.16);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.78);
}

.manual-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: var(--ui-font);
  font-size: 0.9rem;
  line-height: 1.5;
}

.manual-table th,
.manual-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(117, 245, 141, 0.12);
}

.manual-table th {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-table tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  padding: 34px 0 48px;
  color: var(--dim);
  font-family: var(--ui-font);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: rgba(117, 245, 141, 0.86);
}

.footer-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.footer-meta {
  margin-top: 4px;
  color: var(--dim);
}

.site-footer a {
  color: rgba(238, 248, 241, 0.78);
  text-decoration: none;
}

code,
td:first-child,
.manual-list article h3,
.element-grid article h3 {
  color: #f3fff5;
}

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

  .hero {
    min-height: 0;
  }

  .hero-visual {
    order: -1;
  }

  .element-grid,
  .manual-list,
  .manual-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .language-link {
    flex: 1;
    text-align: center;
  }

  .language-switcher {
    width: 100%;
  }

  .language-link {
    justify-content: center;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .hero-lede,
  .section.narrow p,
  .split p,
  .manual-hero .hero-lede {
    font-size: 1.05rem;
  }

  .section {
    padding: 52px 0;
  }

  .element-grid,
  .manual-list,
  .manual-list.compact {
    grid-template-columns: 1fr;
  }

  .button,
  .inline-link {
    width: 100%;
  }
}
