:root {
  --bg-deep: #07090E;
  --bg-surface: #0D131F;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(24, 34, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(56, 189, 248, 0.4);
  --accent-cyan: #38BDF8;
  --accent-blue: #0284C7;
  --accent-violet: #818CF8;
  --text-pure: #FFFFFF;
  --text-platinum: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --glow-cyan: 0 0 35px -5px rgba(56, 189, 248, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-platinum);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(129, 140, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
    var(--bg-deep);
}

/* Background Cyber Grid */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 60%, transparent 95%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 45%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--accent-cyan);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-family: var(--font-heading);
}

.btn-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  color: #07090E;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25);
  background: #FFFFFF;
}

.btn-glow {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

.btn-glow:hover {
  background: var(--accent-cyan);
  color: #07090E;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-bright);
  color: var(--text-platinum);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-pure);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  padding: 110px 0 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Dashboard Mockup Showcase */
.dashboard-frame {
  margin: 40px auto 0;
  max-width: 1040px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background: rgba(13, 19, 31, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.7),
    0 0 80px -20px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  text-align: left;
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.frame-dots {
  display: flex;
  gap: 8px;
}

.frame-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.frame-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.frame-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

/* Terminal / Code Window */
.code-panel {
  background: #05070B;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #A5B4FC;
  overflow-x: auto;
  line-height: 1.6;
}

.code-panel .cmnt { color: var(--text-dim); }
.code-panel .kw { color: #38BDF8; font-weight: 600; }
.code-panel .str { color: #34D399; }
.code-panel .fn { color: #F472B6; }

/* Metrics Telemetry in Hero */
.metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

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

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Live Stats Strip */
.stats-strip {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 19, 31, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* Section Header */
.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Capability Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-cyan);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 20px;
  font-family: var(--font-heading);
}

.card-link:hover {
  text-decoration: underline;
}

/* Architecture Showcase */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.arch-visual {
  background: #05070B;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.arch-visual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: 0.2s;
}

.arch-layer:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.arch-layer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* Enterprise Security Badges */
.security-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.security-text h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.security-text p {
  color: var(--text-muted);
  max-width: 580px;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.badge-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-platinum);
}

/* Contact / Request Access Form */
.cta-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 9, 14, 0.95) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 60px -10px rgba(56, 189, 248, 0.15);
}

.cta-box h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.cta-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34D399;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 11, 0.95);
  padding: 80px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--text-platinum);
  font-family: var(--font-mono);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-body { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .security-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 2.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
