:root {
  color-scheme: dark;
  --bg: #2f1510;
  --bg-deep: #1f0e0b;
  --surface: rgba(255, 248, 236, 0.08);
  --surface-strong: rgba(255, 248, 236, 0.14);
  --text: #fff8ec;
  --muted: rgba(255, 248, 236, 0.72);
  --faint: rgba(255, 248, 236, 0.52);
  --line: rgba(255, 248, 236, 0.18);
  --gold: #d4a65d;
  --gold-soft: #f3d7a6;
  --ink: #190b08;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 149, 82, 0.22), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

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

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

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(31, 14, 11, 0.74);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--text);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

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

.button.primary {
  background: var(--text);
  color: var(--ink);
  border-color: transparent;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.hero-card > img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(31, 14, 11, 0.72);
  backdrop-filter: blur(16px);
}

.hero-badge img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.hero-badge strong {
  display: block;
  font-size: 18px;
}

.hero-badge span {
  color: var(--muted);
  font-size: 14px;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2,
.doc h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.feature {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.feature span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

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

.showcase {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: stretch;
}

.chapter-art,
.screen-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.chapter-art img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center 26%;
}

.screen-art {
  display: grid;
  place-items: center;
  padding: 20px;
}

.screen-art img {
  width: 100%;
  border-radius: 14px;
}

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

.legal-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.legal-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.legal-card a {
  color: var(--gold-soft);
  font-weight: 760;
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.doc-wrap {
  padding: 44px 0 72px;
}

.doc {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.09);
}

.doc .meta {
  margin: 10px 0 30px;
  color: var(--muted);
}

.doc h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.26;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.doc p {
  margin: 0 0 14px;
  color: rgba(255, 248, 236, 0.86);
}

.doc ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(255, 248, 236, 0.84);
}

.doc li {
  margin: 6px 0;
}

.doc a {
  color: var(--gold-soft);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-divider {
  height: 1px;
  margin: 38px 0;
  background: var(--line);
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .hero {
    min-height: 0;
    padding: 40px 0 60px;
  }

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

  .hero-card,
  .hero-card > img {
    min-height: 420px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .shell,
  .doc {
    width: min(100% - 28px, 1120px);
  }

  .hero-card,
  .hero-card > img {
    min-height: 360px;
    border-radius: 20px;
  }

  .hero-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }
}
