/* ===== Renaissance/Enlightenment Palette ===== */
:root {
  --color-bg: #0d0b0a;
  --color-bg-warm: #1a1614;
  --color-cream: #f5f0e6;
  --color-gold: #c9a227;
  --color-gold-light: #e8d48b;
  --color-burgundy: #722f37;
  --color-text: #e8e4dc;
  --color-text-muted: #9a9590;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Black marble texture */
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(40, 35, 32, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(50, 45, 40, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 70%, rgba(35, 30, 28, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(45, 40, 35, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(30, 25, 22, 0.4) 0%, transparent 40%),
    linear-gradient(135deg, #0d0b0a 0%, #151210 50%, #0d0b0a 100%);
  background-attachment: fixed;
}

body::-webkit-scrollbar {
  display: none;
}

/* ===== Layout ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 0.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Hero Section ===== */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-cream);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ===== Waitlist Form ===== */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 400px;
}

.email-input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--color-bg-warm);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 6px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input::placeholder {
  color: var(--color-text-muted);
}

.email-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.submit-btn {
  padding: 1rem 1.75rem;
  font-size: 1.32rem;
  font-family: var(--font-serif);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gold) 0%, #a88620 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.success {
  background: linear-gradient(135deg, #daa520 0%, #b8860b 100%); /* goldenrod */
  cursor: default;
}

.form-tagline {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-gold);
  opacity: 0.8;
}

/* ===== Phone Mockups Container ===== */
.hero-mockups {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.mockups-tagline {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* Transformation Chevron */
.transform-chevron {
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.35;
  font-weight: 100;
  line-height: 1;
  flex-shrink: 0;
  transform: scaleY(2.5);
}

.phone-mockup {
  width: 100%;
  max-width: 300px;
  max-height: calc(100vh - 6rem);
  aspect-ratio: 393 / 852; /* iPhone 17 Pro */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
}

/* ===== Telegram Mockup ===== */
.telegram-mockup {
  background: #17212b;
}

/* Telegram Header */
.tg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #232e3c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-avatar-group {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #7b68a6 0%, #5a4a7a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.tg-header-info {
  display: flex;
  flex-direction: column;
}

.tg-group-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.tg-members {
  color: #6d7f8f;
  font-size: 13px;
}

/* Telegram Messages */
.tg-messages {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.tg-messages::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.tg-message {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
}

.tg-message-other {
  background: #182533;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tg-message-self {
  background: #2b5278;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.tg-sender {
  display: block;
  color: #5eb5f7;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
}

.tg-message p {
  color: #f5f5f5;
  line-height: 1.45;
  margin: 0;
}

.tg-time {
  display: block;
  color: #6d7f8f;
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
}

/* Voice Message */
.tg-voice-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(94, 181, 247, 0.1);
  padding: 8px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.tg-play-btn {
  width: 32px;
  height: 32px;
  background: #5eb5f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.tg-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.tg-waveform span {
  width: 3px;
  background: #5eb5f7;
  border-radius: 2px;
  opacity: 0.7;
}

.tg-waveform span:nth-child(1) { height: 8px; }
.tg-waveform span:nth-child(2) { height: 14px; }
.tg-waveform span:nth-child(3) { height: 10px; }
.tg-waveform span:nth-child(4) { height: 18px; }
.tg-waveform span:nth-child(5) { height: 12px; }
.tg-waveform span:nth-child(6) { height: 20px; }
.tg-waveform span:nth-child(7) { height: 16px; }
.tg-waveform span:nth-child(8) { height: 22px; }
.tg-waveform span:nth-child(9) { height: 14px; }
.tg-waveform span:nth-child(10) { height: 18px; }
.tg-waveform span:nth-child(11) { height: 10px; }
.tg-waveform span:nth-child(12) { height: 16px; }
.tg-waveform span:nth-child(13) { height: 12px; }
.tg-waveform span:nth-child(14) { height: 8px; }
.tg-waveform span:nth-child(15) { height: 6px; }

.tg-duration {
  color: #5eb5f7;
  font-size: 12px;
  flex-shrink: 0;
}

/* Transcript Message */
.tg-message-transcript {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.15);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tg-message-transcript p {
  font-style: italic;
  color: #a8b4bf !important;
  font-size: 13px;
}

.tg-transcript-label {
  display: block;
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* Lucine Bot Message */
.tg-message-bot {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(114, 47, 55, 0.15) 100%);
  border: 1px solid rgba(201, 162, 39, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tg-bot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tg-bot-icon {
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0b0a;
  font-weight: 700;
  font-size: 11px;
}

.tg-message-bot .tg-sender {
  color: var(--color-gold);
  margin-bottom: 0;
}

.tg-articles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.tg-article-link {
  color: #5eb5f7;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-article-link::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ===== Wiki/Library PWA Mockup ===== */
.wiki-mockup {
  background: #faf8f5;
  color: #1a1614;
  position: relative;
}

.wiki-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.wiki-menu-btn {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  padding: 4px;
}

.wiki-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold);
}

.wiki-spacer {
  flex: 1;
}

.wiki-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wiki-content::-webkit-scrollbar {
  display: none;
}

.wiki-article {
  line-height: 1.6;
}

.wiki-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a1614;
  margin-bottom: 8px;
  line-height: 1.25;
}

.wiki-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #6b6560;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wiki-source {
  color: var(--color-burgundy);
}

.wiki-intro {
  font-size: 13px;
  color: #4a4540;
  border-left: 3px solid var(--color-gold);
  padding-left: 12px;
  margin-bottom: 20px;
  font-style: italic;
}

.wiki-section-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1614;
  margin: 16px 0 8px;
}

.wiki-article p {
  font-size: 12px;
  color: #3a3530;
  margin-bottom: 12px;
}

.wiki-related {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.wiki-related h3 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #6b6560;
  margin-bottom: 8px;
}

.wiki-related a {
  display: block;
  font-size: 12px;
  color: var(--color-burgundy);
  text-decoration: none;
  margin-bottom: 6px;
}

.wiki-related a:hover {
  text-decoration: underline;
}

/* Librarian FAB */
.wiki-fab {
  position: absolute;
  bottom: 20px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #a88620 100%);
  border: none;
  border-radius: 50%;
  color: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wiki-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.wiki-fab-tooltip {
  position: absolute;
  right: 56px;
  background: var(--color-bg);
  color: var(--color-cream);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wiki-fab:hover .wiki-fab-tooltip {
  opacity: 1;
}

/* ===== Three Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
}

.pillar-icon {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
  }
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 3rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-cream);
  text-align: center;
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gold);
}

.step p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-top: 4px;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  margin-top: auto;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-mockups {
    order: -1;
    flex-wrap: wrap;
  }

  .phone-mockup {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
