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

:root {
  --bg-dark: #e8c07a;
  --bg-section: #e8c07a;
  --bg-card: rgba(0, 0, 0, 0.08);
  --bg-card-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1a1a2e;
  --text-secondary: #3a3040;
  --text-muted: #6b5a50;
  --accent: #1a1a2e;
  --border: rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --max-width: 900px;
  --glow: rgba(255, 255, 255, 0.03);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    #5b7fa6 0%,
    #8a7a9b 15%,
    #c4887a 35%,
    #dba56a 55%,
    #e8c07a 75%,
    #e8c07a 100%
  );
  overflow: hidden;
}

#murmuration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bird-logo {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  z-index: 3;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

@keyframes bird-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 400;
  font-family: "Pacifico", cursive;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-subtitle {
  font-size: 13px;
  color: #4a9eff;
  font-weight: 500;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Inter', -apple-system, sans-serif;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* === Sections === */
section {
  padding: 80px 24px;
}

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

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.section-heading--cursive {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

.section-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 350;
  font-size: 1.05rem;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body--tight p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.section-body--half {
  max-width: 50%;
}

.section-body em {
  color: var(--text-primary);
  font-style: italic;
}

/* Alternating backgrounds */
.section-alt {
  background: var(--bg-section);
}

/* === Steps Grid === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: #2a2a2e;
  transform: translateY(-2px);
}

.step-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  color: var(--text-secondary);
  font-weight: 350;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* === Screenshot Placeholders === */
.screenshot-section {
  padding: 80px 24px;
}

.screenshot-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.screenshot-placeholder:hover {
  border-color: #333;
}

.screenshot-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}

.screenshot-placeholder-inner svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.screenshot-placeholder-inner span {
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.screenshot-placeholder--small {
  height: 240px;
}

/* === Story Blocks === */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-block--reverse {
  direction: rtl;
}

.story-block--reverse > * {
  direction: ltr;
}

.story-text .section-body {
  color: var(--text-secondary);
  font-weight: 350;
  font-size: 1.05rem;
  line-height: 1.6;
}

.story-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-illustration img {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0.75;
}

.story-illustration img[src$=".svg"] {
  filter: none;
}

.cta-body {
  color: var(--text-secondary);
  font-weight: 350;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* === CTA === */
.cta-section {
  text-align: center;
  padding: 160px 24px;
  background: var(--bg-dark);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #1a1a2e;
  color: #f4c87a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.cta-button:hover {
  background: #16213e;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text-primary);
}

/* === Fade-in animations === */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — cards */
.fade-in-stagger .step-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.visible .step-card {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger.visible .step-card:nth-child(1) { transition-delay: 0.05s; }
.fade-in-stagger.visible .step-card:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible .step-card:nth-child(3) { transition-delay: 0.15s; }
.fade-in-stagger.visible .step-card:nth-child(4) { transition-delay: 0.2s; }
.fade-in-stagger.visible .step-card:nth-child(5) { transition-delay: 0.25s; }
.fade-in-stagger.visible .step-card:nth-child(6) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 768px) {
  .story-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-block--reverse {
    direction: ltr;
  }

  .section-body--half {
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  section {
    padding: 100px 20px;
  }

  .screenshot-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

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

  .step-card {
    padding: 24px 20px;
  }

  section {
    padding: 80px 16px;
  }

  .screenshot-section {
    padding: 40px 16px;
  }

  .cta-section {
    padding: 100px 16px;
  }

  .hero {
    min-height: 500px;
  }

  .bird-logo {
    width: 36px;
    height: 36px;
    top: 20px;
    left: 20px;
  }

  .screenshot-placeholder {
    height: 240px;
  }

  .screenshot-placeholder--small {
    height: 180px;
  }
}

/* === Selection === */
::selection {
  background: rgba(26, 26, 46, 0.2);
  color: #1a1a2e;
}
