/* ============================================
   SiuClaw Landing Page — Design Tokens & Styles
   Art direction: Tech-meets-arcade, playful but professional
   Palette: Deep navy + electric coral accent + warm neutrals
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Noto Sans TC', sans-serif;
  --font-body: 'Satoshi', 'Noto Sans TC', sans-serif;
}

/* ============================================
   LIGHT MODE (default)
   Navy + coral on warm white
   ============================================ */
:root, [data-theme="light"] {
  --color-bg:             #faf9f7;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f4f1;
  --color-surface-offset: #efeee9;
  --color-divider:        #e0ded8;
  --color-border:         #d4d1ca;

  --color-text:           #1a1a2e;
  --color-text-muted:     #6b6b80;
  --color-text-faint:     #a5a5b5;
  --color-text-inverse:   #faf9f7;

  /* Primary: electric coral / orange-red */
  --color-primary:        #e84530;
  --color-primary-hover:  #d63a27;
  --color-primary-active: #b83020;
  --color-primary-highlight: #fde8e4;

  /* Secondary: deep navy */
  --color-navy:           #1a1a2e;
  --color-navy-light:     #2d2d4a;

  /* Accent: golden */
  --color-accent:         #f5a623;
  --color-accent-hover:   #e09515;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #0f0f1a;
  --color-surface:        #171728;
  --color-surface-2:      #1e1e32;
  --color-surface-offset: #141425;
  --color-divider:        #2a2a40;
  --color-border:         #35355a;

  --color-text:           #e8e8f0;
  --color-text-muted:     #8a8aa0;
  --color-text-faint:     #55556e;
  --color-text-inverse:   #0f0f1a;

  --color-primary:        #ff6b54;
  --color-primary-hover:  #ff8570;
  --color-primary-active: #e84530;
  --color-primary-highlight: #2a1a18;

  --color-navy:           #e8e8f0;
  --color-navy-light:     #c0c0d0;

  --color-accent:         #f5b84a;
  --color-accent-hover:   #f5c870;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f0f1a;
    --color-surface:        #171728;
    --color-surface-2:      #1e1e32;
    --color-surface-offset: #141425;
    --color-divider:        #2a2a40;
    --color-border:         #35355a;
    --color-text:           #e8e8f0;
    --color-text-muted:     #8a8aa0;
    --color-text-faint:     #55556e;
    --color-text-inverse:   #0f0f1a;
    --color-primary:        #ff6b54;
    --color-primary-hover:  #ff8570;
    --color-primary-active: #e84530;
    --color-primary-highlight: #2a1a18;
    --color-navy:           #e8e8f0;
    --color-navy-light:     #c0c0d0;
    --color-accent:         #f5b84a;
    --color-accent-hover:   #f5c870;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--color-primary-hover);
}

.nav__theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.nav__theme-toggle:hover {
  color: var(--color-text);
}

.nav__mobile-toggle {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
  }
  .nav__links.active { display: flex; }
  .nav__mobile-toggle { display: flex; align-items: center; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero__visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    oklch(from var(--color-primary) l c h / 0.06),
    oklch(from var(--color-accent) l c h / 0.04)
  );
}

/* Chat simulation inside the card */
.chat-demo {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.chat-demo__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.chat-demo__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
}

.chat-demo__name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.chat-demo__status {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.chat-msg--user {
  align-items: flex-end;
}

.chat-msg__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  max-width: 80%;
  line-height: 1.5;
}

.chat-msg--bot .chat-msg__bubble {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-msg--user .chat-msg__bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-msg__time {
  font-size: 11px;
  color: var(--color-text-faint);
  padding-inline: var(--space-1);
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__visual-card { max-width: 360px; margin-inline: auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(from var(--color-primary) l c h / 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
}

.btn--outline:hover {
  border-color: oklch(from var(--color-text) l c h / 0.3);
  background: oklch(from var(--color-text) l c h / 0.04);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  padding: var(--space-12) 0;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stats__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 55ch;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Feature highlight — large card */
.feature-highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.feature-highlight__content {
  padding: var(--space-8);
}

.feature-highlight__visual {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
  overflow: hidden;
}

@media (max-width: 768px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature-highlight {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.pricing-card__price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__period {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card__cta {
  width: 100%;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
}

@media (max-width: 768px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-16);
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: oklch(from var(--color-primary) l c h / 0.15);
  line-height: 1;
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}

.faq__list {
  max-width: var(--content-default);
  margin-inline: auto;
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
}

.faq__item {
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.cta-section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 45ch;
  margin-inline: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.6;
  max-width: 30ch;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer__attribution a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }

/* Chat typing animation */
@keyframes typing {
  0%, 60% { opacity: 0.3; }
  30% { opacity: 1; }
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
