:root {
  --teal:       #0B8C80;
  --teal-dark:  #08504A;
  --teal-light: #D0EEEA;
  --teal-mid:   #1aada0;
  --ink:        #0f1a19;
  --ink-2:      #2a3836;
  --ink-3:      #4a5c5a;
  --ink-4:      #7a908e;
  --paper:      #faf9f7;
  --paper-warm: #f4f1ec;
  --rule:       #e2ddd7;
  --gold:       #b8973a;
  --gold-light: #f5edda;
  --red-soft:   #c0392b;

  --page-max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-seal {
  width: 28px;
  height: 28px;
  object-fit: cover;
  margin-right: 7px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.nav-link:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav-link.active { background: var(--teal); color: #fff; }

/* Hero Sections */
.hero-left { position: relative; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

h1.headline {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1.headline em {
  font-style: italic;
  color: var(--teal);
}

.subhead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 2rem;
  max-width: 420px;
}

.detail {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--teal-light);
  padding-left: 1rem;
}

/* Forms */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

input[type="email"], input[type="text"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

input[type="email"]:focus, input[type="text"]:focus {
  border-color: var(--teal);
}

input::placeholder { color: var(--ink-4); }
input.error { border-color: var(--red-soft); }

.btn-primary {
  padding: 0.85rem 1.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.75rem;
  color: var(--ink-4);
  line-height: 1.5;
}

.success-msg {
  display: none;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--teal-dark);
  font-weight: 500;
  max-width: 420px;
}

.success-msg.visible { display: block; }

/* Scroll hint */
.scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  animation: fadeIn 1s ease 0.5s both;
}

.scroll-hint-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.scroll-hint-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--ink-4);
  border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

/* Cast Visual */
.cast-visual {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 16px 60px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.cast-visual-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 1.25rem;
}

.cast-book-title {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.2rem;
}

.cast-book-author {
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cast-roles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cast-role {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  transition: border-color 0.2s;
  animation: fadeSlide 0.5s ease both;
}

.cast-role:nth-child(1) { animation-delay: 0.1s; }
.cast-role:nth-child(2) { animation-delay: 0.2s; }
.cast-role:nth-child(3) { animation-delay: 0.3s; }
.cast-role:nth-child(4) { animation-delay: 0.4s; }
.cast-role:nth-child(5) { animation-delay: 0.5s; }

.cast-role.filled { border-color: var(--teal-light); }
.cast-role.open { border-color: var(--rule); border-style: dashed; }

.role-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.role-info { min-width: 0; }

.role-character {
  font-size: 0.72rem;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 2px;
}

.role-actor {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-actor.empty {
  color: var(--ink-4);
  font-weight: 400;
  font-style: italic;
}

.role-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-check svg { width: 11px; height: 11px; }

.role-open-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-4);
  flex-shrink: 0;
}

.cast-cta-strip {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cast-progress-text {
  font-size: 0.75rem;
  color: var(--ink-4);
}

.cast-progress-text strong {
  color: var(--teal-dark);
  font-weight: 600;
}

.cast-btn-mini {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0.4;
}

/* How It Works Section */
.how-section {
  background: var(--paper-warm);
  color: var(--ink);
  padding: 5rem 2rem;
  border-top: none;
}

.how-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.how-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

h2.how-headline {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 3rem;
  max-width: 520px;
  line-height: 1.2;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-step { position: relative; }

.step-num {
  font-family: 'Lora', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.step-body {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.8rem;
  line-height: 1.7;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* Mobile Visual Sections */
.mobile-visual-section {
  display: none;
  padding: 2rem;
  background: var(--paper-warm);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .actor-hero {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .hero-right {
    display: none;
  }

  .mobile-visual-section {
    display: block;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 0 1rem;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  h1.headline {
    font-size: 2rem;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }
}
