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

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

:root {
  --bg-primary: #080c18;
  --bg-surface: #0f1629;
  --bg-elevated: #161d33;
  --bg-card: #131a2e;
  --border-subtle: rgba(168, 85, 247, 0.12);
  --border-hover: rgba(168, 85, 247, 0.3);
  --primary: #a855f7;
  --primary-light: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.35);
  --accent-green: #22ff88;
  --accent-green-dim: rgba(34, 255, 136, 0.15);
  --text-primary: #f0f2f8;
  --text-secondary: #8b95b0;
  --text-muted: #5a6380;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-height: 64px;
  --max-width: 1200px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

body {
  font-family: var(--font-sans);
  font-size: clamp(0.938rem, 0.9rem + 0.2vw, 1.063rem);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 1.8rem + 2.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
h4 { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }

p {
  margin-bottom: 1em;
  max-width: 72ch;
}

p:last-child {
  margin-bottom: 0;
}

/* ─── NAV ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 100%;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(168, 85, 247, 0.1);
}

.nav-cta {
  font-size: 0.813rem !important;
  font-weight: 600 !important;
  color: var(--bg-primary) !important;
  background: var(--primary);
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  transition: background var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background var(--transition-fast);
}

.nav-toggle:hover span {
  background: var(--white);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
    gap: 0.25rem;
    background: rgba(8, 12, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 300ms ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1.05rem;
    padding: 12px 14px;
    width: 100%;
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
  }
}

/* ─── HERO ─── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(400px, 60vw, 900px);
  height: clamp(400px, 60vw, 900px);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__text {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero__title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

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

.hero__subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.hero__mockup {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--primary-glow);
}

.mockup__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.mockup__dot:first-child { background: #ff5f57; }
.mockup__dot:nth-child(2) { background: #ffbd2e; }
.mockup__dot:nth-child(3) { background: var(--accent-green); }

.mockup__status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mockup__row-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup__row-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.mockup__row-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--green { background: var(--accent-green); box-shadow: 0 0 8px rgba(34, 255, 136, 0.5); }
.dot--amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.dot--red { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }

.mockup__row-status--green { color: var(--accent-green); }
.mockup__row-status--amber { color: #fbbf24; }
.mockup__row-status--red { color: #f87171; }

@media (max-width: 860px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__mockup {
    max-width: 400px;
  }
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.938rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--primary), #c026d3);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.45);
  color: var(--bg-primary);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.813rem;
  padding: 8px 18px;
}

/* ─── SECTION ─── */

.section {
  padding: clamp(3.5rem, 6vw, 7rem) clamp(1rem, 3vw, 2.5rem);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section__heading {
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── CARDS ─── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}

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

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--primary-light);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── FOOTER ─── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 3vw, 2.5rem);
  background: var(--bg-surface);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

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

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__logo:hover {
  color: var(--white);
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 255, 136, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

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

/* ─── UTILITY ─── */

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

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

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

/* ─── MISC ENHANCEMENTS ─── */

::selection {
  background: rgba(168, 85, 247, 0.3);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── STATUS BADGE ─── */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-badge--online {
  color: var(--accent-green);
  background: var(--accent-green-dim);
}

.status-badge--degraded {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.status-badge--offline {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* ─── METRICS ROW ─── */

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── DIVIDER ─── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

/* ─── CODE BLOCK STYLE ─── */

.code-block {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.code-block .keyword { color: var(--primary-light); }
.code-block .string { color: var(--accent-green); }
.code-block .comment { color: var(--text-muted); }

/* ─── IMAGE / FIGURE ─── */

.img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

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

.figure {
  margin-bottom: 2rem;
}

.figure__caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* ─── FEATURED SECTION (ALTERNATING BG) ─── */

.section--elevated {
  background: var(--bg-surface);
}

/* ─── LOGO STRIP ─── */

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem 0;
  opacity: 0.5;
}

.logo-strip__item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── ALERT / CALL-OUT ─── */

.callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.callout--success {
  border-left-color: var(--accent-green);
}

.callout--warning {
  border-left-color: #fbbf24;
}

.callout__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.callout__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── TABLE ─── */

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

/* ─── LIST ─── */

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ─── TESTIMONIAL ─── */

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2vw, 2rem);
  position: relative;
}

.testimonial__quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

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

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.testimonial__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial__role {
  font-size: 0.75rem;
  color: var(--text-muted);
}
/* 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}
