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

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Reset ── */
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { border: none; cursor: pointer; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── TWO-ROW HEADER ── */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.sp-header--topbar {
  background: #0a1628;
  padding: 0.4rem 0;
}

.sp-header--topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-status-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sp-status-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.sp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.sp-status-dot--green {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
}

.sp-status-dot--yellow {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245,158,11,0.5);
}

.sp-status-dot--red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.sp-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sp-topbar-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  color: #94a3b8;
  transition: color 0.2s;
}

.sp-topbar-link:hover {
  color: #60a5fa;
}

.sp-header--main {
  padding: 0.85rem 0;
  background: #ffffff;
}

.sp-header--main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #0a1628;
  letter-spacing: -0.02em;
}

.sp-logo__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sp-logo__text span {
  color: #3b82f6;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}

.sp-nav__link {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  font-weight: 500;
  color: #475569;
  padding: 0.35rem 0.2rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.sp-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.sp-nav__link:hover {
  color: #0a1628;
}

.sp-nav__link:hover::after {
  width: 100%;
}

.sp-nav__cta {
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}

.sp-nav__cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.sp-nav__cta::after {
  display: none;
}

/* Mobile menu toggle */
.sp-mobile-toggle {
  display: none;
  background: none;
  padding: 0.5rem;
  color: #0a1628;
}

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

/* ── HERO ── */
.page-hero {
  background: linear-gradient(165deg, #0a1628 0%, #112240 40%, #1a3366 100%);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  font-weight: 500;
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-label__dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  position: relative;
}

.hero-dashboard__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.hero-dashboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-dashboard__dot--r { background: #ef4444; }
.hero-dashboard__dot--y { background: #f59e0b; }
.hero-dashboard__dot--g { background: #10b981; }

.hero-dashboard__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.hero-dashboard__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid #1e293b;
}

.hero-service-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.hero-service-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
}

.hero-service-status--ok {
  color: #10b981;
}

.hero-service-status--warn {
  color: #f59e0b;
}

.hero-service-status--err {
  color: #ef4444;
}

.hero-pulse-line {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
  margin-top: 0.5rem;
  height: 24px;
}

.hero-pulse-bar {
  width: 3px;
  background: #3b82f6;
  border-radius: 2px;
  animation: pulse-bar 1.5s ease-in-out infinite;
}

.hero-pulse-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.hero-pulse-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.hero-pulse-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.hero-pulse-bar:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.hero-pulse-bar:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.hero-pulse-bar:nth-child(6) { height: 20px; animation-delay: 0.5s; }
.hero-pulse-bar:nth-child(7) { height: 12px; animation-delay: 0.6s; }
.hero-pulse-bar:nth-child(8) { height: 18px; animation-delay: 0.7s; }
.hero-pulse-bar:nth-child(9) { height: 8px; animation-delay: 0.8s; }
.hero-pulse-bar:nth-child(10) { height: 15px; animation-delay: 0.9s; }
.hero-pulse-bar:nth-child(11) { height: 20px; animation-delay: 1.0s; }
.hero-pulse-bar:nth-child(12) { height: 10px; animation-delay: 1.1s; }

@keyframes pulse-bar {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── BUTTONS ── */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.primary-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

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

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: 1px solid #475569;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  background: rgba(59,130,246,0.05);
}

/* ── SECTIONS ── */
.section-wrapper {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-wrapper--alt {
  background: #f1f5f9;
}

.section-wrapper--dark {
  background: #0a1628;
  color: #f8fafc;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0a1628;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-wrapper--dark .section-heading {
  color: #ffffff;
}

.section-heading span {
  color: #3b82f6;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(59,130,246,0.08);
  border-radius: 4px;
}

.section-wrapper--dark .eyebrow {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #64748b;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-wrapper--dark .lead-paragraph {
  color: #94a3b8;
}

.body-text {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: #475569;
  line-height: 1.7;
  max-width: 680px;
}

.section-wrapper--dark .body-text {
  color: #94a3b8;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card__icon--blue {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}

.card__icon--green {
  background: rgba(16,185,129,0.1);
  color: #10b981;
}

.card__icon--red {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.card__icon--navy {
  background: rgba(10,22,40,0.08);
  color: #0a1628;
}

.card-title {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card .body-text {
  margin-bottom: 0;
}

/* ── IMAGE ── */
.image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image:hover img {
  transform: scale(1.02);
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* ── FOOTER ── */
.sp-footer {
  background: #0a1628;
  color: #94a3b8;
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.sp-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #1e293b;
}

.sp-footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 300px;
  color: #64748b;
}

.sp-footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.sp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sp-footer__link {
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s;
}

.sp-footer__link:hover {
  color: #60a5fa;
}

.sp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #475569;
}

.sp-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sp-footer__bottom-links a {
  color: #475569;
  transition: color 0.2s;
}

.sp-footer__bottom-links a:hover {
  color: #60a5fa;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-dashboard {
    max-width: 400px;
  }

  .sp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sp-nav {
    display: none;
  }

  .sp-mobile-toggle {
    display: block;
  }

  .sp-header--topbar .container {
    justify-content: center;
  }

  .sp-topbar-right {
    display: none;
  }

  .sp-footer__grid {
    grid-template-columns: 1fr;
  }

  .sp-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .sp-footer__bottom-links {
    justify-content: center;
  }

  .hero-dashboard {
    max-width: 100%;
  }
}
/* 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}
