@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  --navy-deepest: #060a14;
  --navy-deep: #0a0f1e;
  --navy-mid: #111832;
  --navy-light: #1a2342;
  --navy-surface: #1e2a4a;
  --blue-electric: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --red-alert: #ef4444;
  --red-warm: #e83e5a;
  --red-bright: #ff4d6a;
  --red-glow: rgba(239, 68, 68, 0.12);
  --white-pure: #ffffff;
  --white-soft: #f1f5f9;
  --white-muted: #cbd5e1;
  --gray-text: #94a3b8;
  --gray-dim: #64748b;
  --gray-border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(59, 130, 246, 0.05);
  --shadow-glow-red: 0 0 30px rgba(232, 62, 90, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-deepest);
  color: var(--white-muted);
  line-height: 1.7;
  font-size: clamp(0.938rem, 0.9rem + 0.25vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--white-pure);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white-pure);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 2rem + 2.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem); }
h4 { font-size: clamp(1.0625rem, 1rem + 0.375vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--gray-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-text);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-warm);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--white-pure);
}

.nav-link:hover::after {
  width: 100%;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 10;
}

.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--white-pure);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--red-warm);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--white-muted);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 3vw, 3rem) clamp(3rem, 6vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 62, 90, 0.08) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  font-weight: 500;
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow-label .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--red-warm);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 62, 90, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(232, 62, 90, 0); }
}

.hero-title {
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--red-warm), var(--red-bright), var(--blue-electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  color: var(--gray-text);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-warm), var(--red-alert));
  color: var(--white-pure);
  box-shadow: 0 2px 12px rgba(232, 62, 90, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 62, 90, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  color: var(--white-pure);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--navy-surface);
  color: var(--white-muted);
  border: 1px solid var(--gray-border);
}

.btn-secondary:hover {
  background: var(--navy-light);
  color: var(--white-pure);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===== SECTIONS ===== */
.section-wrapper {
  padding: clamp(3.5rem, 6vw, 6.5rem) clamp(1.25rem, 3vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-wrapper.alt-bg {
  background: var(--navy-deep);
  max-width: 100%;
  padding-left: clamp(1.25rem, 5vw, 6rem);
  padding-right: clamp(1.25rem, 5vw, 6rem);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-heading.centered {
  text-align: center;
}

.lead-paragraph {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: var(--gray-text);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.lead-paragraph.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.body-text {
  color: var(--gray-text);
  line-height: 1.75;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.card-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* ===== CARDS ===== */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-electric), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-bright);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-icon.red {
  background: rgba(232, 62, 90, 0.1);
  color: var(--red-bright);
  border: 1px solid rgba(232, 62, 90, 0.15);
}

.card-icon.mixed {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(232, 62, 90, 0.1));
  color: var(--white-pure);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white-pure);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--gray-text);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.stat-item {
  background: var(--navy-mid);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  font-weight: 700;
  color: var(--white-pure);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-number.red { color: var(--red-bright); }
.stat-number.blue { color: var(--blue-bright); }

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--navy-deepest);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--gray-text);
}

.code-block .comment { color: var(--gray-dim); }
.code-block .keyword { color: var(--blue-bright); }
.code-block .string { color: var(--red-bright); }
.code-block .func { color: #a78bfa; }
.code-block .number { color: #fbbf24; }

/* ===== DASHBOARD PREVIEW ===== */
.dashboard-preview {
  background: var(--navy-mid);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 20px 60px rgba(0, 0, 0, 0.4);
  margin-top: 3rem;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--gray-border);
}

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

.toolbar-dot.red { background: #ff5f57; }
.toolbar-dot.yellow { background: #ffbd2e; }
.toolbar-dot.green { background: #28c840; }

.toolbar-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-dim);
}

.dashboard-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  min-height: 200px;
}

.dash-metric {
  background: var(--navy-deep);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.dash-metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-dim);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.dash-metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-pure);
}

.dash-metric-value.ok { color: #28c840; }
.dash-metric-value.warn { color: #fbbf24; }
.dash-metric-value.critical { color: var(--red-bright); }

.dash-sparkline {
  height: 40px;
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.spark-bar {
  flex: 1;
  background: var(--blue-electric);
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
  min-height: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--gray-border);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 3rem) 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-dim);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.65;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-text);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white-pure);
}

.footer-bottom {
  border-top: 1px solid var(--gray-border);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-dim);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #28c840;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #28c840;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.4);
}

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-border), transparent);
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-left .nav-link,
  .nav-right .nav-link {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-left {
    justify-content: flex-start;
  }

  .header-inner {
    height: 64px;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section::after {
    background-size: 40px 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

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

/* ===== TWO-COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== LOGO STRIP ===== */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  padding: 2rem 0;
  opacity: 0.4;
}

.logo-strip-item {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== ALERT BADGE ===== */
.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.alert-badge.ok {
  background: rgba(40, 200, 64, 0.1);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.15);
}

.alert-badge.warn {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.alert-badge.critical {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-bright);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: var(--navy-mid);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2vw, 2rem);
}

.testimonial-quote {
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-bright);
  border: 1px solid var(--gray-border);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-pure);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-dim);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 62, 90, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .hero-actions {
  margin-top: 2rem;
}
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
