/* ===========================================
   SHARED STYLES — Claude-inspired warm palette
   =========================================== */
:root {
  --bg-primary: #FAF6F1;
  --bg-secondary: #F5EDE4;
  --bg-card: #FFFFFF;
  --bg-dark-section: #1B1917;
  --bg-accent-soft: #FFF0E6;
  --bg-accent-blue: #EEF4F8;
  --bg-accent-green: #EDF5F0;

  --text-primary: #1A1612;
  --text-secondary: #6B5E52;
  --text-muted: #9C8E82;
  --text-on-dark: #F5EDE4;

  --accent-primary: #D4714E;
  --accent-secondary: #E8956A;
  --accent-warm: #C4956A;
  --accent-green: #5B8A72;
  --accent-blue: #4A7B9D;
  --accent-purple: #7B6B8A;

  --border-light: rgba(26, 22, 18, 0.08);
  --border-medium: rgba(26, 22, 18, 0.15);
  --shadow-sm: 0 1px 3px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 22, 18, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 22, 18, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 22, 18, 0.15);

  --font-display: 'Sora', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* ===========================================
   SLIDE SYSTEM
   =========================================== */
.slide {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 8vw, 8rem);
  overflow: hidden;
}

.slide.dark {
  background: var(--bg-dark-section);
  color: var(--text-on-dark);
}
.slide.dark h1, .slide.dark h2, .slide.dark h3 {
  color: var(--text-on-dark);
}
.slide.dark p, .slide.dark li {
  color: #C9BDB2;
}
.slide.dark .section-label {
  color: var(--accent-secondary);
}
.slide.dark .section-label::before {
  background: var(--accent-secondary);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.slide.visible .reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal:nth-child(6) { transition-delay: 0.55s; }
.reveal:nth-child(7) { transition-delay: 0.65s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.slide.visible .reveal-left {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.slide.visible .reveal-right {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================================
   COMPONENTS
   =========================================== */

/* Quote block */
.quote-block {
  position: relative;
  padding: 1.5rem 2rem;
  background: var(--bg-accent-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-primary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}
.quote-block.blue {
  background: var(--bg-accent-blue);
  border-left-color: var(--accent-blue);
}
.quote-block.green {
  background: var(--bg-accent-green);
  border-left-color: var(--accent-green);
}

/* Comparison table */
.compare-table {
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  text-align: left;
}
.compare-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.compare-table td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight {
  color: var(--accent-primary);
  font-weight: 600;
}
.compare-table .dim {
  color: var(--text-muted);
}

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stats */
.stat-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Icon list */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 700px;
  text-align: left;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}
.icon-list .li-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  margin-top: 0.15em;
}

/* Step flow */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  text-align: left;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.step-item:hover {
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}
.step-text {
  font-size: 1rem;
}

/* Tags */
.tag-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212, 113, 78, 0.08);
  border: 1px solid rgba(212, 113, 78, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
}
.tag.green {
  background: rgba(91, 138, 114, 0.08);
  border-color: rgba(91, 138, 114, 0.2);
  color: var(--accent-green);
}
.tag.blue {
  background: rgba(74, 123, 157, 0.08);
  border-color: rgba(74, 123, 157, 0.2);
  color: var(--accent-blue);
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Big number highlight */
.big-highlight {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  pointer-events: none;
}
.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-primary);
  top: -100px;
  right: -50px;
}
.blob-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-warm);
  bottom: -80px;
  left: -60px;
}
.blob-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-blue);
  top: 50%;
  right: 10%;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 9999;
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* Navigation */
.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  border: none;
}
.nav-dot.active {
  background: var(--accent-primary);
  transform: scale(1.6);
}
.nav-dot:hover:not(.active) {
  background: var(--accent-warm);
  transform: scale(1.3);
}

/* Top nav bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.top-nav .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.top-nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.top-nav .nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.top-nav .nav-links a:hover {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    gap: 1.5rem;
  }
  .top-nav .nav-links {
    display: none;
  }
  .nav-dots {
    right: 1rem;
  }
  .slide {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
  html { scroll-behavior: auto; }
}
