:root {
  --bg: #080711;
  --bg-soft: #110f1d;
  --panel: rgba(21, 19, 34, 0.92);
  --panel-strong: rgba(28, 24, 44, 0.96);
  --line: rgba(177, 129, 255, 0.18);
  --line-strong: rgba(205, 170, 255, 0.45);
  --text: #f6f0ff;
  --muted: #c9bfd8;
  --accent: #ba8cff;
  --accent-strong: #dfc3ff;
  --accent-warm: #f2b56b;
  --danger: #f29f96;
  --success: #8fddb3;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-height: 78px;
  --container: min(1120px, calc(100% - 2rem));
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top, rgba(132, 88, 222, 0.32), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(242, 181, 107, 0.12), transparent 18%),
    linear-gradient(180deg, #090710 0%, #0d0b19 45%, #07070d 100%);
  color: var(--text);
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid rgba(241, 200, 122, 0.85);
  outline-offset: 3px;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  font-family: Consolas, monospace;
  font-size: 0.95em;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #f3efe4;
  color: #11131b;
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.section {
  position: relative;
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 2rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(10, 9, 17, 0.86);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
h1,
h2,
h3,
.footer-title {
  font-family: "Cinzel", serif;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
  background: rgba(186, 140, 255, 0.15);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero-section {
  padding-top: 3.8rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 13, 36, 0.78), rgba(10, 8, 18, 0.24)),
    radial-gradient(circle at 75% 25%, rgba(186, 140, 255, 0.22), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.hero-media {
  display: grid;
  gap: 1.25rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1.05;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-art {
  width: min(100%, 520px);
  margin-bottom: 1rem;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 600;
}

.hero-description,
.section-heading p,
.card p,
.footer-copy,
.footer-meta p {
  color: var(--muted);
}

.hero-description {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-highlights,
.download-notes {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.hero-highlights li,
.download-notes li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.hero-highlights li::before,
.download-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 16px rgba(186, 140, 255, 0.45);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #7f55ca);
  color: #140d1e;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), #9970df);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: rgba(186, 140, 255, 0.12);
}

.button-small {
  padding: 0.65rem 1rem;
}

.button[disabled],
.doc-actions .button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.beta-note,
.media-placeholder-note,
.form-helper-text,
.form-status {
  font-size: 0.98rem;
}

.card {
  background: linear-gradient(180deg, rgba(26, 22, 39, 0.96), rgba(14, 12, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-showcase,
.video-card,
.download-intro-card,
.download-preview-card,
.story-overview-card,
.media-video-card,
.doc-card {
  padding: 1.2rem;
}

.hero-main-image,
.hero-poster-image,
.download-preview-image,
.gallery-image,
.doc-thumbnail {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.hero-showcase {
  overflow: hidden;
}

.hero-main-image {
  aspect-ratio: 16 / 10;
}

.hero-showcase-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.hero-poster-image {
  aspect-ratio: 3 / 4;
}

.hero-showcase-copy h2,
.download-preview-copy h3,
.section-mini-heading h3 {
  margin-top: 0;
}

.hero-showcase-copy p,
.download-preview-copy p {
  margin-bottom: 0;
}

.card-header,
.doc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header h2,
.card-header h3,
.doc-card h3,
.section-heading h2 {
  margin: 0;
}

.card-header p,
.section-mini-heading p {
  margin-bottom: 0;
}

.video-shell,
.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #090a10;
}

.media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08090c;
  object-fit: cover;
}

.media-placeholder-note {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.download-section {
  padding-top: 0;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
}

.download-intro-card,
.download-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-preview-image {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.story-overview-card {
  margin-bottom: 2rem;
}

.media-grid,
.docs-grid {
  display: grid;
  gap: 1.2rem;
}

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

.story-subsections {
  display: grid;
  gap: 2.2rem;
}

.story-copy {
  display: grid;
  gap: 0.6rem;
}

.section-mini-heading {
  margin-bottom: 1rem;
}

.media-section-block {
  margin-top: 2rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card .gallery-image {
  aspect-ratio: 16 / 10;
}

.gallery-copy,
.doc-card-body {
  padding: 1rem 0.15rem 0.2rem;
}

.gallery-copy h4,
.doc-card-body p,
.doc-card-body h3 {
  margin: 0 0 0.45rem;
}

.gallery-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(186, 140, 255, 0.14);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.doc-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.doc-thumbnail {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.02);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 15, 0.96);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 0;
}

.footer-title {
  margin: 0 0 0.35rem;
}

.footer-copy,
.footer-meta p {
  margin: 0;
}

.footer-meta {
  text-align: right;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 20, 38, 0.98), rgba(12, 11, 20, 0.98));
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1.4rem;
}

.download-form {
  display: grid;
  gap: 1rem;
}

.download-form label,
.checkbox-field span {
  color: var(--text);
  font-weight: 600;
}

.form-helper-text {
  margin: -0.2rem 0 0;
  color: var(--muted);
}

.form-disclaimer {
  margin: -0.35rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(186, 140, 255, 0.07);
  color: var(--muted);
}

.download-form input[type="text"],
.download-form input[type="email"],
.download-form input[type="date"] {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.download-form input:focus {
  outline: 2px solid rgba(203, 169, 111, 0.24);
  border-color: var(--line-strong);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-field input {
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

@media (max-width: 900px) {
  .hero-grid,
  .download-layout,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase-panel {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12, 14, 20, 0.98);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .card-header,
  .doc-card-header {
    flex-direction: column;
  }

  .hero-section {
    padding-top: 3rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .hero-actions,
  .doc-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .doc-actions .button {
    width: 100%;
  }

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

  .hero-grid {
    min-height: auto;
  }

  .hero-title-art {
    width: min(100%, 420px);
  }

  .hero-showcase,
  .video-card,
  .download-intro-card,
  .download-preview-card,
  .story-overview-card,
  .media-video-card,
  .doc-card {
    padding: 1rem;
  }

  .modal-panel {
    padding: 1.25rem;
  }
}
