/* ==========================================================================
   BENNI OS GENESIS IDE — EXPLOSIVE SCROLLING EXPERIENCE (450vh PINNED TRACK)
   Colors: #7000FF (Electric Violet), #FF007A (Neon Rose), #D4AF37 (Imperial Gold), #060609 (Deep Cyber Void)
   ========================================================================== */

.genesis-scroll-track {
  position: relative;
  width: 100%;
  height: 450vh; /* Longo percurso de scroll para scrubbing cinematográfico */
  background: #050508;
  margin: 0;
  padding: 0;
}

.genesis-pin-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  background: radial-gradient(ellipse 90% 80% at 50% 30%, rgba(112, 0, 255, 0.18) 0%, rgba(5, 5, 8, 0.98) 75%);
}

.genesis-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(112, 0, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(112, 0, 255, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* MEDIDOR DE FASE FLUTUANTE */
.genesis-phase-hud {
  position: absolute;
  top: 96px;
  left: 4vw;
  z-index: 20;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #c792ea;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 13, 20, 0.85);
  border: 1px solid rgba(112, 0, 255, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.25);
}

.genesis-phase-bar {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.genesis-phase-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7000ff, #ff007a);
  transition: width 0.05s linear;
}

/* HEADER DINÂMICO */
.genesis-header-hud {
  position: absolute;
  top: 90px;
  text-align: center;
  max-width: 860px;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.genesis-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #ff80bf;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.genesis-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #c792ea 70%, #ff80bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(112, 0, 255, 0.4);
}

.genesis-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: #a1a1aa;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.4;
}

/* PALCO CENTRAL 3D — DESKTOP + MOBILE */
.genesis-viewport-3d {
  position: relative;
  width: 92vw;
  max-width: 1200px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transform-style: preserve-3d;
}

/* DESKTOP WORKSPACE */
.genesis-desktop-frame {
  position: absolute;
  width: 760px;
  max-width: 90%;
  height: 480px;
  background: #0c0c12;
  border-radius: 14px;
  border: 1px solid rgba(112, 0, 255, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(112, 0, 255, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: border-color 0.3s ease;
}

.genesis-window-bar {
  display: flex;
  align-items: center;
  background: #13131c;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.genesis-window-dots {
  display: flex;
  gap: 6px;
  margin-right: 18px;
}

.genesis-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.genesis-window-dots span:nth-child(1) { background: #ff5f56; }
.genesis-window-dots span:nth-child(2) { background: #ffbd2e; }
.genesis-window-dots span:nth-child(3) { background: #27c93f; }

.genesis-window-tabs {
  display: flex;
  gap: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.genesis-tab {
  padding: 5px 14px;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #71717a;
}

.genesis-tab.active {
  background: #1c1c28;
  color: #d4af37;
  border-bottom: 2px solid #7000ff;
}

.genesis-editor-body {
  flex: 1;
  padding: 20px 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  background: #08080d;
  overflow: hidden;
}

.code-line {
  display: flex;
  gap: 16px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.code-num {
  color: #3f3f46;
  user-select: none;
  width: 24px;
  text-align: right;
}

.code-diff-del {
  background: rgba(255, 0, 70, 0.18);
  color: #ff6b8b;
  width: 100%;
  padding: 0 8px;
  border-left: 3px solid #ff0046;
  text-decoration: line-through;
}

.code-diff-add {
  background: rgba(0, 255, 128, 0.18);
  color: #50fa7b;
  width: 100%;
  padding: 0 8px;
  border-left: 3px solid #00ff80;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.15);
}

.genesis-terminal-bar {
  background: #0d0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #71717a;
}

/* SMARTPHONE MOBILE MOCKUP */
.genesis-mobile-frame {
  position: absolute;
  right: 6%;
  width: 280px;
  height: 500px;
  background: #09090e;
  border-radius: 40px;
  border: 3.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.35);
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  z-index: 10;
  transition: border-color 0.3s ease;
}

.genesis-mobile-island {
  width: 96px;
  height: 22px;
  background: #000000;
  border-radius: 12px;
  margin: 0 auto 12px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.genesis-mobile-screen {
  flex: 1;
  background: #11111a;
  border-radius: 28px;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.mobile-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 10px;
}

.mobile-diff-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  font-size: 10.5px;
  line-height: 1.5;
}

.mobile-touch-approve {
  background: linear-gradient(135deg, #7000ff, #ff007a);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(112, 0, 255, 0.6);
  transition: all 0.25s ease;
}

.mobile-touch-approve.approved {
  background: linear-gradient(135deg, #00ff80, #00b4d8);
  box-shadow: 0 0 35px rgba(0, 255, 128, 0.7);
}

/* HOLOGRAPHIC 5 MODES CAROUSEL NO SCROLL */
.genesis-modes-overlay {
  position: absolute;
  bottom: 30px;
  width: 90vw;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 15;
  pointer-events: none;
}

.genesis-mode-pill {
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(14px);
  text-align: center;
  opacity: 0.45;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.genesis-mode-pill.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: #ff007a;
  box-shadow: 0 0 30px rgba(255, 0, 122, 0.35);
  background: rgba(30, 20, 38, 0.92);
}

.genesis-mode-pill-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.genesis-mode-pill-sub {
  font-size: 9.5px;
  color: #a1a1aa;
}

/* PAINEL FINAL FOUNDER ALPHA NO SCROLL */
.genesis-founder-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(6, 6, 10, 0.95);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 40px;
  text-align: center;
}

.genesis-founder-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   LIVING ACTION REELS (VIDEOS EM LOOP CONTÍNUO)
   ========================================================================== */
.living-reels-section {
  padding: 100px 4vw;
  background: #08080b;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.living-reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.reel-card {
  background: rgba(16, 16, 24, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.reel-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
}

.reel-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.reel-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #d4af37;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.1em;
}

.reel-content {
  padding: 18px 20px;
}

.reel-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 6px;
}

.reel-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   7 STAGES OF SOVEREIGNTY PIPELINE
   ========================================================================== */
.sovereignty-pipeline-section {
  padding: 90px 4vw;
  background: radial-gradient(circle at 50% 50%, rgba(66, 107, 255, 0.08) 0%, #08080b 80%);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 40px auto 0;
}

.pipeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pipeline-card:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
}

.pipeline-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #000;
}

.pipeline-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pipeline-card:hover .pipeline-img-wrap img {
  transform: scale(1.08);
}

.pipeline-step {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: #d4af37;
  margin-bottom: 4px;
}

.pipeline-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   OPERATOR COCKPIT LIFESTYLE
   ========================================================================== */
.cockpit-section {
  padding: 110px 4vw;
  background: #060609;
  position: relative;
}

.cockpit-container {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cockpit-visual {
  flex: 1 1 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.cockpit-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.cockpit-copy {
  flex: 1 1 450px;
}

.cockpit-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #d4af37;
  margin-bottom: 12px;
}

.cockpit-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
}

.cockpit-desc {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   PRODUCT FILM THEATER
   ========================================================================== */
.product-theater-section {
  padding: 100px 4vw;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.1) 0%, #050507 70%);
  text-align: center;
}

.theater-wrap {
  max-width: 1040px;
  margin: 36px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(212, 175, 55, 0.15);
  background: #000;
  position: relative;
}

.theater-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .genesis-viewport-3d {
    flex-direction: column;
    height: auto;
  }
  .genesis-desktop-frame {
    position: relative;
    width: 100%;
    transform: none !important;
  }
  .genesis-mobile-frame {
    position: relative;
    right: auto;
    width: 260px;
    margin-top: 16px;
    transform: none !important;
  }
  .genesis-modes-overlay {
    display: none;
  }
}
