:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-soft: #171717;
  --text: #f7f3eb;
  --muted: #c9c2b4;
  --line: #303030;
  --accent: #f0c35a;
  --accent-strong: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.96)),
    url("../images/bg.jpg") center top / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0.48;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: var(--accent-strong);
}

a:hover,
a:focus {
  color: var(--accent);
}

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

.site-header {
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px 22px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 92px;
}

.brand span {
  display: block;
  line-height: 1.1;
  max-width: 260px;
}

.nav-toggle {
  display: none;
}

.nav-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 10px;
  width: 48px;
}

.nav-button span,
.nav-button::before,
.nav-button::after {
  background: var(--text);
  content: "";
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 100%;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: var(--text);
  color: #080808;
}

.hero {
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100svh - 96px);
  padding: 42px 22px 28px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
}

.hero-copy {
  padding: 12px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: 1.12rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 2.2vw, 1.32rem);
  margin: 20px 0 0;
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 8px;
  color: #060606;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button:hover,
.button:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #080808;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.hero-logo {
  background: #050505;
  padding: 0;
}

.hero-image {
  border-top: 1px solid var(--line);
}

.section {
  border-top: 1px solid var(--line);
  padding: 58px 22px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.section-title {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  margin-bottom: 28px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.content-panel {
  background: rgba(16, 16, 16, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 38px);
}

.about-text {
  columns: 2 320px;
  column-gap: 42px;
}

.about-text p:first-child {
  margin-top: 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

.feature {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 128px;
  padding: 20px;
}

.feature p {
  color: var(--muted);
  margin: 8px 0 0;
}

.image-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-strip figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.image-strip img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.image-link {
  display: block;
}

.image-link:hover img,
.image-link:focus img {
  opacity: 0.86;
}

.image-strip figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 12px 14px;
}

.form-shell {
  background: #fff;
  border-radius: 8px;
  min-height: 900px;
  overflow: hidden;
}

.form-shell iframe {
  border: 0;
  display: block;
  height: min(1600px, 180svh);
  max-width: 100%;
  width: 100%;
}

.terms-list p {
  margin: 0 0 18px;
}

.terms-list p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #030303;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 28px 22px;
  text-align: center;
}

.site-footer p {
  margin: 8px auto;
  max-width: 980px;
}

@media (max-width: 860px) {
  .nav-wrap {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand img {
    width: 64px;
  }

  .brand {
    flex: 1 1 220px;
    min-width: 0;
  }

  .brand span {
    max-width: 160px;
  }

  .nav-button {
    display: block;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    justify-content: stretch;
  }

  .main-nav a {
    background: var(--panel);
    display: block;
    width: 100%;
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .hero-grid,
  .section-title,
  .feature-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-media {
    order: -1;
    width: 100%;
  }

  .section {
    padding: 42px 18px;
  }

  .content-panel {
    padding: 20px;
  }

  .form-shell {
    min-height: 780px;
  }

  .form-shell iframe {
    height: 1450px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .nav-wrap,
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand span {
    font-size: 0.82rem;
    max-width: 130px;
  }

  .brand img {
    width: 54px;
  }

  .nav-button {
    height: 40px;
    width: 44px;
  }

  .hero,
  .section {
    width: 100%;
  }

  .cta-row {
    display: grid;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .hero-logo {
    padding: 6px;
  }
}
