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

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.938rem, 0.9rem + 0.25vw, 1.063rem);
  line-height: 1.65;
  color: #1a2332;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f3a;
  --navy-700: #162d50;
  --navy-600: #1e3a5f;
  --navy-500: #264a73;
  --blue-600: #0055dd;
  --blue-500: #0066ff;
  --blue-400: #3388ff;
  --blue-300: #66aaff;
  --blue-200: #99ccff;
  --blue-100: #d0e4ff;
  --blue-50: #eef4ff;
  --red-500: #e53e3e;
  --red-400: #f56565;
  --red-50: #fff5f5;
  --green-500: #38a169;
  --green-50: #f0fff4;
  --yellow-500: #d69e2e;
  --yellow-50: #fffff0;
  --gray-900: #1a202c;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 22, 40, 0.08), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.12), 0 4px 12px rgba(10, 22, 40, 0.06);
  --shadow-blue: 0 4px 20px rgba(0, 102, 255, 0.25);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PAGE LAYOUT ===== */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-300);
}

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

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

.logo-link:hover {
  color: var(--blue-500);
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-desktop a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--navy-900);
  background: var(--gray-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
  box-shadow: 0 6px 25px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  background: var(--blue-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--navy-900);
  background: var(--gray-100);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: linear-gradient(170deg, var(--white) 0%, var(--blue-50) 50%, var(--white) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-500);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--blue-100);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-eyebrow .status-dot {
  width: 7px;
  height: 7px;
  background: var(--green-500);
  border-radius: 50%;
  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.3); }
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-500) 0%, #6366f1 50%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.063rem, 1.2vw, 1.25rem);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
  color: var(--gray-600);
}

.hero-meta-item svg {
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-dashboard {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  position: relative;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
}

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

.dashboard-dot.red { background: var(--red-400); }
.dashboard-dot.yellow { background: var(--yellow-500); }
.dashboard-dot.green { background: var(--green-500); }

.dashboard-body {
  padding: 24px;
  min-height: 300px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.status-row:last-child {
  border-bottom: none;
}

.status-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-900);
}

.status-uptime {
  font-family: var(--font-mono);
  font-size: 0.813rem;
  color: var(--gray-600);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.status-indicator.up { background: var(--green-500); box-shadow: 0 0 8px rgba(56, 161, 105, 0.4); }
.status-indicator.degraded { background: var(--yellow-500); box-shadow: 0 0 8px rgba(214, 158, 46, 0.4); }
.status-indicator.down { background: var(--red-500); box-shadow: 0 0 8px rgba(229, 62, 62, 0.4); }

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

.status-badge.up { background: var(--green-50); color: var(--green-500); }
.status-badge.degraded { background: var(--yellow-50); color: var(--yellow-500); }
.status-badge.down { background: var(--red-50); color: var(--red-500); }

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.mini-bar {
  flex: 1;
  background: linear-gradient(to top, var(--blue-400), var(--blue-200));
  border-radius: 2px 2px 0 0;
  min-width: 4px;
  transition: height 0.3s ease;
}

/* ===== SECTIONS ===== */
.section-wrapper {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-wrapper.alt-bg {
  background: var(--gray-100);
}

.section-wrapper.dark-bg {
  background: var(--navy-900);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(3rem, 5vw, 4rem);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.dark-bg .section-heading {
  color: var(--white);
}

.lead-paragraph {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.dark-bg .lead-paragraph {
  color: var(--gray-400);
}

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

.dark-bg .eyebrow {
  color: var(--blue-300);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--blue-50);
  color: var(--blue-500);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-500);
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
  color: var(--blue-600);
}

/* ===== BODY TEXT ===== */
.body-text {
  font-size: clamp(0.938rem, 1vw, 1.063rem);
  color: var(--gray-700);
  line-height: 1.75;
  max-width: 680px;
}

.body-text + .body-text {
  margin-top: 1rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 3rem 0;
}

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

.stat-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.813rem;
  line-height: 1.8;
  color: var(--gray-300);
  overflow-x: auto;
  margin: 2rem 0;
}

.code-block .comment { color: var(--gray-500); }
.code-block .keyword { color: var(--blue-300); }
.code-block .string { color: var(--green-500); }
.code-block .flag { color: var(--yellow-500); }

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

.logo-strip-item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: -0.02em;
}

/* ===== IMAGE PLACEHOLDER ===== */
.image {
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  min-height: 200px;
  overflow: hidden;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-text {
  font-size: clamp(0.938rem, 1vw, 1.125rem);
  color: var(--gray-400);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--navy-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-500);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.813rem;
  color: var(--gray-500);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

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

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .header-actions .btn-ghost {
    display: none;
  }

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

  .header-inner {
    height: 64px;
  }

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

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

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

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

  .cta-section {
    padding: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* ===== PATTERN OVERLAY ===== */
.dot-pattern {
  background-image: radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

/* ===== INLINE STATUS ===== */
.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
  font-weight: 500;
}

.inline-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.inline-status .dot.green { background: var(--green-500); }
.inline-status .dot.red { background: var(--red-500); }
.inline-status .dot.yellow { background: var(--yellow-500); }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-300);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--navy-900);
}

.data-table tr:hover td {
  background: var(--gray-100);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue { background: var(--blue-100); color: var(--blue-600); }
.badge-green { background: var(--green-50); color: var(--green-500); }
.badge-red { background: var(--red-50); color: var(--red-500); }

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

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
/* 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}
