/**
 * HiveGuardian B2B SaaS Platform - Core Stylesheet
 * Premium Dark-Mode Design System | Mobile-First Responsive Layout
 */

:root {
  --bg-darker: #080a0d;
  --bg-dark: #0f131a;
  --bg-card: rgba(22, 28, 38, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.25);
  
  --text-primary: #f0f3f8;
  --text-secondary: #94a3b8;
  
  --color-cyan: #00e5ff;
  --color-emerald: #00e676;
  --color-gold: #d4af37;
  --color-red: #ff3d00;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

#orb-1 {
  width: 400px;
  height: 400px;
  background-color: var(--color-cyan);
  top: -100px;
  right: -50px;
}

#orb-2 {
  width: 500px;
  height: 500px;
  background-color: var(--color-gold);
  bottom: -150px;
  left: -100px;
}

/* Premium Glassmorphism Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(8, 10, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  padding: 12px 16px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--color-cyan);
}

.active-badge {
  font-size: 11px;
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--color-cyan);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--border-glow);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.glass-select {
  background: var(--bg-darker);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
  color: var(--bg-darker);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Main Content Wrapper */
.main-content {
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 24px;
}

/* Interactive Terminal Section */
.terminal-section {
  max-width: 850px;
  margin: 0 auto 48px auto;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.terminal-card:hover {
  border-color: var(--border-glow);
}

.terminal-header {
  background-color: rgba(8, 10, 13, 0.6);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red-dot { background-color: #ff5f56; }
.yellow-dot { background-color: #ffbd2e; }
.green-dot { background-color: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.status-indicator {
  font-size: 11px;
  color: var(--color-emerald);
  font-weight: bold;
}

.terminal-intake {
  background-color: rgba(8, 10, 13, 0.4);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
}

.scan-btn {
  background-color: var(--color-cyan);
  color: var(--bg-darker);
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.scan-btn:hover { opacity: 0.9; }

.terminal-body {
  padding: 16px;
  height: 350px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: rgba(8, 10, 13, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line.comment { color: #5c6370; }
.line.prompt { color: var(--color-cyan); }
.line.bold { font-weight: bold; color: var(--text-primary); }
.line.better { color: var(--color-emerald); font-weight: bold; }
.blink { animation: blinker 1s linear infinite; }

@keyframes blinker {
  50% { opacity: 0; }
}

/* Universal Omnibox Section */
.omnibox-section {
  max-width: 700px;
  margin: 0 auto 64px auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.omnibox-card {
  display: flex;
  padding: 8px;
  margin-bottom: 16px;
}

.omnibox-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 12px;
  font-size: 15px;
}

.omnibox-btn {
  background-color: var(--text-primary);
  color: var(--bg-darker);
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.omnibox-response {
  text-align: left;
  padding: 20px;
  margin-top: 16px;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ai-badge {
  font-size: 11px;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: bold;
}

.close-response {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
}

.response-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Strategic Pricing Cards Section */
.pricing-section {
  margin-bottom: 64px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-glass);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.highlight-card {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px 0 rgba(0, 229, 255, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  background-color: var(--color-cyan);
  color: var(--bg-darker);
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tier-price {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  height: 40px;
}

.card-divider {
  border: none;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.card-features li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li::before {
  content: '✓';
  color: var(--color-emerald);
  font-weight: bold;
}

.card-features li.disabled {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
}

.card-features li.disabled::before {
  content: '✕';
  color: var(--color-red);
}

.card-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.card-btn.primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
  color: var(--bg-darker);
}

.card-btn.secondary {
  background: var(--bg-darker);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.card-btn:hover { opacity: 0.9; }

/* Viral Outrage Loop Section */
.outrage-section {
  max-width: 900px;
  margin: 0 auto 64px auto;
}

.outrage-card {
  padding: 40px 24px;
  text-align: center;
  border: 1px solid var(--border-glass);
}

.outrage-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.outrage-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.disruption-table-container {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.disruption-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background-color: rgba(8, 10, 13, 0.4);
}

.disruption-table th, .disruption-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.disruption-table th {
  background-color: rgba(8, 10, 13, 0.6);
  font-weight: 700;
  color: var(--text-secondary);
}

.disruption-table td.better {
  color: var(--color-emerald);
  font-weight: 700;
}

.share-btn {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background-color: rgba(212, 175, 55, 0.25);
  transform: scale(1.02);
}

/* Footer Section */
.glass-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  padding: 32px 16px;
  z-index: 10;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-left p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.noi-badge {
  font-size: 11px;
  background-color: rgba(0, 230, 118, 0.15);
  color: var(--color-emerald);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 230, 118, 0.3);
  font-weight: bold;
}

.sentinel-time {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- MOBILE FIRST MEDIA QUERIES (FLUID SCALING) --- */

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-right {
    align-items: flex-end;
  }
}

@media (max-width: 480px) {
  .shrink-on-mobile {
    display: none; /* Auto-collapses large visual buttons on extreme mobiles */
  }
}
