:root {
  --bg: #0a0b0d;
  --bg-deep: #060607;
  --bg-soft: #101117;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.25);
  --text: #f5f5f4;
  --muted: #b9b7b3;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --x: 0px;
  --y: 0px;
  --z: 0px;
  --rx: -8deg;
  --ry: 10deg;
  --rz: 0deg;
  --s: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  color: var(--text);
  background: #050506;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.device-scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  perspective: 900px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.phone-stage {
  position: relative;
  height: 70vh;
  aspect-ratio: 18 / 25;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28), transparent 70%);
  filter: blur(30px);
  opacity: 0.7;
}

.phone-shadow {
  position: absolute;
  inset: 6%;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(26px);
  transform: translateZ(-40px);
  opacity: 0.6;
}

.content-layer {
  position: relative;
  z-index: 2;
}

.content-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 9, 0.82) 0%, rgba(10, 11, 15, 0.78) 45%, rgba(6, 7, 9, 0.86) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 122, 26, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(82, 190, 255, 0.12), transparent 38%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.content-bg::before {
  content: none;
}

.content-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(6, 7, 9, 0.35) 65%, rgba(6, 7, 9, 0.7) 100%),
    linear-gradient(90deg, rgba(6, 7, 9, 0.6) 0%, rgba(6, 7, 9, 0.2) 30%, rgba(6, 7, 9, 0.2) 70%, rgba(6, 7, 9, 0.75) 100%);
  pointer-events: none;
}

.content-layer main {
  position: relative;
  z-index: 1;
}

.section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 120px 8vw;
  position: relative;
}

.section .content {
  max-width: 520px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.align-right .content {
  justify-self: center;
  text-align: center;
  transform: translateY(30px);
}

.section.is-visible .content {
  opacity: 1;
  transform: translateY(0);
}

.section.align-right.is-visible .content {
  transform: translateY(0);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.6rem, 3vw + 1.5rem, 4.2rem);
  margin: 16px 0 20px;
  font-weight: 600;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
  margin: 0 0 16px;
  font-weight: 600;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.btn {
  background: var(--accent);
  color: #120a00;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 122, 26, 0.45);
}

.btn.outline:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.btn.large {
  padding: 18px 34px;
  font-size: 1.05rem;
}

.meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  justify-content: center;
  width: 100%;
}

.trust-grid {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.trust-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  max-width: 360px;
}

.trust-item:nth-child(2) {
  transition-delay: 0.08s;
}

.trust-item:nth-child(3) {
  transition-delay: 0.16s;
}

.section.is-visible .trust-item {
  opacity: 1;
  transform: translateX(0);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
  margin: 0 auto;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 180px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  max-width: 320px;
}

.card:nth-child(2) {
  transition-delay: 0.08s;
}

.card:nth-child(3) {
  transition-delay: 0.16s;
}

.section.is-visible .card {
  opacity: 1;
  transform: translateY(0);
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.model {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.support-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 12px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible .support-card {
  opacity: 1;
  transform: translateY(0);
}

.model:nth-child(2) {
  transition-delay: 0.08s;
}

.model:nth-child(3) {
  transition-delay: 0.16s;
}

.model:nth-child(4) {
  transition-delay: 0.24s;
}

.section.is-visible .model {
  opacity: 1;
  transform: translateY(0);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.quote {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  max-width: 320px;
}

.quote:nth-child(2) {
  transition-delay: 0.08s;
}

.quote:nth-child(3) {
  transition-delay: 0.16s;
}

.section.is-visible .quote {
  opacity: 1;
  transform: translateY(0);
}

.section.cta {
  min-height: 80vh;
  background: linear-gradient(140deg, rgba(255, 122, 26, 0.12), rgba(255, 255, 255, 0.02));
}

.section.cta .content {
  max-width: 600px;
}

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translate3d(var(--x), var(--y), var(--z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s)) translateZ(0);
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.phone.is-cta {
  filter: none;
}

.phone-face {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  opacity: 1;
}

.phone-face.back {
  background-image: url("assets/iphone-back.jpg");
  transform: translateZ(0.5px);
}

.phone-face.front {
  background-image:
    linear-gradient(180deg, rgba(4, 5, 7, 0.45) 0%, rgba(4, 5, 7, 0.2) 55%, rgba(4, 5, 7, 0.55) 100%),
    url("assets/iphone-front.jpg");
  transform: rotateY(180deg) translateZ(0.5px);
}

.phone-edge {
  display: none;
}

.phone-screen {
  display: none;
}

.phone-screen::before {
  content: none;
}

.phone-camera {
  display: none;
}

.lens {
  display: none;
}

.flash {
  display: none;
}

.phone-buttons {
  display: none;
}

.phone-shine {
  display: none;
}

.screen-state {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen-state[data-screen="hero"] {
  background: radial-gradient(circle at top, rgba(255, 122, 26, 0.2), transparent 55%);
  border-radius: 20px;
}

.screen-state[data-screen="trust"] {
  background: radial-gradient(circle at 30% 20%, rgba(82, 190, 255, 0.18), transparent 60%);
  border-radius: 20px;
}

.screen-state[data-screen="trade"] {
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
  border-radius: 20px;
}

.screen-state[data-screen="atendimento"] {
  background: radial-gradient(circle at 50% 15%, rgba(255, 122, 26, 0.18), transparent 60%);
  border-radius: 20px;
}

.screen-state[data-screen="social"] {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 60%);
  border-radius: 20px;
}

.screen-state[data-screen="cta"] {
  background: radial-gradient(circle at 50% 20%, rgba(255, 122, 26, 0.22), transparent 60%);
  border-radius: 20px;
}

.screen-state.is-active {
  opacity: 1;
  transform: scale(1);
}

.screen-hero h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.screen-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.18);
  color: #ffc39c;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.screen-hint {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.screen-trust ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.screen-trust li {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.trade-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trade-steps span {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.screen-models .models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.screen-models .model-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.screen-support .support-tags {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.screen-support .support-tags span {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.screen-social .rating {
  font-size: 2.6rem;
  color: var(--accent);
  margin: 12px 0 6px;
}

.screen-cta .cta-glow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.2);
  color: #ffd7b5;
  margin-top: 12px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

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

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

@media (max-width: 900px) {
  .section {
    padding: 100px 8vw;
  }

  .section .content {
    max-width: 100%;
  }

  .section.align-right .content {
    justify-self: center;
    transform: translateY(20px);
  }

  .section.align-right.is-visible .content {
    transform: translateY(0);
  }

  .phone-stage {
    width: min(82vw, 380px);
    height: auto;
    max-height: 78vh;
  }

  .model-cards {
    grid-template-columns: 1fr;
  }

  .support-cards {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .section .content,
  .card,
  .model,
  .quote,
  .trust-item {
    transition: none;
  }
}
