* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --border: #2a2a2a;
  --code-bg: #0d1117;
  --error: #ff4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  height: 100%;
}

/* 4) Safety: images/iframes never exceed the container */
img,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px; /* content width */
  padding-inline: 20px; /* keep content off the edges */
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.waitlist {
  max-width: 100vw;
  width: min(800px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.cta-button {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 136, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

.code-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px auto;
  max-width: 900px;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.code-block.before::before {
  background: var(--error);
}

.code-block.after::before {
  background: var(--accent);
}

.code-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.code {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 14px;
  color: #58a6ff;
  line-height: 1.5;
}

.comment {
  color: #6b737d;
}

/* Problem Section */
.problem-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}

.problem-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.problem-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.problem-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.feature {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-content p {
  color: var(--text-secondary);
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
}

.step:not(:last-child)::after {
  right: 0; /* keep it within the box… */
  transform: translateX(
    20px
  ); /* …then visually nudge it without affecting layout */
  pointer-events: none;
  content: "";
  position: absolute;
  top: 30px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--border);
}

/* Code Examples */
.code-examples {
  padding: 100px 0;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.tab {
  /* padding: 15px 25px; */
  padding: 1rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
}

.tab.active {
  color: var(--text-primary);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.code-example {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  overflow-x: auto;
}

pre {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.keyword {
  color: #ff79c6;
}

.string {
  color: #f1fa8c;
}

.function {
  color: #50fa7b;
}

/* Use Cases */
.use-cases {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.use-case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}

.use-case:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.use-case h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.use-case ul {
  list-style: none;
  color: var(--text-secondary);
}

.use-case li::before {
  content: "→ ";
  color: var(--accent);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.secondary-button {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 18px;
  }

  .code-comparison {
    grid-template-columns: 1fr;
  }

  .problems-grid,
  .use-cases-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .step::after {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

/* Customer Section */
.customer-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.customer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.customer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
}
.customer-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.quote-card {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.08),
    rgba(0, 255, 136, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 16px;
  margin: 16px 0 8px;
}
.checklist {
  list-style: none;
  margin-top: 16px;
  color: var(--text-secondary);
}
.checklist li {
  margin: 10px 0;
  padding-left: 26px;
  position: relative;
}
.checklist li::before {
  content: "✔";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}
.powered-by {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.powered-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
}
.powered-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg-primary);
}
@media (max-width: 768px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }
}

/* Customer extras */
.customer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 14px;
}
.customer-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 0 0 1px var(--border) inset;
}
.customer-title {
  font-size: 24px;
  font-weight: 700;
}
.customer-sub {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Liquid glass styling for customer card */
.glass-liquid {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.06),
    rgba(0, 255, 136, 0.03)
  );
  border: 1px solid rgba(0, 255, 136, 0.28);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
}
.glass-liquid::before,
.glass-liquid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
}
.glass-liquid::before {
  width: 320px;
  height: 320px;
  left: -80px;
  top: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 255, 136, 0.28),
    transparent 62%
  );
  opacity: 0.55;
}
.glass-liquid::after {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -100px;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(0, 255, 136, 0.22),
    transparent 60%
  );
  opacity: 0.45;
}
.customer-badge {
  border-color: rgba(0, 255, 136, 0.35);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.08),
    rgba(0, 255, 136, 0.02)
  );
  color: var(--text-primary);
}
.customer-logo {
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.35) inset,
    0 6px 24px rgba(0, 255, 136, 0.12);
}

/* Workflow styles */
.workflow {
  margin-top: 28px;
}
.workflow h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.wf-step {
  background: rgba(0, 255, 136, 0.06);
  border: 1px dashed rgba(0, 255, 136, 0.38);
  border-radius: 12px;
  padding: 14px;
}
.wf-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* Compact feature chips */
.features-compact {
  margin-top: 16px;
}
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.06);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip .icon {
  font-size: 16px;
  line-height: 1;
}

/* Plain link style for ai-spot title */
.customer-title a,
.customer-title a:visited,
.customer-title a:hover,
.customer-title a:active {
  text-decoration: none;
  color: var(--text-primary);
}

img,
iframe {
  max-width: 100%;
  height: auto;
  display: block; /* prevents inline-gap quirks */
}

/* 1) Don't use a flex container for this section */
.code-examples .container {
  display: block; /* was flex */
  /* optional: keep your standard content width/padding */
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* 2) Ensure the code block never makes the page wider */
.code-examples .tab-content {
  min-width: 0;
} /* allow shrinking inside flex parents */
.code-example {
  max-width: 100%;
  overflow: auto; /* scroll inside the block, not the page */
}
.code-example pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto; /* horizontal scroll if needed */
  /* If you'd rather wrap long lines instead of scrolling, swap to: */
  /* white-space: pre-wrap; word-break: break-word; */
}
.code-example code {
  display: block;
}

/* 3) Tabs row can also overflow on small screens */
/* .tabs {
  overflow: auto;
} */

/* === Fluid typography overrides === */
/* Base: keep body readable on tiny phones, scale up to comfy desktop */
html {
  /* 14px at ~320px wide → 18px by ~1440px */
  font-size: clamp(14px, 1.1vw + 0.5rem, 18px);
  -webkit-text-size-adjust: 100%; /* avoid iOS auto-zoom shenanigans */
}

/* Body text */
body {
  line-height: 1.6;
  font-size: 1rem;
}

/* Headings */
h1 {
  font-size: clamp(32px, 8vw, 72px);
  line-height: 1.1;
}
h2 {
  font-size: clamp(24px, 4vw, 48px);
}
h3 {
  font-size: clamp(18px, 2.6vw, 24px);
}

/* Common text elements */
.subtitle,
.section-subtitle {
  font-size: clamp(16px, 2.4vw, 22px);
}

.nav-links a,
.tab {
  font-size: clamp(14px, 1.8vw, 16px);
}

.problem-title,
.use-case h3,
.feature-content h3,
.step h3 {
  font-size: clamp(16px, 2.4vw, 20px);
}

.problem-description,
.feature-content p,
.step p,
.customer-sub,
.checklist,
.powered-item,
.use-case li,
.chip {
  font-size: clamp(13px, 1.9vw, 16px);
}

/* CTAs / buttons */
.cta-button,
.secondary-button {
  font-size: clamp(14px, 2vw, 16px);
}

/* Code blocks */
pre,
.code,
.code-example code {
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.6;
}

/* Small labels/badges */
.code-label,
.customer-badge {
  font-size: clamp(11px, 1.6vw, 12px);
}

/* Optional: fluid spacing so sections breathe properly at all sizes */
.hero {
  padding: clamp(96px, 15vw, 160px) 0 clamp(60px, 10vw, 100px);
}
.section-header {
  margin-bottom: clamp(28px, 6vw, 60px);
}
.code-comparison {
  gap: clamp(16px, 4vw, 30px);
  margin: clamp(30px, 8vw, 60px) auto;
}
.features-grid,
.steps,
.use-cases-grid,
.problems-grid {
  gap: clamp(16px, 4vw, 40px);
}
.container {
  padding-inline: clamp(16px, 4vw, 24px);
}

/* Safety: ensure long words/snippets don't break layout on tiny screens */
:where(p, li, .chip) {
  overflow-wrap: anywhere;
}
