@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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1f36;
  background: #ffffff;
  line-height: 1.6;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  overflow-x: hidden;
}

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── 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 rgba(26, 31, 54, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #1a1f36;
}

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

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: #4f6ef7;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

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

.nav-desktop a:hover {
  color: #1a1f36;
  background: #f1f5f9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f36;
  text-decoration: none;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: #f1f5f9;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #4f6ef7;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(79, 110, 247, 0.25);
}

.btn-primary:hover {
  background: #3b5de7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f6ef7;
  background: transparent;
  border: 1.5px solid #4f6ef7;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: #4f6ef7;
  color: #ffffff;
  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: #1a1f36;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid rgba(26, 31, 54, 0.06);
}

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

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(26, 31, 54, 0.04);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f6ef7;
  background: rgba(79, 110, 247, 0.08);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #1a1f36;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #4f6ef7, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: #6b7280;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

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

.hero-code {
  background: #1a1f36;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(26, 31, 54, 0.15), 0 0 0 1px rgba(26, 31, 54, 0.1);
  overflow: hidden;
}

.hero-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-code .dots {
  position: absolute;
  top: 10px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.hero-code .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hero-code .dots span:first-child { background: #ff5f57; }
.hero-code .dots span:nth-child(2) { background: #ffbd2e; }
.hero-code .dots span:nth-child(3) { background: #28ca42; }

.hero-code pre {
  margin-top: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #e2e8f0;
  overflow-x: auto;
}

.hero-code .comment { color: #6b7280; }
.hero-code .keyword { color: #c084fc; }
.hero-code .string { color: #34d399; }
.hero-code .func { color: #60a5fa; }
.hero-code .param { color: #fbbf24; }

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

.section-wrapper.alt-bg {
  background: #f8fafc;
  border-top: 1px solid rgba(26, 31, 54, 0.04);
  border-bottom: 1px solid rgba(26, 31, 54, 0.04);
}

.section-heading {
  font-size: clamp(1.875rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #1a1f36;
  margin-bottom: 1rem;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: #6b7280;
  line-height: 1.7;
  max-width: 600px;
}

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

.section-header-center .lead-paragraph {
  margin: 0 auto;
}

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

.card {
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: 14px;
  padding: clamp(1.5rem, 2vw, 2rem);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 31, 54, 0.08);
  border-color: rgba(79, 110, 247, 0.2);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 110, 247, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1f36;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.card .body-text {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.65;
}

/* ── Body Text ── */
.body-text {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
}

a {
  color: #4f6ef7;
  text-decoration: underline;
  text-decoration-color: rgba(79, 110, 247, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: #4f6ef7;
}

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

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

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #1a1f36;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-number .accent {
  color: #4f6ef7;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.375rem;
  font-weight: 500;
}

/* ── Logos ── */
.logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  padding: 2.5rem 0;
  opacity: 0.4;
}

.logos-strip svg {
  height: 28px;
  width: auto;
}

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

/* ── Footer ── */
.site-footer {
  background: #1a1f36;
  color: #94a3b8;
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
}

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

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 280px;
  color: #64748b;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #e2e8f0;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #e2e8f0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-text {
  color: #e2e8f0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-desktop,
  .nav-actions .btn-ghost {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-primary {
    display: none;
  }

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

  .hero-code {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 64px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .hero-code {
    padding: 1.25rem 1rem;
    font-size: 0.75rem;
  }

  .hero-code pre {
    font-size: 0.7rem;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid #4f6ef7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: rgba(79, 110, 247, 0.2);
  color: #1a1f36;
}
/* 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}
