:root {
  --bg-1: #0f1114;
  --bg-2: #1b1f24;
  --bg-3: #232a31;
  --ink: #f1eee7;
  --muted: #c9c3b5;
  --accent: #c49a3a;
  --accent-2: #8a6a2f;
  --edge: #2e363f;
  --card: #14181d;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif 4", "Times New Roman", serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% 5%, rgba(196, 154, 58, 0.12), transparent 70%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

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

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
  -webkit-user-drag: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 20, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 36px;
}

.brand img {
  height: 130px;
  background: #f7f3e8;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(196, 154, 58, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -50px;
  width: 420px;
  height: 420px;
  background: conic-gradient(from 120deg, rgba(196, 154, 58, 0.2), transparent 60%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.tagline {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 5vw, 74px);
  letter-spacing: 0.05em;
  line-height: 0.95;
  margin: 14px 0 24px;
}

.subhead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(196, 154, 58, 0.14);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.image-stack {
  position: relative;
}

.image-stack img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 550px;
  max-height: 550px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.image-stack .tile {
  position: absolute;
  bottom: -24px;
  right: -12px;
  padding: 16px;
  background: rgba(20, 24, 29, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.grid-3 {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.grid-2 {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.logo-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.logo-card {
  background: rgba(20, 24, 29, 0.9);
  border-radius: var(--radius);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.logo-card a {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo-card a:hover {
  transform: translateY(-4px);
}

.logo-card h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 36px;
}

.logo-card p {
  margin: 0;
  font-size: 20px;
  color: var(--muted);
}

.logo-card img {
  max-height: 250px;
  width: auto;
  background: #f8f4ea;
  padding: 24px 32px;
  border-radius: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.card img {
  width: 100%;
  max-width: 350px;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.card h3 {
  margin-top: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 24px;
}

.list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.banner {
  background: linear-gradient(120deg, rgba(196, 154, 58, 0.15), rgba(21, 25, 30, 0.95));
  border: 1px solid rgba(196, 154, 58, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.book {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book img {
  border-radius: 12px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 280px;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.book h3 {
  margin: 10px 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 22px;
  line-height: 1.3;
}

.book .subhead {
  margin: 5px 0;
  font-size: 15px;
}

.form-wrap {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agreement-cover {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(196, 154, 58, 0.22);
  background:
    radial-gradient(circle at top right, rgba(196, 154, 58, 0.16), transparent 45%),
    linear-gradient(135deg, rgba(17, 20, 24, 0.98), rgba(12, 14, 17, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.agreement-cover__text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}

.agreement-cover__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.agreement-cover__stats div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.agreement-cover__stats strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 24px;
  margin-bottom: 4px;
}

.agreement-cover__stats span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.agreement-form-title {
  margin: 24px 0 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 28px;
}

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

.agreement-form > div,
.agreement-form__full,
.agreement-form__submit {
  grid-column: span 1;
}

.agreement-form__full,
.agreement-form__submit {
  grid-column: 1 / -1;
}

.agreement-form__submit {
  justify-self: start;
  margin-top: 4px;
}

.agreement-preview {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.agreement-preview__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.agreement-preview__header h3,
.agreement-modal__header h2 {
  margin: 6px 0 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 30px;
}

.agreement-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

.agreement-preview__copy,
.agreement-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.agreement-preview__thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.agreement-preview__thumb img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.agreement-preview__thumb:hover img {
  transform: translateY(-2px);
}

.agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.agreement-modal.is-open {
  display: block;
}

.agreement-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.82);
  backdrop-filter: blur(8px);
}

.agreement-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  max-height: 90vh;
  margin: 5vh auto;
  overflow: auto;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.98), rgba(13, 16, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.agreement-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.agreement-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.agreement-modal__content {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(196, 154, 58, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agreement-modal__content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.agreement-modal__actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.agreement-modal__content::before {
  content: "Document Preview";
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.form-wrap img {
  width: 100%;
  max-width: 380px;
  max-height: 380px;
  height: auto;
}

.media-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.media-card video {
  width: 100%;
  border-radius: 14px;
  display: block;
}

form {
  display: grid;
  gap: 16px;
}

label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 12, 0.8);
  color: var(--ink);
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.footer {
  padding: 50px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .nav {
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 60px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    height: 44px;
  }

  .banner {
    padding: 24px;
  }

  .agreement-preview__header,
  .agreement-modal__header {
    flex-direction: column;
  }

  .agreement-modal__dialog {
    width: 94vw;
    margin: 3vh auto;
    padding: 18px;
  }

  .agreement-modal__actions {
    flex-direction: column;
  }

  .agreement-form {
    grid-template-columns: 1fr;
  }

  .agreement-form__full,
  .agreement-form__submit {
    grid-column: auto;
  }
}
