
/* Estilos Premium para Rooted PDV */
:root {
  --pdv-black: #0e0e0e;
  --pdv-graphite: #181818;
  --pdv-graphite-light: #222222;
  --pdv-yellow: #e1da18;
  --pdv-yellow-dim: rgba(225, 218, 24, 0.15);
  --pdv-white: #ffffff;
  --pdv-gray: #bcbcbc;
  --pdv-dark-gray: #666666;
  --pdv-cyan: #00e5ff;
}

body.pdv-active {
  background-color: var(--pdv-black);
}

.pdv-page {
  overflow-x: clip;
  background: var(--pdv-black);
  color: var(--pdv-white);
  font-family: 'Rubik', sans-serif;
}

.pdv-page section {
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}

/* Typography Base */
.pdv-page h1, .pdv-page h2, .pdv-page h3, .pdv-page h4 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--pdv-white);
}

.pdv-page p {
  font-size: 18px;
  color: var(--pdv-gray);
  line-height: 1.6;
}

/* Kicker */
.pdv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 218, 24, 0.1);
  color: var(--pdv-yellow);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(225, 218, 24, 0.2);
  text-transform: uppercase;
}
.pdv-kicker--safe {
  background: rgba(0, 229, 255, 0.1);
  color: var(--pdv-cyan);
  border-color: rgba(0, 229, 255, 0.2);
}

/* Buttons */
.rooted-btn {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.rooted-btn--primary {
  background: var(--pdv-yellow);
  color: var(--pdv-black) !important;
}
.rooted-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(225, 218, 24, 0.3);
}
.rooted-btn--ghost {
  background: transparent;
  color: var(--pdv-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.rooted-btn--ghost:hover {
  background: var(--pdv-white);
  color: var(--pdv-black) !important;
  border-color: var(--pdv-white);
}

/* HERO SECTION */
.pdv-hero {
  padding-top: clamp(120px, 15vw, 180px) !important;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pdv-hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--pdv-yellow-dim) 0%, rgba(14,14,14,0) 70%);
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
}
.pdv-hero-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}
.pdv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 6rem);
}
.pdv-hero h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: .95;
  margin-bottom: 24px;
}
.pdv-hero h1 .text-glow {
  display: block;
  color: var(--pdv-yellow);
  text-shadow: 0 0 40px rgba(225, 218, 24, 0.3);
}
.pdv-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.pdv-hero__visual-container {
  position: relative;
}
.pdv-hero__visual-frame {
  position: relative;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.pdv-hero__visual-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}
/* Badges */
.pdv-hero__badge {
  position: absolute;
  background: rgba(20,20,20,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(225, 218, 24, 0.3);
  color: var(--pdv-white);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 10;
}
.pdv-hero__badge i { color: var(--pdv-yellow); font-size: 16px; }
.badge-vendas { top: 10%; left: -5%; }
.badge-estoque { bottom: 15%; right: -5%; }
.badge-gestao { top: -5%; right: 10%; }

/* BENEFITS SECTION */
.pdv-features {
  background: var(--pdv-graphite);
  border-top: 1px solid rgba(255,255,255,0.02);
}
.pdv-section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}
.pdv-section-header p {
  max-width: 600px;
  margin: 0 auto;
}
.pdv-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.pdv-card-premium {
  background: linear-gradient(180deg, var(--pdv-graphite-light) 0%, var(--pdv-graphite) 100%);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.pdv-card-highlight {
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--pdv-yellow), transparent);
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.pdv-card-premium:hover, .pdv-card-premium:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(225, 218, 24, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  outline: none;
}
.pdv-card-premium:hover .pdv-card-highlight, .pdv-card-premium:focus-visible .pdv-card-highlight {
  opacity: 1;
}
.pdv-icon-capsule {
  width: 60px;
  height: 60px;
  background: rgba(225, 218, 24, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--pdv-yellow);
  font-size: 28px;
  border: 1px solid rgba(225, 218, 24, 0.2);
}
.pdv-card-premium h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.pdv-card-premium p {
  font-size: 15px;
  margin-bottom: 0;
}

/* BENTO GRID - PREMIUM REDESIGN */
.pdv-bento {
  background: #0e0e0e;
  position: relative;
  z-index: 1;
}
.pdv-bento::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(225, 218, 24, 0.05) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
}
.bento-item {
  background: linear-gradient(145deg, #1c1c1c 0%, #121212 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(800px circle at 0% 0%, rgba(225, 218, 24, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 218, 24, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0,0,0,0.6);
}
.bento-item:hover::before {
  opacity: 1;
}
.bento-item i {
  color: var(--pdv-yellow);
  font-size: 32px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(225, 218, 24, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(225, 218, 24, 0.2);
}
.bento-item h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #fff;
}
.bento-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #fff;
}
.bento-item p {
  font-size: 15px;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 0;
}
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-start;
}
.bento-large i {
  font-size: 40px;
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
}
.bento-large::after {
  content: '\eb26'; /* isax icon-shopping-cart equivalent approx, will use generic shape if fails */
  font-family: 'iconsax';
  position: absolute;
  bottom: -10%;
  right: -5%;
  font-size: 250px;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  transform: rotate(-15deg);
  transition: all 0.5s ease;
}
.bento-large:hover::after {
  transform: rotate(0deg) scale(1.05);
  color: rgba(225, 218, 24, 0.03);
}
.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* APP SECTION */
.pdv-app {
  background: var(--pdv-graphite);
  overflow: hidden;
}
.pdv-app-aura {
  position: absolute;
  top: 50%; left: 30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(225,218,24,0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pdv-data-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}
.pdv-app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 5vw, 6rem);
}
.pdv-floating-device img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}
.pdv-glass-panel {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px;
  border-radius: 24px;
}
.pdv-list-premium {
  list-style: none;
  padding: 0; margin: 30px 0 0 0;
}
.pdv-list-premium li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.pdv-list-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(225, 218, 24, 0.1);
  color: var(--pdv-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.pdv-list-premium span {
  font-size: 17px;
  color: var(--pdv-gray);
}

/* MIGRATION */
.pdv-migration {
  background: var(--pdv-black);
}
.pdv-migration__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 5vw, 6rem);
}
.pdv-migration-highlight {
  font-size: 20px !important;
  color: var(--pdv-white) !important;
  font-weight: 500;
  border-left: 3px solid var(--pdv-cyan);
  padding-left: 15px;
}
.pdv-migration-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}
.m-icon {
  width: 50px; height: 50px;
  background: var(--pdv-graphite-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--pdv-gray);
  border: 1px solid rgba(255,255,255,0.05);
}
.m-icon.highlight {
  color: var(--pdv-cyan);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}
.m-line {
  flex-grow: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.m-line-progress {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--pdv-cyan);
  transition: width 1.5s ease;
}
.pdv-small-obs {
  font-size: 13px;
  color: var(--pdv-dark-gray);
  display: block;
}

/* TIMELINE */
.pdv-timeline-section {
  background: var(--pdv-graphite);
}
.pdv-timeline-wrapper {
  position: relative;
  padding: 40px 0;
}
.pdv-timeline-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.05);
  transform: translateY(-50%);
  border-radius: 2px;
}
.pdv-timeline-progress {
  position: absolute;
  top: 50%; left: 0;
  height: 4px;
  background: var(--pdv-yellow);
  transform: translateY(-50%);
  border-radius: 2px;
  width: 0%;
}
.pdv-timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.pdv-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 120px;
}
.step-circle {
  width: 60px; height: 60px;
  background: var(--pdv-black);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--pdv-white);
  transition: all 0.3s ease;
}
.step-circle.active {
  border-color: var(--pdv-yellow);
  color: var(--pdv-yellow);
  box-shadow: 0 0 20px rgba(225, 218, 24, 0.2);
}
.step-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* SEGMENTS */
.pdv-segments {
  background: var(--pdv-black);
}
.pdv-segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.pdv-segment-card {
  background: var(--pdv-graphite);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.segment-pattern {
  position: absolute;
  top: 0; right: 0; width: 100px; height: 100px;
  background-image: radial-gradient(rgba(255,255,255,0.05) 2px, transparent 2px);
  background-size: 10px 10px;
  mask-image: radial-gradient(circle at top right, black, transparent);
  -webkit-mask-image: radial-gradient(circle at top right, black, transparent);
}
.pdv-segment-card i {
  font-size: 32px;
  color: var(--pdv-yellow);
  margin-bottom: 20px;
  display: block;
}
.pdv-segment-card h4 {
  font-size: 22px;
  margin-bottom: 10px;
}
.pdv-segment-card:hover {
  background: var(--pdv-graphite-light);
  transform: translateY(-5px);
}

/* FINAL CTA */
.pdv-final-cta {
  background: var(--pdv-graphite);
}
.pdv-cta-box {
  background: linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(30,30,30,1) 100%);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  border: 1px solid rgba(225, 218, 24, 0.2);
  overflow: hidden;
}
.cta-glow-border {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(225, 218, 24, 0.1), transparent 30%);
  animation: rotateGlow 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}
.cta-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--pdv-gray);
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 30px;
}
.cta-badges i { color: var(--pdv-yellow); }

/* RESPONSIVE RESPONSIVE RESPONSIVE */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdv-hero__grid, .pdv-app__grid, .pdv-migration__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pdv-hero__visual-container, .pdv-app__visual {
    order: -1;
  }
  .pdv-actions {
    justify-content: center;
  }
  .pdv-list-premium li {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .bento-large {
    grid-column: span 2;
  }
  .bento-small {
    grid-column: span 2;
  }
  /* Vertical Timeline */
  .pdv-timeline-track, .pdv-timeline-progress {
    top: 0; bottom: 0; left: 30px; width: 4px; height: auto;
    transform: none;
  }
  .pdv-timeline-progress {
    height: 0%; width: 4px;
  }
  .pdv-timeline-steps {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .pdv-timeline-step {
    flex-direction: row;
    width: 100%;
    gap: 20px;
  }
  .step-circle {
    min-width: 60px;
  }
  .step-text {
    text-align: left;
  }
  .pdv-hero__badge {
    position: static;
    display: inline-flex;
    margin: 5px;
  }
  .pdv-hero__visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .rooted-btn {
    width: 100%;
  }
  .pdv-cta-box {
    padding: 30px 15px;
  }
  .pdv-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* RESPONSIVE FIXES */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; }
  .pdv-hero__grid, .pdv-app__grid, .pdv-migration__grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-small { grid-column: span 1; }
}
