/* ================================================================
   RuleScroll Landing — styles.css
   Premium dark atmospheric design
================================================================ */

/* ----------------------------------------------------------------
   1. Design Tokens
---------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-base:        #07070f;
  --bg-surface:     #0d0d1a;
  --bg-raised:      #151525;
  --bg-card:        #1a1a2e;
  --bg-parchment:   #f2e8d0;
  --bg-parchment-dk:#e0cfa8;

  --gold:           #c8a84b;
  --gold-light:     #e2cc7a;
  --gold-dim:       #7a6530;
  --gold-glow:      rgba(200, 168, 75, 0.15);
  --gold-border:    rgba(200, 168, 75, 0.25);

  --text-primary:   #e2d8c4;
  --text-secondary: #9a9080;
  --text-muted:     #56504a;
  --text-dark:      #1a1510;
  --text-parchment: #2a2010;

  --accent-magic:   #7060b0;
  --accent-success: #4a8c60;
  --accent-error:   #b04040;

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-gold:    rgba(200, 168, 75, 0.2);

  /* Typography */
  --font-display: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body:    'Crimson Pro', 'Palatino Linotype', Georgia, serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;

  /* Sizing */
  --container-w:  1100px;
  --header-h:     68px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold:  0 0 40px rgba(200, 168, 75, 0.1);
}

/* ----------------------------------------------------------------
   2. Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-light); }

button { cursor: pointer; }

.nav-link[aria-current="page"] {
  color: var(--gold);
}

/* ----------------------------------------------------------------
   3. Layout
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ----------------------------------------------------------------
   4. Typography Helpers
---------------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-style: italic;
}

/* ----------------------------------------------------------------
   5. Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a87c28 100%);
  color: #0a0a00;
  box-shadow: 0 2px 16px rgba(200, 168, 75, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 4px 24px rgba(200, 168, 75, 0.4);
  color: #0a0a00;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: rgba(200, 168, 75, 0.05);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-busy { display: none; }

.icon-tg {
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   6. Header
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  background: rgba(7, 7, 15, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.logo-link {
  flex-shrink: 0;
}
.logo-link picture {
  display: block;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-img--sm { height: 32px; }

.site-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
  color: var(--gold);
  background: rgba(200, 168, 75, 0.08);
}
.lang-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   7. Hero Section
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 15, 0.55) 0%,
    rgba(7, 7, 15, 0.45) 40%,
    rgba(7, 7, 15, 0.85) 85%,
    rgba(7, 7, 15, 1)    100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: rgba(226, 216, 196, 0.88);
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.brand {
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-subtitle .brand {
  font-size: 1.65em;
}
.section-title .brand {
  font-size: 1.5em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  transition: color 0.2s;
}
.hero-scroll:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ----------------------------------------------------------------
   8. Pain Point
---------------------------------------------------------------- */
.pain-point {
  background: var(--bg-surface);
}

.pain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}

.pain-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pain-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.pain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.pain-card--solution {
  background: linear-gradient(135deg, #12101e 0%, #1a1528 100%);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.pain-card--solution strong { color: var(--gold-light); }

/* ----------------------------------------------------------------
   9. Core Features — Book
---------------------------------------------------------------- */
.features {
  background: var(--bg-base);
}

.book {
  position: relative;
  max-width: 760px;
  margin: 48px auto 0;
  background: var(--bg-parchment);
  border-radius: var(--radius-lg);
  box-shadow:
    -6px 0 0 0 #c8a555,
    0 4px 32px rgba(0,0,0,0.6),
    inset 4px 0 16px rgba(0,0,0,0.08);
  overflow: hidden;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #a07828 0%, #c8a555 50%, #8a6520 100%);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.2);
  z-index: 2;
}

.book-tabs {
  display: flex;
  background: var(--bg-parchment-dk);
  border-bottom: 2px solid #c8a555;
  padding-left: 6px;
}
.book-tab {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6a5830;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid rgba(168, 120, 40, 0.2);
  position: relative;
}
.book-tab:last-child { border-right: none; }
.book-tab:hover { background: rgba(200,168,75,0.1); color: #3a2a10; }
.book-tab.active {
  background: var(--bg-parchment);
  color: #2a1a08;
  font-weight: 700;
}
.book-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--bg-parchment);
}

.book-body {
  position: relative;
  min-height: 280px;
}

.book-page {
  display: none;
  padding: 48px 56px 48px 62px;
  color: var(--text-parchment);
}
.book-page.active { display: block; }

.page-ornament {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(168, 120, 40, 0.3);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #2a1a08;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.page-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3a2a18;
}

/* ----------------------------------------------------------------
   10. Live example — rendered game logs
---------------------------------------------------------------- */
.demo {
  background: var(--bg-surface);
}
.demo .carousel {
  max-width: 720px;
  margin-top: 40px;
}
.carousel--logs .carousel-viewport {
  background: var(--bg-base);
  transition: height 0.35s ease;
}
.carousel--logs .carousel-track {
  align-items: flex-start;
}
.carousel--logs .carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----------------------------------------------------------------
   11. Waitlist Forms
---------------------------------------------------------------- */
.waitlist {
  background: var(--bg-base);
}

.waitlist-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 0;
  max-width: 600px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.waitlist-tab {
  flex: 1;
  padding: 14px 24px;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  border-right: 1px solid var(--border-gold);
}
.waitlist-tab:last-child { border-right: none; }
.waitlist-tab:hover {
  background: rgba(200, 168, 75, 0.06);
  color: var(--text-secondary);
}
.waitlist-tab.active {
  background: var(--gold-glow);
  color: var(--gold-light);
}

.waitlist-panel {
  display: none;
  max-width: 520px;
  margin: 40px auto 0;
}
.waitlist-panel.active { display: block; }

.panel-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  text-align: center;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 16px 6px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  padding-top: 22px;
  line-height: 1.5;
}

/* Label sits permanently at the top of the field (no floating overlap) */
.form-label {
  position: absolute;
  left: 16px;
  top: 4px;
  transform: scale(0.8);
  transform-origin: left top;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--gold-dim);
  pointer-events: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.form-input:focus ~ .form-label,
.form-textarea:focus ~ .form-label {
  color: var(--gold);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-check a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
.form-check a:hover { color: var(--text-secondary); }
.form-check.is-invalid {
  border-color: rgba(176, 64, 64, 0.55);
  background: rgba(176, 64, 64, 0.1);
  color: #e07070;
  animation: form-check-shake 0.35s ease;
}
.form-check.is-invalid a { color: #e07070; }
.form-check.is-invalid input[type="checkbox"] {
  outline: 2px solid #e07070;
  outline-offset: 2px;
}
@keyframes form-check-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-message {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  min-height: 0;
  transition: all 0.3s;
}
.form-message--success {
  background: rgba(74, 140, 96, 0.12);
  border: 1px solid rgba(74, 140, 96, 0.3);
  color: #7acc94;
}
.form-message--error {
  background: rgba(176, 64, 64, 0.1);
  border: 1px solid rgba(176, 64, 64, 0.3);
  color: #e07070;
}

/* Honeypot — hidden from humans, visible to dumb bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   11b. Cookie / Analytics Notice
---------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(13, 13, 26, 0.97);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 20px;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner .btn { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------------
   12. Build in Public
---------------------------------------------------------------- */
.bip {
  background: linear-gradient(180deg, var(--bg-base) 0%, #0e0b20 50%, var(--bg-base) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bip-inner {
  text-align: center;
  max-width: 680px;
}
.bip-inner .section-title { margin-bottom: 24px; }

.bip-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.bip-text + .bip-text {
  margin-top: -16px;
}
.bip-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------
   13. Artbook Carousel
---------------------------------------------------------------- */
.artbook {
  background: var(--bg-surface);
}
.artbook-caption {
  margin-bottom: 40px;
}

.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
}
.carousel-slide picture {
  display: block;
  width: 100%;
}
.artbook .carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 20px;
  background: linear-gradient(0deg, rgba(7,7,15,0.9) 0%, transparent 100%);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: rgba(226, 216, 196, 0.8);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 7, 15, 0.7);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover {
  background: rgba(200, 168, 75, 0.15);
  box-shadow: 0 0 16px rgba(200, 168, 75, 0.2);
}
.carousel-btn--prev { left: -24px; }
.carousel-btn--next { right: -24px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ----------------------------------------------------------------
   14. Footer
---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.footer-logo-link { flex-shrink: 0; }

.footer-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-link:hover { color: var(--text-secondary); }

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: right;
  margin-left: auto;
}

/* ----------------------------------------------------------------
   15. Privacy Page (used on privacy.html)
---------------------------------------------------------------- */
.privacy-page {
  min-height: 100vh;
  background: var(--bg-surface);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.privacy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gold);
  letter-spacing: 0.04em;
}
.privacy-body h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 12px;
  letter-spacing: 0.04em;
}
.privacy-body p,
.privacy-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.privacy-body ul {
  padding-left: 24px;
  margin-bottom: 12px;
}
.privacy-body a {
  color: var(--gold);
}
.legal-notice {
  margin: 16px 0 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-notice a { word-break: break-all; }
.privacy-meta,
.blog-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.blog-page {
  min-height: 100vh;
  background: var(--bg-surface);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.blog-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.blog-lead {
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.blog-empty {
  color: var(--text-secondary);
  font-style: italic;
}
.blog-card {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.blog-card time {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card h2 a { color: var(--text-primary); }
.blog-card h2 a:hover { color: var(--gold); }
.blog-card p { color: var(--text-secondary); }
.blog-content p,
.blog-content li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.blog-content a { color: var(--gold); }
.blog-content figure {
  margin: 8px 0 32px;
}
.blog-content .blog-cover {
  margin-top: 4px;
  margin-bottom: 32px;
}
.blog-content figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.blog-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-gold);
}

/* ----------------------------------------------------------------
   15b. 404
---------------------------------------------------------------- */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-base);
}
.error-logo { margin-bottom: 32px; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 16px;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.error-lead {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.error-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
}
.error-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.error-nav a:hover { color: var(--gold-light); }

/* ----------------------------------------------------------------
   16. Responsive — Tablet (≤ 900px)
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .book-page {
    padding: 36px 40px 36px 48px;
  }

  .carousel-btn--prev { left: -16px; }
  .carousel-btn--next { right: -16px; }
  .artbook .carousel-slide img { height: 400px; }
}

/* ----------------------------------------------------------------
   17. Responsive — Mobile (≤ 640px)
---------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .section { padding: 64px 0; }

  /* Header mobile */
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 7, 15, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    margin-left: 0;
    backdrop-filter: blur(12px);
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .nav-link {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 0.9rem;
  }

  .hamburger { display: flex; }

  /* Hero */
  .hero-content { padding-top: 32px; padding-bottom: 64px; }
  .hero-title { font-size: 1.22rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .btn {
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
    padding: 14px 18px;
    text-align: center;
  }
  .bip-inner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Book */
  .book { margin: 32px -24px 0; border-radius: 0; }
  .book-spine { display: none; }
  .book-tab { font-size: 0.62rem; padding: 10px 4px; letter-spacing: 0.02em; }
  .book-page { padding: 28px 24px; }
  .page-ornament { font-size: 2rem; }
  .page-title { font-size: 1.15rem; }

  /* Waitlist */
  .waitlist-tabs { flex-direction: column; border-radius: var(--radius); }
  .waitlist-tab { border-right: none; border-bottom: 1px solid var(--border-gold); }
  .waitlist-tab:last-child { border-bottom: none; }

  /* Carousel */
  .carousel-btn--prev { left: 8px; }
  .carousel-btn--next { right: 8px; }
  .artbook .carousel-slide img { height: 260px; }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-copy {
    align-self: flex-end;
    margin-left: 0;
  }
  .footer-cta { flex-direction: column; width: 100%; }
  .footer-cta .btn { width: 100%; justify-content: center; }
}

/* ----------------------------------------------------------------
   18. Reduced Motion
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .carousel-track { transition: none !important; }
}
