/* ================================================================
   WeaveAI 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; }

/* Language: EN hidden by default, toggled via .is-en class on <html> */
html:not(.is-en) .lang-en { display: none; }
html.is-en .lang-ru { display: none; }

/* ----------------------------------------------------------------
   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-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;
}
.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;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.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;
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 120px;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(226, 216, 196, 0.88);
  max-width: 600px;
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.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: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  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 {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #12101e 0%, #1a1528 100%);
  border-color: var(--border-gold);
  color: var(--text-primary);
  font-size: 1.15rem;
  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 12px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  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. Game Log Mockup — Telegram-style
---------------------------------------------------------------- */
.demo {
  background: var(--bg-surface);
}

.chat-window {
  max-width: 640px;
  margin: 48px auto 0;
  background: #0e1621;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
}

/* Telegram header bar */
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #17212b;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tg-back {
  font-size: 1.3rem;
  color: #5eb5f9;
  cursor: default;
  flex-shrink: 0;
  line-height: 1;
}
.tg-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a7bd5 0%, #6a3de8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tg-chat-info { flex: 1; min-width: 0; }
.tg-chat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-chat-sub {
  font-size: 0.72rem;
  color: #7c8ea0;
}
.tg-more {
  color: #5eb5f9;
  font-size: 1.2rem;
  cursor: default;
  flex-shrink: 0;
}

/* Chat body */
.chat-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #0e1621;
}

/* Messages */
.msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 85%;
}
.msg + .msg { margin-top: 2px; }
.msg-gm { align-self: flex-start; }
.msg-player {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a7bd5, #6a3de8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 2px;
}
.msg-player .msg-avatar {
  background: linear-gradient(135deg, #2b5278, #1a3f5c);
}

.msg-bubble {
  padding: 8px 12px 6px;
  line-height: 1.55;
  font-size: 0.9rem;
  color: #e8e8e8;
  position: relative;
  word-break: break-word;
  border: none;
}
.msg-gm .msg-bubble {
  background: #182533;
  border-radius: 4px 12px 12px 12px;
}
.msg-player .msg-bubble {
  background: #2b5278;
  border-radius: 12px 12px 4px 12px;
  color: #fff;
}
.msg-bubble em {
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.msg-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5eb5f9;
  margin-bottom: 2px;
}
.msg-time {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
  margin-top: 3px;
}
.msg-player .msg-time { color: rgba(255,255,255,0.5); }

/* Dice roll — service message style */
.dice-plate {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(23, 33, 43, 0.95);
  border: 1px solid rgba(94, 181, 249, 0.15);
  border-radius: 20px;
  padding: 7px 18px;
  margin: 6px 0;
  font-size: 0.78rem;
  color: #7c8ea0;
}
.dice-icon {
  font-size: 1rem;
  color: #5eb5f9;
}
.dice-label {
  color: #7c8ea0;
  font-size: 0.78rem;
}
.dice-roll {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
}
.dice-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}
.dice-success {
  font-weight: 600;
  font-size: 0.72rem;
  color: #4dcd7f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(77, 205, 127, 0.4);
  border-radius: 4px;
  padding: 1px 7px;
}
.dice-plate--fail {
  border-color: rgba(249, 94, 94, 0.2);
}
.dice-plate--fail .dice-icon {
  color: #f95e5e;
}
.dice-fail {
  font-weight: 600;
  font-size: 0.72rem;
  color: #f95e5e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(249, 94, 94, 0.4);
  border-radius: 4px;
  padding: 1px 7px;
}

/* ----------------------------------------------------------------
   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-consent {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.form-consent a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
.form-consent a:hover { color: var(--text-secondary); }

.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;
}

/* ----------------------------------------------------------------
   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 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: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.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;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   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);
}
.privacy-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ----------------------------------------------------------------
   16. Responsive — Tablet (≤ 900px)
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pain-card--solution {
    grid-column: 1 / -1;
  }

  .book-page {
    padding: 36px 40px 36px 48px;
  }

  .carousel-btn--prev { left: -16px; }
  .carousel-btn--next { right: -16px; }
  .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: 48px; padding-bottom: 80px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Pain */
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .pain-card--solution { grid-column: 1; }

  /* Book */
  .book { margin: 32px -24px 0; border-radius: 0; }
  .book-spine { display: none; }
  .book-tab { font-size: 0.7rem; padding: 12px 8px; }
  .book-page { padding: 28px 24px; }
  .page-ornament { font-size: 2rem; }
  .page-title { font-size: 1.15rem; }

  /* Chat */
  .msg { max-width: 96%; }
  .chat-body { padding: 20px 16px; gap: 16px; }
  .dice-plate { font-size: 0.75rem; padding: 8px 14px; gap: 8px; }

  /* 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; }
  .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: flex-start;
  }
  .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; }
}
