/* kronus | Portfólio de Sites Vitrine (/sites) v2
   Identidade oficial: #0D0D0D | #141414 | #191919 | #F5A623 -> #E05C00 */

:root {
  --bg: #0D0D0D;
  --surface: #131313;
  --card: #181818;
  --gold: #F5A623;
  --orange: #E05C00;
  --white: #F7F7F5;
  --muted: #A6A6A6;
  --muted-2: #7A7A7A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(245, 166, 35, 0.38);
  --grad: linear-gradient(135deg, #F5A623 0%, #E05C00 100%);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Poppins", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 16px;
  z-index: 300;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.96;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-xs {
  width: 15px;
  height: 15px;
}

.icon-gold {
  color: var(--gold);
}

.icon-muted {
  color: #6F6F6F;
}

/* Motion reveal suave por scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 12px;
  padding: 12px 20px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  padding: 15px 24px;
  font-size: 15px;
  min-height: 52px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--grad);
  color: #0D0D0D;
  box-shadow: 0 10px 28px rgba(224, 92, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(245, 166, 35, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold);
  background: rgba(245, 166, 35, 0.08);
}

.btn-ghost {
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--line-gold);
  background: rgba(245, 166, 35, 0.06);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-label {
  display: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   MOCKUP 3D PREMIUM DE SMARTPHONE (Titânio Escuro + Vidro)
   ========================================================= */
.phone-3d {
  position: relative;
  width: 214px;
  aspect-ratio: 390 / 828;
  padding: 5px;
  border-radius: 36px;
  background: linear-gradient(
    145deg,
    #5A5A64 0%,
    #28282E 22%,
    #141418 48%,
    #2F2F36 76%,
    #5E5E68 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -1px 2px rgba(0, 0, 0, 0.75),
    0 28px 56px rgba(0, 0, 0, 0.72),
    0 10px 22px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.phone-3d-highlight {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px 2px rgba(0, 0, 0, 0.75),
    0 34px 72px rgba(0, 0, 0, 0.8),
    0 0 42px rgba(245, 166, 35, 0.14);
}

.phone-side-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5A5A64 0%, #24242A 100%);
  pointer-events: none;
}

.phone-btn-vol-up {
  left: -3px;
  top: 21%;
  height: 32px;
}

.phone-btn-vol-dn {
  left: -3px;
  top: 30%;
  height: 32px;
}

.phone-btn-power {
  right: -3px;
  top: 25%;
  height: 46px;
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px;
  border-radius: 31px;
  background: #080809;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 15px;
  border-radius: 999px;
  background: #060607;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.phone-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A5070 0%, #101624 60%, #05070B 100%);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background: #0B0B0B;
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #0B0B0B;
}

.phone-glare {
  position: absolute;
  inset: 0;
  border-radius: 31px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.03) 26%,
    transparent 48%
  );
  pointer-events: none;
  z-index: 3;
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 78% 24%, rgba(245, 166, 35, 0.14), transparent 70%),
    radial-gradient(520px 320px at 12% 84%, rgba(224, 92, 0, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 9.2vw, 66px);
  color: var(--white);
  margin-bottom: 16px;
  max-width: 19ch;
}

.hero-sub {
  font-size: 15.5px;
  color: #BDBDBD;
  max-width: 50ch;
  margin-bottom: 26px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: #D2D2D2;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Palco 3D dos 2 celulares no Hero (visível no mobile e desktop) */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.hero-phones-scene {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: clamp(326px, 94vw, 412px);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-phone-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease-out;
}

.hero-phone-front {
  left: clamp(2px, 2vw, 8px);
  top: 0;
  z-index: 2;
}

.hero-phone-front .phone-3d {
  width: clamp(134px, 43vw, 170px);
  transform: rotateY(-8deg) rotateX(3deg);
}

.hero-phone-back {
  right: clamp(2px, 2vw, 6px);
  top: clamp(22px, 7vw, 32px);
  z-index: 1;
}

.hero-phone-back .phone-3d {
  width: clamp(120px, 39vw, 154px);
  transform: rotateY(-12deg) rotateX(4deg) scale(0.95);
  opacity: 0.92;
}

.hero-phone-caption {
  font-size: clamp(10px, 2.7vw, 11px);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.hero-badge-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--line-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.hero-badge-text {
  font-size: 12.5px;
  color: #DCDCDC;
}

.hero-badge-text strong {
  color: var(--gold);
}

/* =========================================================
   SEÇÕES & VITRINE
   ========================================================= */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}

.section-head-center {
  text-align: left;
  max-width: 660px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(36px, 8vw, 54px);
  color: var(--white);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 58ch;
}

/* Filtros */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.18s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.filter-btn:active {
  transform: scale(0.97);
}

.filter-btn.is-active {
  background: var(--grad);
  color: #0D0D0D;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(224, 92, 0, 0.28);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.filter-btn.is-active .filter-count {
  background: rgba(13, 13, 13, 0.18);
}

/* Grid de projetos */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.32s var(--ease-out), border-color 0.28s ease, box-shadow 0.32s var(--ease-out);
}

.project-card[hidden] {
  display: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55);
}

.card-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 20px 24px;
  background:
    radial-gradient(300px 200px at 50% 18%, rgba(245, 166, 35, 0.14), transparent 72%),
    linear-gradient(180deg, #131315 0%, #0D0D0E 100%);
  border-bottom: 1px solid var(--line);
  text-align: left;
  perspective: 1100px;
}

.card-stage-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-index {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.card-niche {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.phone-3d-card {
  width: 204px;
  transform: rotateX(2deg);
}

.project-card:hover .phone-3d-card {
  transform: translateY(-6px) rotateX(0deg) scale(1.02);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    inset 0 -1px 2px rgba(0, 0, 0, 0.75),
    0 34px 66px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(245, 166, 35, 0.14);
}

.stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-card:hover .stage-hint {
  background: rgba(245, 166, 35, 0.18);
  transform: translateY(-1px);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.card-body h3 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.card-tags span {
  font-size: 11px;
  font-weight: 600;
  color: #D2D2D2;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* =========================================================
   COMPARATIVO & BENEFÍCIOS
   ========================================================= */
.compare-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.compare-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.compare-kronus {
  border-color: var(--line-gold);
  background:
    radial-gradient(380px 200px at 90% 0%, rgba(245, 166, 35, 0.12), transparent 72%),
    #121212;
}

.compare-head {
  margin-bottom: 18px;
}

.compare-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.compare-badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.compare-badge-gold {
  background: rgba(245, 166, 35, 0.14);
  color: var(--gold);
  border: 1px solid var(--line-gold);
}

.compare-card h3 {
  font-size: 30px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: #D4D4D4;
}

.compare-old .compare-list li {
  color: var(--muted);
}

.compare-list .icon {
  margin-top: 3px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.benefit-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.benefit-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold);
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* =========================================================
   OFERTA PROMOCIONAL
   ========================================================= */
.offer-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 26px 20px;
  border-radius: 24px;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(245, 166, 35, 0.16), transparent 70%),
    linear-gradient(180deg, #1A1A1A 0%, #121212 100%);
  border: 1px solid var(--line-gold);
}

.offer-left,
.offer-price-card {
  min-width: 0;
}

.offer-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.14);
  color: var(--gold);
  border: 1px solid var(--line-gold);
  margin-bottom: 14px;
}

.offer-left h2 {
  font-size: clamp(38px, 9vw, 56px);
  margin-bottom: 12px;
}

.offer-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 50ch;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #E2E2E2;
}

.offer-list .icon {
  margin-top: 3px;
}

.offer-price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: #0D0D0D;
  border: 1px solid var(--line-strong);
}

.price-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.price-main {
  display: inline-flex;
  align-items: baseline;
  color: var(--gold);
  line-height: 1;
}

.price-currency {
  font-size: 22px;
  font-weight: 700;
  margin-right: 4px;
}

.price-value {
  font-family: var(--display);
  font-size: 82px;
  letter-spacing: 0.01em;
}

.price-cents {
  font-size: 22px;
  font-weight: 700;
}

.price-term {
  font-size: 13.5px;
  color: #D8D8D8;
  margin-top: 4px;
}

.price-divider {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
  margin: 14px 0;
}

.price-installments {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-installments strong {
  color: var(--white);
}

.offer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-2);
}

/* Rodapé */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  background: #090909;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 10px;
  max-width: 40ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--gold);
}

/* =========================================================
   MODAL INTERATIVO
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: modalFadeIn 0.24s var(--ease-out);
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.82);
  animation: modalPopIn 0.3s var(--ease-out);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #101010;
  flex-shrink: 0;
}

.modal-title-group {
  min-width: 0;
}

.modal-niche {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.modal-header h2 {
  font-size: 28px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.device-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #1B1B1B;
  border: 1px solid var(--line);
}

.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.switch-btn span {
  display: none;
}

.switch-btn.is-active {
  background: var(--grad);
  color: #0D0D0D;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  border-color: var(--line-gold);
  color: var(--gold);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-mobile-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.modal-mobile-stage[hidden],
.preview-frame[hidden] {
  display: none;
}

.phone-3d-modal {
  width: 248px;
}

.preview-frame {
  width: 100%;
  background: #0B0B0B;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}

.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #1A1A1A;
  border-bottom: 1px solid var(--line);
}

.chrome-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.chrome-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}

.chrome-url {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.scroll-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.28);
  flex-shrink: 0;
}

.scroll-toggle-btn[aria-pressed="true"] {
  background: var(--grad);
  color: #0D0D0D;
  border-color: transparent;
}

.preview-scroll {
  width: 100%;
  height: 410px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0D0D0D;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 166, 35, 0.45) #111;
}

.preview-scroll img {
  width: 100%;
  height: auto;
}

.preview-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  max-width: 34ch;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.modal-summary {
  font-size: 14px;
  color: #D4D4D4;
}

.modal-highlights-wrap h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #D4D4D4;
}

.modal-highlights .icon {
  margin-top: 3px;
}

.modal-cta-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* =========================================================
   RESPONSIVO: TABLET E DESKTOP
   ========================================================= */
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }

  .topbar-label {
    display: inline-block;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-phones-scene {
    max-width: 420px;
    height: 495px;
  }

  .hero-phone-front .phone-3d {
    width: 210px;
  }

  .hero-phone-back .phone-3d {
    width: 188px;
  }

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

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

  .switch-btn span {
    display: inline;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-links {
    align-items: flex-end;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 78px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
  }

  .hero-phones-scene {
    max-width: 470px;
    height: 544px;
  }

  .hero-phone-front {
    left: 24px;
    top: 4px;
  }

  .hero-phone-front .phone-3d {
    width: 232px;
  }

  .hero-phone-back {
    right: 12px;
    top: 44px;
  }

  .hero-phone-back .phone-3d {
    width: 204px;
  }

  .section {
    padding: 88px 0;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section-head-center {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

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

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .offer-box {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: center;
    padding: 44px;
    gap: 40px;
  }

  .modal-header {
    padding: 16px 24px;
  }

  .modal-content {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    padding: 18px 24px;
  }

  .phone-3d-modal {
    width: 222px;
  }

  .preview-scroll {
    height: 460px;
  }
}


/* =========================================================
   FAQ (PERGUNTAS FREQUENTES)
   ========================================================= */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq-wrap {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.faq-item[open] {
  border-color: var(--line-gold);
  background: #1B1B1B;
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out), background 0.22s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--grad);
  color: #0D0D0D;
}

.faq-a {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   AJUSTES FINOS DE RESPONSIVIDADE PARA TELAS COMPACTAS
   ========================================================= */
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .topbar-inner {
    min-height: 62px;
    gap: 10px;
  }

  .brand-logo {
    height: 30px;
  }

  .btn-sm {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .phone-3d-card {
    width: min(200px, 62vw);
  }

  .phone-3d-modal {
    width: min(228px, 66vw);
  }

  .price-value {
    font-size: clamp(62px, 18vw, 76px);
  }

  .modal-dialog {
    max-height: calc(100dvh - 20px);
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .faq-q {
    padding: 16px;
    font-size: 14px;
  }

  .faq-a {
    padding: 0 16px 16px;
    font-size: 13.5px;
  }
}
