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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: #6366f1;
  color: #ffffff;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0b1120;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  max-width: 65ch;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Layout ── */
.page-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1 0 auto;
}

/* ── Header / Nav ── */
.site-header {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-brand svg {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0b1120;
}

.brand-name span {
  color: #6366f1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.header-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: #0b1120;
  background: #f1f5f9;
}

.header-nav a.active {
  color: #6366f1;
  background: #eef2ff;
}

.header-cta {
  flex-shrink: 0;
}

/* ── Mobile menu toggle ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #0b1120;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3), 0 1px 2px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: #0b1120;
  border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #6366f1;
  padding: 0.625rem 0.5rem;
}

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

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

/* ── Eyebrow / Label ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.eyebrow-dark {
  color: #475569;
}

/* ── Hero Section ── */
.hero-section {
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

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

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

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title .accent {
  color: #6366f1;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.meta-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0b1120;
  letter-spacing: -0.02em;
}

.meta-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
}

.hero-code-block {
  background: #0b1120;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(11, 17, 32, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.15);
  position: relative;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #1e293b;
}

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

.code-dot-red { background: #ef4444; }
.code-dot-yellow { background: #eab308; }
.code-dot-green { background: #22c55e; }

.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.code-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  line-height: 1.85;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-body .key { color: #7dd3fc; }
.code-body .string { color: #86efac; }
.code-body .number { color: #fbbf24; }
.code-body .bool { color: #c084fc; }
.code-body .bracket { color: #94a3b8; }
.code-body .comment { color: #475569; font-style: italic; }

/* ── Section Wrapper ── */
.section-wrapper {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-wrapper--gray {
  background: #f8fafc;
  max-width: 100%;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.section-wrapper--gray .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-heading {
  margin-bottom: 1rem;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: #475569;
  line-height: 1.7;
  margin: 0 auto;
}

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

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

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

/* ── Card ── */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #6366f1;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: #eef2ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #6366f1;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: #0b1120;
}

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

/* ── Feature Row ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-content {
  order: 2;
}

.feature-row--reverse .feature-visual {
  order: 1;
}

.feature-content {
  max-width: 520px;
}

.feature-content .section-heading {
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.6;
}

.feature-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6366f1;
  margin-top: 3px;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.pricing-card--featured {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1, 0 12px 40px rgba(99, 102, 241, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6366f1;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3125rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #0b1120;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}

.pricing-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  font-size: 0.875rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ── Integration Logos ── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.integration-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.integration-item:hover {
  border-color: #c7d2fe;
  background: #fafafe;
}

.integration-item .integration-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #ffffff;
}

.integration-item .integration-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: #0b1120;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-card .btn {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}

/* ── Image / Visual ── */
.image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

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

/* ── Code Preview Visual ── */
.code-preview {
  background: #0b1120;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 17, 32, 0.2);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 2rem 0;
}

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

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0b1120;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.125rem;
}

/* ── Use Case Tabs ── */
.usecase-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.usecase-tab {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 100px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.usecase-tab:hover,
.usecase-tab.active {
  border-color: #6366f1;
  color: #6366f1;
  background: #eef2ff;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #0b1120 0%, #1e1b4b 100%);
  border-radius: 16px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: #94a3b8;
  margin-bottom: 2rem;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  position: relative;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

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

.footer-brand-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b1120;
  margin-bottom: 1rem;
}

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

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

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

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #94a3b8;
}

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

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: #94a3b8;
}

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

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

  .hero-visual {
    max-width: 600px;
  }

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

  .feature-row--reverse .feature-content {
    order: 1;
  }

  .feature-row--reverse .feature-visual {
    order: 2;
  }

  .feature-content {
    max-width: 100%;
  }

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

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

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .header-nav.open + .header-cta-inline {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

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

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

  .hero-meta {
    gap: 1.5rem;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

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

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

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

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

  .usecase-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .usecase-tab {
    text-align: center;
  }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-accent { color: #6366f1; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
/* 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}
