/* ── Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-brown: #8b5528;
  --color-brown-light: rgba(139, 85, 40, 0.85);
  --color-gold: #d9a857;
  --color-cream: #fff0b3;
  --color-text: rgba(60, 40, 20, 0.85);
  --color-text-light: rgba(80, 55, 30, 0.65);
  --color-dark-bar: #1a1a1a;
}

html, body {
  font-family: var(--font);
  overflow: hidden;
  background: #000;
  color: #333;
  height: 100%;
  width: 100%;
}

/* ── Three.js Canvas ────────────────────────────────────── */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 1s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ffcc02);
  border-radius: 2px;
  transition: width 0.1s ease-out;
}

.progress-percentage {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 10px;
}

.loading-text {
  font-size: 1.25rem;
  color: rgba(255, 240, 179, 0.7);
  font-weight: 300;
  text-align: center;
  line-height: 1.5;
}

/* ── Navigation Dots ────────────────────────────────────── */
.nav-dots {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  gap: 10px;
}

.nav-dots__dot {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(120, 80, 40, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.nav-dots__dot.active {
  background: rgba(139, 85, 40, 0.7);
  border-color: rgba(139, 85, 40, 0.7);
}

.nav-dots__dot:hover {
  border-color: rgba(139, 85, 40, 0.6);
}

/* ── Pages Container ────────────────────────────────────── */
.pages {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
  z-index: 10;
  pointer-events: none;
}

.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Shared Button ──────────────────────────────────────── */
.btn {
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.btn--primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-brown-light);
  color: var(--color-cream);
  border-radius: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn--primary:hover {
  background: var(--color-brown);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 85, 40, 0.3);
}

/* ══════════════════════════════════════════════════════════
   PAGE 1 — Hero
   ══════════════════════════════════════════════════════════ */
.page--hero {
  flex-direction: column;
}

.hero {
  text-align: center;
  z-index: 20;
  padding: 0 24px;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  color: rgba(70, 45, 20, 0.88);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 30px rgba(255, 240, 200, 0.4);
}

/* ══════════════════════════════════════════════════════════
   PAGE 2 — Features
   ══════════════════════════════════════════════════════════ */
.page--features {
  flex-direction: column;
  justify-content: center;
}

.features {
  z-index: 20;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Feature Row: card + image side by side */
.feature-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.feature-card {
  background: rgba(255, 248, 230, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 175, 130, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feature-card__icon {
  font-size: 1rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brown);
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.feature-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(180, 100, 40, 0.6);
  letter-spacing: 0.05em;
  padding-top: 6px;
  border-top: 2px solid rgba(200, 80, 30, 0.5);
}

.feature-card__image {
  width: 160px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 248, 230, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 175, 130, 0.15);
}

.feature-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__image.placeholder::after {
  content: 'Image';
  color: rgba(139, 85, 40, 0.3);
  font-size: 0.8rem;
}

/* Brand Footer (Page 2 bottom-right) */
.brand-footer {
  position: absolute;
  bottom: 50px;
  right: 50px;
  z-index: 20;
  text-align: right;
}

.brand-footer__name {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(80, 55, 30, 0.25);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.brand-footer__tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(80, 55, 30, 0.2);
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   PAGE 3 — Story
   ══════════════════════════════════════════════════════════ */
.page--story {
  flex-direction: column;
  justify-content: center;
}

.story {
  z-index: 20;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.story__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.story__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: rgba(50, 35, 15, 0.9);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.story__highlight {
  color: var(--color-brown);
}

.story__paragraph {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.story__text {
  background: rgba(255, 248, 230, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 175, 130, 0.2);
  border-radius: 12px;
  padding: 28px 32px;
}

.story__text .btn {
  margin-top: 0.8rem;
}

.story__images {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story__image-stack {
  position: relative;
  width: 260px;
  height: 340px;
}

.story__image-stack.placeholder {
  background: rgba(255, 248, 230, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 175, 130, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__image-stack.placeholder::after {
  content: 'Image';
  color: rgba(139, 85, 40, 0.3);
  font-size: 0.9rem;
}

.story__img {
  position: absolute;
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.story__img--1 {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transform: rotate(3deg);
}

/* ── Global Footer ──────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__brand {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(60, 40, 20, 0.5);
  letter-spacing: 0.06em;
}

.footer__copy {
  font-size: 0.65rem;
  color: rgba(80, 55, 30, 0.35);
}

.footer__right {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-size: 0.65rem;
  color: rgba(80, 55, 30, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: rgba(80, 55, 30, 0.7);
}

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .features {
    padding: 0 20px;
    max-width: 100%;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-card__image {
    width: 100%;
    height: 140px;
  }

  .story {
    padding: 0 24px;
  }

  .story__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story__images {
    order: -1;
  }

  .story__image-stack {
    width: 200px;
    height: 260px;
  }

  .brand-footer {
    bottom: 30px;
    right: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
  }

  .footer__left {
    flex-direction: column;
    gap: 4px;
  }

  .nav-dots {
    bottom: 24px;
  }

  .progress-container {
    width: 250px;
  }

  .progress-percentage {
    font-size: 1.5rem;
  }

  .loading-text {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}
