:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #181b1f;
  --panel-strong: #20252a;
  --text: #f3f1ec;
  --muted: #b8b1a7;
  --line: #343a40;
  --accent: #d8b45f;
  --accent-2: #7eb7b1;
  --accent-3: #d26a5c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(16, 18, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
footer a:hover,
.scroll-link:hover {
  color: var(--accent);
}

.hero {
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 128px clamp(18px, 6vw, 88px) 54px;
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.92), rgba(16, 18, 20, 0.54) 48%, rgba(16, 18, 20, 0.18)),
    linear-gradient(0deg, rgba(16, 18, 20, 1), rgba(16, 18, 20, 0) 34%),
    url("media/poster.jpg") center / cover no-repeat;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 148px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 710px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2.8vw, 28px);
}

.scroll-link {
  width: fit-content;
  margin-top: 42px;
  color: var(--text);
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}

section {
  padding: 82px clamp(18px, 6vw, 88px);
}

.demo-section {
  background: #15181b;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.demo-video {
  display: block;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  background: #050607;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.video-summary {
  max-width: 1180px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
}

.overview-section {
  background: #101214;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  background: var(--line);
  border: 1px solid var(--line);
}

.overview-grid article {
  min-height: 240px;
  padding: 30px;
  background: var(--panel);
}

h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.overview-grid p,
.function-list p {
  margin: 0;
  color: var(--muted);
}

.function-section {
  background: #1b1a18;
}

.function-list {
  max-width: 1180px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.function-list div {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.function-list span {
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 88px);
  color: var(--muted);
  background: #0b0d0e;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 86svh;
    padding-top: 142px;
  }

  section {
    padding-block: 58px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid article {
    min-height: 0;
  }

  .function-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  footer {
    flex-direction: column;
  }
}
