:root {
  --bg: #05080d;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.68);
  --soft: rgba(248, 251, 255, 0.44);
  --blue: #2f63b7;
  --blue-soft: #78a6ff;
  --amber: #f8a521;
  --gold: #ffd36a;
  --green: #32d18f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --spin: 0deg;
  --edge: 0;
  --tilt: 0deg;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.8), rgba(5, 8, 13, 0.94)),
    radial-gradient(circle at center, rgba(47, 99, 183, 0.16), transparent 34%),
    #05080d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.62;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.logo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.depth-field {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.08), rgba(5, 8, 13, 0.78)),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.028) 35px 36px);
}

.logo-scene {
  position: relative;
  width: min(56vw, 760px);
  aspect-ratio: 1.42;
  perspective: 920px;
  opacity: clamp(0.4, calc(0.62 - var(--page-progress, 0) * 0.14), 0.62);
  filter: saturate(1.08);
  will-change: opacity;
}

.logo-scene::before {
  content: "";
  position: absolute;
  inset: 18% 8% 14%;
  border: 1px solid rgba(255, 211, 106, 0.16);
  border-radius: 50%;
  transform: rotateX(72deg) translateY(22%);
  opacity: calc(0.44 - var(--page-progress, 0) * 0.14);
}

.logo-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateX(-3deg)
    rotateY(var(--spin))
    scale(calc(1.02 - var(--page-progress, 0) * 0.06));
  transform-origin: center center;
  will-change: transform;
}

.logo-3d::before,
.logo-3d::after {
  content: "";
  position: absolute;
  inset: 2% 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translateZ(58px);
}

.logo-3d::before {
  background: radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.32), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.logo-3d::after {
  box-shadow:
    inset 0 0 30px rgba(255, 211, 106, 0.1),
    0 0 42px rgba(47, 99, 183, 0.16);
  opacity: 0.58;
}

.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: var(--alpha);
  transform: translateZ(var(--z));
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.logo-layer.front {
  backface-visibility: hidden;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.logo-layer.core {
  opacity: calc(var(--alpha) + var(--edge) * 0.13);
  filter: brightness(1.28) saturate(0.34);
}

.logo-layer.back {
  backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(var(--back-z));
  filter: brightness(0.78) saturate(0.78);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 168px minmax(280px, 1fr) 168px;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 28px));
  min-height: 74px;
  padding: 8px 12px;
  transform: translateX(-50%);
  background: rgba(5, 8, 13, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 13, 0.84);
  border-color: rgba(255, 255, 255, 0.22);
}

.brand {
  width: 150px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  justify-self: start;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.9);
}

.site-header nav {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 750;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  justify-self: end;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 950;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  color: #07131f;
  background: var(--text);
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07131f;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 18px 48px rgba(248, 165, 33, 0.24);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn.full {
  width: 100%;
}

section {
  position: relative;
  z-index: 2;
}

.center-stage {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 56px;
}

.hero-inner,
.section-title,
.story-head,
.final-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.display-title,
h2 {
  margin-inline: auto;
  letter-spacing: 0;
  text-wrap: balance;
}

.display-title {
  max-width: 1120px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 6.45rem);
  line-height: 0.86;
}

.title-line {
  display: block;
  line-height: 0.9;
}

.title-line + .title-line {
  margin-top: 0.04em;
}

[data-fit-line] {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-size: calc(1em * var(--fit, 1));
  letter-spacing: 0;
  transform-origin: center;
}

h2 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 4.8vw, 4.65rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  line-height: 1.66;
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 56px;
}

.hero-metrics div {
  min-height: 118px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.hero-metrics span {
  color: var(--muted);
}

.experience-section {
  padding: 124px 0 42px;
}

.story-pin {
  min-height: auto;
}

.story-head {
  margin-bottom: 34px;
}

.story-track {
  display: grid;
  gap: 22vh;
  padding: 8vh 0 10vh;
}

.story-card {
  width: min(640px, 100%);
  min-height: 250px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(5, 8, 13, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.story-card.accent {
  border-color: rgba(248, 165, 33, 0.4);
}

.story-card.final {
  border-color: rgba(50, 209, 143, 0.38);
}

.story-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 950;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.story-card p,
.video-copy p,
.portrait-copy p,
.section-title p,
details p {
  color: var(--muted);
  line-height: 1.7;
}

.video-section,
.proof-section,
.rafael-section,
.plans-section,
.faq-section,
.final-cta {
  padding: 112px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.64fr);
  align-items: center;
  gap: 70px;
}

.video-copy {
  text-align: center;
}

.video-copy h2 {
  max-width: 760px;
}

.video-frame {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 810 / 1080;
  object-fit: cover;
  border-radius: 18px;
  background: #111;
}

.video-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(5, 8, 13, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.video-caption span {
  color: var(--muted);
  font-size: 0.83rem;
}

.proof-inner {
  text-align: center;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.motion-card,
.plan-card,
details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.motion-card {
  min-height: 260px;
  padding: 28px;
  display: grid;
  align-content: center;
  text-align: center;
  transform-style: preserve-3d;
}

.motion-card span,
.plan-label {
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.motion-card h3 {
  margin: 14px 0 0;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
}

.portrait-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 72px;
}

.portrait-card {
  overflow: hidden;
  height: min(680px, 76svh);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.portrait-copy {
  text-align: center;
}

.portrait-copy h2 {
  max-width: 740px;
}

.portrait-copy p {
  max-width: 680px;
  margin-inline: auto;
}

.compact {
  max-width: 920px;
  margin: 0 auto 42px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border-color: rgba(248, 165, 33, 0.46);
  background:
    linear-gradient(180deg, rgba(248, 165, 33, 0.18), rgba(47, 99, 183, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  color: #07131f;
  background: var(--gold);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 14px 0 24px;
}

.price {
  margin-bottom: 4px;
  font-size: clamp(2.2rem, 4.4vw, 3.65rem);
  font-weight: 950;
}

.price small,
.cash {
  color: var(--muted);
}

.price small {
  font-size: 1rem;
}

.cash {
  margin-bottom: 26px;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  max-width: 430px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plan-card li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.city-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.city-actions a {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

details {
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 950;
  text-align: center;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: 12px;
  color: var(--gold);
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: center;
}

.final-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.final-inner img {
  width: 168px;
  height: 86px;
  object-fit: contain;
}

.final-inner h2 {
  max-width: 900px;
  margin-bottom: 0;
}

[data-reveal] {
  --reveal-y: 18px;
  --reveal-scale: 0.99;
  --reveal-rx: 2deg;
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  opacity: 0.84;
  transform:
    perspective(1100px)
    translateY(var(--reveal-y))
    scale(var(--reveal-scale))
    rotateX(calc(var(--reveal-rx) + var(--tilt-rx)))
    rotateY(var(--tilt-ry));
  transition:
    opacity 520ms ease var(--delay, 0ms),
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
  transform-origin: center;
}

[data-reveal].is-visible {
  --reveal-y: 0px;
  --reveal-scale: 1;
  --reveal-rx: 0deg;
  opacity: 1;
}

.story-card,
.motion-card,
.plan-card,
.video-frame,
.portrait-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.story-card::before,
.motion-card::before,
.plan-card::before,
.video-frame::before,
.portrait-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 211, 106, 0.24), transparent 30%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.story-card > *,
.motion-card > *,
.plan-card > *,
.video-frame video,
.portrait-card img {
  position: relative;
  z-index: 1;
}

.video-caption {
  z-index: 2;
}

.story-card:hover::before,
.motion-card:hover::before,
.plan-card:hover::before,
.video-frame:hover::before,
.portrait-card:hover::before {
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-header nav {
    display: none;
  }

  .logo-scene {
    width: min(88vw, 640px);
    perspective: 1100px;
  }

  .hero-metrics,
  .proof-grid,
  .plans-grid,
  .video-grid,
  .portrait-wrap {
    grid-template-columns: 1fr;
  }

  .story-track {
    gap: 16vh;
  }

  .video-copy,
  .portrait-copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 9px 10px;
  }

  .brand {
    width: 118px;
    height: 42px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 16px;
  }

  .center-stage {
    padding-top: 110px;
  }

  .display-title {
    font-size: clamp(2.75rem, 12.2vw, 4.25rem);
    line-height: 0.88;
  }

  h2 {
    font-size: clamp(2rem, 9.8vw, 3.4rem);
    line-height: 0.95;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .city-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-actions .btn,
  .final-inner .btn {
    width: 100%;
  }

  .hero-metrics div {
    min-height: 104px;
  }

  .story-card {
    min-height: 220px;
  }

  .video-section,
  .proof-section,
  .rafael-section,
  .plans-section,
  .faq-section,
  .final-cta {
    padding: 66px 0;
  }

  .video-frame {
    width: min(330px, 100%);
  }

  .portrait-card {
    height: 560px;
  }

  .badge {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  body::before {
    opacity: 0.32;
  }

  .depth-field {
    background: linear-gradient(180deg, rgba(5, 8, 13, 0.08), rgba(5, 8, 13, 0.82));
  }

  .logo-scene {
    width: min(76vw, 430px);
    opacity: clamp(0.34, calc(0.52 - var(--page-progress, 0) * 0.1), 0.52);
    filter: none;
  }

  .logo-scene::before,
  .logo-3d::before,
  .logo-3d::after {
    display: none;
  }

  .logo-layer.front,
  .logo-layer.core,
  .logo-layer.back {
    filter: none;
  }

  .site-header,
  .btn-glass,
  .hero-metrics div,
  .story-card,
  .motion-card,
  .plan-card,
  details,
  .video-caption {
    backdrop-filter: none;
  }

  .story-card,
  .motion-card,
  .plan-card,
  .video-frame,
  .portrait-card {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  }

  [data-reveal] {
    --reveal-y: 10px;
    --reveal-scale: 0.99;
    --reveal-rx: 1deg;
    opacity: 0.94;
    transition:
      opacity 300ms ease var(--delay, 0ms),
      transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
  }
}

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

  .logo-3d {
    transform: none;
  }
}
