:root {
  color-scheme: dark;
  --ink: #f7f1e8;
  --muted: #b2a79a;
  --paper: #050509;
  --panel: rgba(15, 13, 16, 0.72);
  --line: rgba(247, 241, 232, 0.16);
  --gold: #eadcc5;
  --soft-gold: #f1e7d8;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(5, 5, 9, 0.82), rgba(5, 5, 9, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: var(--soft-gold);
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(247, 241, 232, 0.78);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  border-color: var(--line);
  background: rgba(247, 241, 232, 0.07);
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 7vw, 108px) 72px;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.95) 0%, rgba(5, 5, 9, 0.76) 42%, rgba(5, 5, 9, 0.18) 100%),
    url("assets/couverture-maligoshik.png") right center / cover no-repeat;
  box-shadow: inset 0 -180px 140px rgba(5, 5, 9, 0.8);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(247, 241, 232, 0.76);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  border-color: transparent;
  background: var(--soft-gold);
  color: var(--paper);
}

.section {
  padding: 82px clamp(20px, 7vw, 108px);
}

.section-title {
  max-width: 800px;
}

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

.feature-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid strong {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-grid p,
.application-band p {
  color: var(--muted);
  line-height: 1.6;
}

.application-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(234, 220, 197, 0.08), rgba(255, 255, 255, 0.02));
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 7vw, 108px);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-header,
  nav,
  .application-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: absolute;
  }

  .hero {
    min-height: 780px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(5, 5, 9, 0.18), rgba(5, 5, 9, 0.92) 74%),
      url("assets/couverture-maligoshik.png") center top / cover no-repeat;
  }

  nav {
    gap: 6px;
  }

  .feature-grid,
  .application-band {
    grid-template-columns: 1fr;
  }
}
