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

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

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

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

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

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

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2744;
}

.logo-text span {
  color: #00c6ff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #1a2744;
  background: rgba(0, 198, 255, 0.06);
}

.nav-cta {
  margin-left: 0.75rem;
}

.nav-cta a {
  background: #1a2744;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta a:hover {
  background: #243352;
  transform: translateY(-1px);
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a2744;
  border-radius: 2px;
  transition: 0.2s;
}

/* ── Hero ── */
.page-hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: #00c6ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  background: rgba(0, 198, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

.hero-label .pulse-dot {
  width: 8px;
  height: 8px;
  background: #e63946;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #1a2744;
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-title .accent {
  color: #00c6ff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: #4a5568;
  max-width: 600px;
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

/* ── Buttons ── */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #1a2744;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.primary-button:hover {
  background: #243352;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.2);
}

.primary-button--cyan {
  background: #00c6ff;
  color: #1a2744;
}

.primary-button--cyan:hover {
  background: #00b3e6;
  box-shadow: 0 8px 24px rgba(0, 198, 255, 0.3);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2744;
  background: transparent;
  border: 1.5px solid rgba(26, 39, 68, 0.15);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: rgba(26, 39, 68, 0.3);
  background: rgba(26, 39, 68, 0.03);
  transform: translateY(-2px);
}

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

.section-wrapper--alt {
  background: #1a2744;
  color: #fff;
}

.section-wrapper--alt .section-heading,
.section-wrapper--alt .card-title,
.section-wrapper--alt .lead-paragraph {
  color: #fff;
}

.section-wrapper--alt .body-text {
  color: rgba(255,255,255,0.7);
}

.section-wrapper--alt .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.section-wrapper--alt .card:hover {
  border-color: rgba(0, 198, 255, 0.3);
  background: rgba(255,255,255,0.08);
}

.section-wrapper--alt .eyebrow {
  color: #00c6ff;
}

.section-wrapper--alt .hero-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1a2744;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.lead-paragraph {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #4a5568;
  max-width: 640px;
  margin-bottom: 3rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00c6ff;
  margin-bottom: 0.75rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid rgba(26, 39, 68, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card:hover {
  border-color: rgba(0, 198, 255, 0.25);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.06);
  transform: translateY(-4px);
}

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

.card-icon--blue {
  background: rgba(26, 39, 68, 0.06);
  color: #1a2744;
}

.card-icon--cyan {
  background: rgba(0, 198, 255, 0.1);
  color: #00c6ff;
}

.card-icon--red {
  background: rgba(230, 57, 70, 0.08);
  color: #e63946;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card .body-text {
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(26, 39, 68, 0.06);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
  margin: 3rem 0;
}

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

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a2744;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-number--cyan { color: #00c6ff; }
.stat-number--red { color: #e63946; }

.stat-label {
  font-size: 0.875rem;
  color: #4a5568;
  margin-top: 0.375rem;
}

/* ── Code block ── */
.code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  background: #1a2744;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  overflow-x: auto;
  line-height: 1.7;
  margin: 1.5rem 0;
  width: 100%;
}

.code-block .keyword { color: #c792ea; }
.code-block .string { color: #c3e88d; }
.code-block .comment { color: #546e7a; }
.code-block .func { color: #82aaff; }
.code-block .cyan { color: #00c6ff; }

/* ── Image ── */
.image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2744 0%, #243352 100%);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-wrapper .placeholder-text {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ── Footer ── */
.site-footer {
  background: #1a2744;
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #00c6ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #00c6ff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    gap: 0.25rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta a {
    display: block;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
  }

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

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

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

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}

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

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

/* ── Selection ── */
::selection {
  background: rgba(0, 198, 255, 0.2);
  color: #1a2744;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fafbfc;
}
::-webkit-scrollbar-thumb {
  background: #c1c9d4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0aab4;
}
/* 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}
