/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #060910;
  --bg-secondary: #0b111e;
  --bg-glass: rgba(15, 23, 42, 0.4);
  --bg-glass-strong: rgba(15, 23, 42, 0.7);
  
  /* Accents */
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #8b5cf6; /* Violet */
  --accent-tertiary: #0ea5e9; /* Sky blue */
  
  --status-red: #ef4444;
  --status-red-light: rgba(239, 68, 68, 0.15);
  --status-amber: #f59e0b;
  --status-amber-light: rgba(245, 158, 11, 0.15);
  --status-green: #10b981;
  --status-green-light: rgba(16, 185, 129, 0.15);
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Curves */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography System --- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout & Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

/* --- UI Components --- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Icons */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.icon-red { background: var(--status-red-light); color: var(--status-red); }
.icon-amber { background: var(--status-amber-light); color: var(--status-amber); }
.icon-blue { background: rgba(14, 165, 233, 0.15); color: var(--accent-tertiary); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-highlight {
  color: var(--accent-tertiary) !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 9, 16, 0) 70%);
  z-index: -1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-pill);
  color: var(--status-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--status-green);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Orb Animation --- */
.hero-orb-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin-top: 4rem;
}

.core-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.6), inset 0 0 20px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.orb-icon {
  font-size: 3rem;
  color: white;
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
}

.ring-1 {
  width: 180px; height: 180px;
  border-color: rgba(99, 102, 241, 0.3);
  animation: spin 15s linear infinite;
}

.ring-2 {
  width: 240px; height: 240px;
  border-color: rgba(14, 165, 233, 0.2);
  border-style: dashed;
  animation: spin 25s linear infinite reverse;
}

.ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(139, 92, 246, 0.15);
  animation: spin 35s linear infinite;
}

/* --- Section Headers --- */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- Grids --- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- Animations --- */
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -60%); }
}

/* Reveal Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .section { padding: 4rem 0; }
  .hero { padding-top: 6rem; min-height: auto; padding-bottom: 3rem; }
}

/* --- Solutions Grid --- */
.solution-card {
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-card {
  position: relative;
  border: 1px solid var(--accent-secondary);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.4));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

/* --- Intelligence Hub Section --- */
.intelligence-section {
  position: relative;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.intelligence-section::before {
  content: '';
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(6, 9, 16, 0) 70%);
  z-index: 0;
}

.hub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hub-features {
  list-style: none;
  margin-top: 2.5rem;
}

.hub-features li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hub-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.hub-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mock Dashboard UI */
.hub-dashboard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
}

.dash-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.dash-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}
.dash-dots span:nth-child(1) { background: #ff5f56; }
.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #27c93f; }

.dash-title {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-body {
  padding: 1.5rem;
  background: var(--bg-primary);
}

.dash-controls {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.scan-container {
  height: 250px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-y: hidden;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  position: relative;
  display: flex;
  flex-direction: column;
}

.scan-idle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
}

.scan-idle i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.log-entry {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  animation: slideInRight 0.3s ease-out forwards;
}

.log-time { color: var(--text-muted); white-space: nowrap; }
.log-info { color: var(--accent-tertiary); }
.log-success { color: var(--status-green); }
.log-warning { color: var(--status-amber); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; }
}

/* --- Interactive Demo Widget --- */
.demo-widget-container {
  width: 100%;
  max-width: 580px;
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.demo-widget-container h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-group select option {
  background: var(--bg-primary);
  color: white;
}

.btn-demo-call {
  margin-top: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-demo-call.active {
  background: var(--status-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Sound Wave Animation */
.wave-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background-color: white;
  border-radius: 3px;
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 1.25rem;
  }
}
