/* ==========================================
   Variables
   ========================================== */
:root {
  --bg: #0B0D10;
  --bg-surface: #14171D;
  --bg-card: #1A1E26;
  --accent: #C9A96E;
  --accent-dim: rgba(201, 169, 110, 0.12);
  --accent-glow: rgba(201, 169, 110, 0.3);
  --text: #E8E6E1;
  --text-dim: #8A8D94;
  --text-muted: #5A5D65;
  --border: rgba(255, 255, 255, 0.06);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --perspective: 1800px;
  --rotate-duration: 0.85s;
  --ease-rotate: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: 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, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; color: var(--accent); }

/* ==========================================
   3D Stage
   ========================================== */
.stage-wrapper {
  position: fixed;
  inset: 0;
  perspective: var(--perspective);
  perspective-origin: 50% 50%;
}

.stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================
   Pages (faces)
   ========================================== */
.page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform var(--rotate-duration) var(--ease-rotate);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.page--hero {
  background:
    radial-gradient(ellipse 50% 40% at 50% 35%, rgba(201, 169, 110, 0.07) 0%, transparent 60%),
    var(--bg);
}

.page__bg-shape {
  position: absolute;
  top: -25%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
  filter: blur(80px);
  animation: shapePulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shapePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

.page__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}

.page__inner--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ==========================================
   Navigation Dots
   ========================================== */
.nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}

.nav-dot:hover {
  border-color: var(--accent);
}

.nav-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-dot__label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-dot.active .nav-dot__label,
.nav-dot:hover .nav-dot__label {
  opacity: 1;
}

/* ==========================================
   Typography
   ========================================== */
.page__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.page__title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page__subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

/* ==========================================
   Hero
   ========================================== */
.page--hero .page__inner {
  text-align: center;
  max-width: 800px;
}

.page--hero .page__title-line {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.05;
}

.page__title-line--swap {
  display: inline;
  position: relative;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

.type-word {
  display: inline;
}

.type-cursor {
  display: inline;
  font-style: normal;
  color: var(--accent);
  opacity: 1;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.page__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  animation: hintPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}

.btn--accent:hover {
  background: #D4B87A;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

/* ==========================================
   Sobre
   ========================================== */
.sobre__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.sobre__blob {
  width: 320px;
  height: 400px;
  overflow: hidden;
  border-radius: 60% 40% 50% 50% / 55% 50% 50% 45%;
  animation: blobMorph 8s ease-in-out infinite;
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.sobre__blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.5s;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 50% 50% / 55% 50% 50% 45%; }
  25% { border-radius: 45% 55% 55% 45% / 50% 55% 45% 50%; }
  50% { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; }
  75% { border-radius: 55% 45% 45% 55% / 45% 50% 55% 50%; }
}

.sobre__stats {
  display: flex;
  gap: 40px;
}

.sobre__stat {
  text-align: center;
}

.sobre__stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.sobre__stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.sobre__text p {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 0.93rem;
}

.sobre__text strong {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================
   Expertise
   ========================================== */
.page--expertise .page__inner {
  text-align: center;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 36px;
}

.expertise-card {
  background: var(--bg-card);
  padding: 40px 30px;
  text-align: left;
  transition: background 0.3s;
  cursor: pointer;
}

.expertise-card:hover {
  background: var(--bg-surface);
}

.expertise-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}

.expertise-card:hover .expertise-card__num {
  opacity: 0.5;
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.expertise-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================
   Approach
   ========================================== */
.approach__intro {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 28px;
}

.approach__pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  transition: background 0.3s;
}

.pillar:hover {
  background: var(--bg-surface);
}

.pillar__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
}

.pillar h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.pillar p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.approach__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.35s var(--ease-out);
}

.approach-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateX(-8px);
}

.approach-card--1 { margin-left: 0; }
.approach-card--2 { margin-left: 36px; }
.approach-card--3 { margin-left: 72px; }

.approach-card span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.approach-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================
   Testimonials
   ========================================== */
.page--testimonials .page__inner {
  text-align: center;
}

.test__carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 240px;
}

.test-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s var(--ease-out);
  pointer-events: none;
}

.test-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.test-card__mark {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 20px;
}

.test-card blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.test-card cite {
  font-size: 0.82rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.test__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.test__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.test__dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 10px;
}

/* ==========================================
   CTA
   ========================================== */
.cta__text {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 400px;
  margin-bottom: 32px;
}

.cta__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta__rings {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.12;
  animation: ringPulse 6s ease-in-out infinite;
}

.cta__ring--1 { width: 280px; height: 280px; }
.cta__ring--2 { width: 180px; height: 180px; animation-delay: -2s; opacity: 0.2; }
.cta__ring--3 { width: 100px; height: 100px; animation-delay: -4s; opacity: 0.3; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.06); opacity: 0.25; }
}

.footer__inline {
  position: absolute;
  bottom: 32px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  z-index: 1;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .page__inner--grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sobre__visual {
    order: -1;
  }

  .sobre__blob {
    width: 240px;
    height: 310px;
  }

  .expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__cards {
    order: -1;
  }

  .approach-card--1,
  .approach-card--2,
  .approach-card--3 {
    margin-left: 0;
  }

  .approach-card:hover {
    transform: translateX(0);
  }

  .cta__rings {
    height: 200px;
  }

  .cta__ring--1 { width: 180px; height: 180px; }
  .cta__ring--2 { width: 120px; height: 120px; }
  .cta__ring--3 { width: 70px; height: 70px; }

  .nav-dots { right: 16px; gap: 12px; }
  .nav-dot { width: 8px; height: 8px; }
}

@media (max-width: 768px) {
  .page__inner {
    padding: 60px 24px;
  }

  .page--hero .page__title-line {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .page__title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

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

  .expertise-card {
    padding: 28px 24px;
  }

  .test-card blockquote p {
    font-size: 0.92rem;
  }

  .footer__inline {
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page__inner {
    padding: 48px 18px;
  }

  .page__inner--grid {
    gap: 32px;
  }

  .sobre__blob {
    width: 200px;
    height: 260px;
  }

  .sobre__stats {
    gap: 24px;
  }

  .sobre__stat-number {
    font-size: 1.8rem;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .expertise-card__num {
    font-size: 2.2rem;
  }

  .nav-dots { right: 10px; gap: 10px; }
  .nav-dot { width: 7px; height: 7px; }
}
