/* =============================================
   ByteBot — Global Styles
   Theme: Black #000 bg, lime #84CC16 accent
   Font: JetBrains Mono
   ============================================= */

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

body {
  background: #000000;
  color: #e5e5e5;
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #84CC16; }

/* =============================================
   Scroll Progress Bar
   ============================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #84CC16, #65a30d, #84CC16);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(132, 204, 22, 0.6);
}

/* =============================================
   Animated Gradient Blobs
   ============================================= */
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.15); }
  66% { transform: translate(25px, -35px) scale(0.85); }
}
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.gradient-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #84CC16 0%, #166534 50%, transparent 70%);
  animation: blobFloat1 15s ease-in-out infinite;
}
.gradient-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #65a30d 0%, #14532d 50%, transparent 70%);
  animation: blobFloat2 18s ease-in-out infinite;
}

/* =============================================
   Glass Morphism Nav
   ============================================= */
.glass-nav {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(132, 204, 22, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-nav.nav-scrolled {
  background: rgba(0, 0, 0, 0.92) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(132, 204, 22, 0.05);
  border-bottom-color: rgba(132, 204, 22, 0.15);
}

/* Nav Link Hover Underline */
.nav-hover-underline {
  position: relative;
}
.nav-hover-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #84CC16;
  transition: width 0.3s ease;
}
.nav-hover-underline:hover::after {
  width: 100%;
}

/* =============================================
   Button Premium Hover
   ============================================= */
.btn-premium {
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(132, 204, 22, 0.3), 0 0 40px rgba(132, 204, 22, 0.1);
}

/* =============================================
   Card Hover Lift
   ============================================= */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(132, 204, 22, 0.08);
}

/* =============================================
   Layered Shadows
   ============================================= */
.shadow-layered {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.15);
}

/* =============================================
   Section Dividers
   ============================================= */
.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #84CC16, transparent);
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Pricing Card Elevated
   ============================================= */
.pricing-card-elevated {
  transform: scale(1.05);
  box-shadow:
    0 0 40px rgba(132, 204, 22, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 1;
  position: relative;
}
@media (max-width: 768px) {
  .pricing-card-elevated {
    transform: scale(1);
  }
}

/* =============================================
   Testimonial Cards
   ============================================= */
.testimonial-card {
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(132, 204, 22, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 48px;
  color: rgba(132, 204, 22, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* =============================================
   ZeDigital Products Grid
   ============================================= */
.product-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #1a1a1a;
  background: #050505;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  font-size: 11px;
  color: #a3a3a3;
}
.product-link:hover {
  border-color: #84CC16;
  background: rgba(132, 204, 22, 0.04);
  color: #84CC16;
  transform: translateY(-1px);
}

/* =============================================
   Counter Animation
   ============================================= */
.counter-value {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
}

/* =============================================
   Blinking Cursor
   ============================================= */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes termCursor {
  0%, 100% { border-right-color: #84CC16; }
  50% { border-right-color: transparent; }
}
.typing-cursor {
  border-right: 2px solid #84CC16;
  animation: termCursor 0.7s step-end infinite;
  padding-right: 2px;
}

/* =============================================
   Terminal Window Chrome
   ============================================= */
.term-window {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}
.term-titlebar {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot-red { background: #ff5f56; }
.term-dot-yellow { background: #ffbd2e; }
.term-dot-green { background: #27c93f; }
.term-title {
  color: #666;
  font-size: 12px;
  margin-left: auto;
  margin-right: auto;
}
.term-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  min-height: 60px;
}

/* =============================================
   Scanline Effect
   ============================================= */
.scanlines {
  position: relative;
}
.scanlines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(132, 204, 22, 0.015) 2px,
      rgba(132, 204, 22, 0.015) 4px
    ),
    linear-gradient(
      180deg,
      rgba(132, 204, 22, 0.02) 0%,
      transparent 50%,
      rgba(132, 204, 22, 0.01) 100%
    );
}

/* =============================================
   Command Prompt Styling
   ============================================= */
.prompt-text { color: #27c93f; }
.prompt-dir { color: #3b82f6; }
.cmd-output { color: #a3a3a3; }
.cmd-output-lime { color: #84CC16; }
.cmd-output-green { color: #27c93f; }
.cmd-output-red { color: #ef4444; }
.cmd-output-yellow { color: #eab308; }
.cmd-output-blue { color: #3b82f6; }
.cmd-output-cyan { color: #06b6d4; }
.cmd-output-white { color: #e5e5e5; }
.cmd-output-dim { color: #525252; }

/* =============================================
   Section Separator
   ============================================= */
.section-sep {
  border-top: 1px solid #1a1a1a;
}

/* =============================================
   Green Glow on Hover
   ============================================= */
.glow-hover {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.glow-hover:hover {
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.15), 0 0 40px rgba(132, 204, 22, 0.08);
  transform: translateY(-2px);
}

/* =============================================
   Architecture Connector Lines
   ============================================= */
.arch-arrow {
  color: #84CC16;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* =============================================
   Step Label
   ============================================= */
.step-label {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #84CC16;
  padding: 4px 10px;
  font-size: 11px;
  color: #84CC16;
  white-space: nowrap;
}

/* =============================================
   Desktop Mockup
   ============================================= */
.desktop-screen {
  background: #111;
  border: 2px solid #333;
  border-radius: 2px;
  position: relative;
}
.desktop-screen::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #333;
  margin: 8px auto 0;
}

.sim-desktop {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1117 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}
.sim-taskbar {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}
.sim-dock {
  background: rgba(26,26,26,0.95);
  border-top: 1px solid #333;
}

/* =============================================
   Click Ripple Animation
   ============================================= */
@keyframes clickRipple {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.click-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: clickRipple 0.6s ease-out forwards;
  pointer-events: none;
}
.click-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =============================================
   Key Press Animation
   ============================================= */
@keyframes keyPress {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.key-flash {
  animation: keyPress 0.3s ease-out;
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-menu-open {
  display: block !important;
}

/* =============================================
   Navigation — Active Page
   ============================================= */
.nav-link-active {
  color: #84CC16 !important;
}

/* =============================================
   Pricing Cards
   ============================================= */
.pricing-card {
  border: 1px solid #2a2a2a;
  background: #000;
  padding: 2rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.1);
  border-color: #84CC16;
}
.pricing-card-popular {
  border: 2px solid #84CC16;
  position: relative;
  background: linear-gradient(180deg, rgba(132, 204, 22, 0.04) 0%, #000 40%);
}
.pricing-card-popular::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #84CC16;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 12px;
  letter-spacing: 0.1em;
}

/* =============================================
   Feature Matrix Table
   ============================================= */
.feature-matrix {
  width: 100%;
  border-collapse: collapse;
}
.feature-matrix th,
.feature-matrix td {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid #1a1a1a;
}
.feature-matrix th {
  color: #84CC16;
  font-weight: 600;
  border-bottom: 1px solid #2a2a2a;
}
.feature-matrix td {
  color: #a3a3a3;
}
.feature-matrix tr:hover td {
  background: rgba(132, 204, 22, 0.03);
}

/* =============================================
   FAQ Accordion
   ============================================= */
.faq-item {
  border: 1px solid #2a2a2a;
  background: #000;
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: #3a3a3a;
}
.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-question:hover {
  background: rgba(132, 204, 22, 0.03);
}
.faq-question h3 {
  color: #84CC16;
  font-size: 14px;
  font-weight: 600;
}
.faq-toggle {
  color: #84CC16;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* =============================================
   Demo Animation Steps
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes slideRight {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.slide-right {
  animation: slideRight 0.5s ease forwards;
}

@keyframes pulse-lime {
  0%, 100% { box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(132, 204, 22, 0); }
}
.pulse-lime {
  animation: pulse-lime 2s infinite;
}

@keyframes progressBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes fileMove {
  0% { transform: translateX(0) translateY(0); opacity: 1; }
  50% { transform: translateX(40px) translateY(-10px); opacity: 0.7; }
  100% { transform: translateX(80px) translateY(0); opacity: 1; }
}

@keyframes treeGrow {
  from { max-height: 0; opacity: 0; }
  to { max-height: 300px; opacity: 1; }
}
.tree-grow {
  animation: treeGrow 1s ease forwards;
  overflow: hidden;
}

/* =============================================
   Loading Spinner
   ============================================= */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #2a2a2a;
  border-top-color: #84CC16;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* =============================================
   Desktop Mockup for Demo
   ============================================= */
.demo-desktop {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1117 50%, #0a1628 100%);
  border: 1px solid #333;
  border-radius: 4px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.demo-file-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.demo-window {
  position: absolute;
  border: 1px solid #444;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-window-titlebar {
  background: #2a2a2a;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

/* =============================================
   Typing Animation for Demo
   ============================================= */
@keyframes typeChar {
  from { width: 0; }
  to { width: 100%; }
}

/* =============================================
   Payment Method Cards
   ============================================= */
.payment-card {
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  padding: 1.25rem;
  transition: border-color 0.3s ease;
}
.payment-card:hover {
  border-color: #84CC16;
}

/* =============================================
   Legal Pages
   ============================================= */
.legal-content h2 {
  color: #84CC16;
  font-size: 16px;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-content h3 {
  color: #84CC16;
  font-size: 14px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-content ul {
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li {
  margin-bottom: 0.25rem;
}
.legal-content a {
  color: #84CC16;
}
.legal-content a:hover {
  text-decoration: underline;
}

/* =============================================
   Use Case Cards
   ============================================= */
.use-case-card {
  border: 1px solid #2a2a2a;
  background: #000;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.use-case-card:hover {
  border-color: #84CC16;
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.08);
}

/* =============================================
   Feature Page — Feature Block
   ============================================= */
.feature-block {
  border: 1px solid #2a2a2a;
  background: #000;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-block:hover {
  border-color: #84CC16;
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.08);
}

/* =============================================
   Responsive Utilities
   ============================================= */
@media (max-width: 768px) {
  .term-body {
    padding: 12px;
    font-size: 12px;
  }
  .term-titlebar {
    padding: 8px 10px;
  }
  .legal-content h2 { font-size: 14px; }
  .legal-content p, .legal-content ul { font-size: 11px; }
}
