@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 {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== RESET & UTILITIES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

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

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  font-size: 0.8rem;
  color: #64748b;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: #f1f5f9;
  border-radius: 100px;
  font-size: 0.78rem;
  color: #475569;
  transition: background 0.2s ease;
}

.header-contact:hover {
  background: #e2e8f0;
}

.header-contact svg {
  flex-shrink: 0;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 500;
}

.header-status-dot {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

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

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

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

.nav-links a {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.nav-links a.active {
  color: #4f46e5;
  background: #eef2ff;
  font-weight: 600;
}

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

.nav-cta a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta .docs-link {
  color: #475569;
}

.nav-cta .docs-link:hover {
  color: #1e293b;
}

.nav-cta .start-link {
  background: #0f172a;
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta .start-link:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #4f46e5;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  border-radius: 12px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.primary-button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
}

.primary-button svg {
  width: 16px;
  height: 16px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.hero-code-block {
  display: inline-block;
  background: #0f172a;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
}

.hero-code-block .code-label {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.65rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-code-block .prompt {
  color: #4f46e5;
}

.hero-code-block .flag {
  color: #22d3ee;
}

.hero-code-block .value {
  color: #a78bfa;
}

.hero-code-block .comment {
  color: #475569;
}

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

.section-wrapper.alt-bg {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.section-wrapper.dark-bg {
  background: #0f172a;
  color: #e2e8f0;
}

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

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

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

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

.section-heading {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1rem;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
}

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

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

.card-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

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

.card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

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

.card-icon.blue {
  background: #eef2ff;
  color: #4f46e5;
}

.card-icon.cyan {
  background: #ecfeff;
  color: #0891b2;
}

.card-icon.violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.card-icon.emerald {
  background: #ecfdf5;
  color: #059669;
}

.card-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.card-icon.rose {
  background: #fff1f2;
  color: #e11d48;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card .body-text {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #64748b;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* ===== CODE BLOCKS ===== */
.code-block {
  background: #0f172a;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  line-height: 1.85;
  color: #94a3b8;
  overflow-x: auto;
  position: relative;
}

.code-block .comment { color: #475569; }
.code-block .keyword { color: #c084fc; }
.code-block .string { color: #86efac; }
.code-block .func { color: #67e8f9; }
.code-block .type { color: #fbbf24; }
.code-block .number { color: #fb923c; }

/* ===== IMAGE ===== */
.image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

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

/* ===== LOGOS / TRUST BAR ===== */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  padding: 2rem 0;
  opacity: 0.45;
}

.trust-bar-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list-item .feature-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.feature-list-item .feature-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
}

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #f8fafc;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand .body-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #475569;
}

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

.footer-bottom-links a {
  font-size: 0.8rem;
  color: #475569;
  transition: color 0.2s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .two-col.reverse {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .header-top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-cta {
    display: none;
  }

  .card-grid.three-col,
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}
/* 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}
