/* ==========================================================================
   Layout: Bold
   Split hero, bento grid features, full-bleed sections
   ========================================================================== */

/* ===== SPLIT HERO ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 3rem;
  }
}

.hero-split-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-bg-alt, #f3f4f6);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-split h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted, #6b7280);
  padding: 0.75rem 0;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--color-primary, #2563eb);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  margin-top: 0.25rem;
}

/* Terminal Window */
.hero-split-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-split-visual {
    display: block;
  }
}

.terminal-window {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
}

.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.terminal-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
}

.terminal-body code {
  font-family: var(--font-mono, 'SF Mono', Monaco, monospace);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.terminal-prompt { color: #22c55e; }
.terminal-cmd { color: #f8fafc; }
.terminal-output { color: #94a3b8; }
.terminal-comment { color: #64748b; font-style: italic; }

/* ===== SECTION TYPOGRAPHY ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary, #2563eb);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ===== FULL-BLEED PROBLEMS ===== */
.problems-bleed {
  padding: 5rem 0 3rem;
  background: var(--color-bg-alt, #f9fafb);
}

.problems-bleed .container {
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.problems-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 1.5rem 2rem;
  margin: 0 -1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.problems-scroll::-webkit-scrollbar {
  height: 6px;
}

.problems-scroll::-webkit-scrollbar-track {
  background: var(--color-border, #e5e7eb);
}

.problems-scroll::-webkit-scrollbar-thumb {
  background: var(--color-text-muted, #9ca3af);
  border-radius: 3px;
}

.problem-item {
  flex: 0 0 280px;
  padding: 1.5rem;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  scroll-snap-align: start;
}

.problem-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.problem-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.problem-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .problems-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    padding: 1rem 0 0;
    margin: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
  }

  .problem-item {
    flex: none;
  }
}

/* ===== BENTO GRID FEATURES ===== */
.features-bento {
  padding: 5rem 1.5rem;
}

.features-bento .container {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-wide {
    grid-column: span 2;
  }
}

.bento-item {
  padding: 1.75rem;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.bento-item:hover {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt, #f3f4f6);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--color-primary, #2563eb);
}

.bento-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bento-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
}

.bento-large {
  display: flex;
  flex-direction: column;
}

.bento-large p {
  flex: 1;
}

.bento-code {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #0f172a;
  border-radius: 8px;
  overflow-x: auto;
}

.bento-code code {
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  color: #e2e8f0;
}

.bento-code mark {
  background: transparent;
  color: #22c55e;
  font-weight: 600;
}

/* ===== FULL-BLEED HOW IT WORKS ===== */
.how-bleed {
  position: relative;
  padding: 5rem 1.5rem;
  background: var(--color-bg-dark, #111827);
  color: #fff;
  overflow: hidden;
}

.how-bleed-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.how-bleed .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.how-bleed .section-headline {
  color: #fff;
}

.how-steps {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.how-step {
  text-align: center;
}

.how-step-num {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.how-step-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.how-step-content p {
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* Architecture Visual */
.architecture-visual {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.arch-box {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
}

.arch-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.arch-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.arch-app {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.arch-cache {
  background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
  color: #fff;
  transform: scale(1.1);
  z-index: 1;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.arch-db {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.arch-connector {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.arch-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.arch-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
}

/* ===== USE CASES ===== */
.usecases-section {
  padding: 5rem 1.5rem;
}

.usecases-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.usecases-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.usecase-card {
  padding: 2rem;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.usecase-card:hover {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.usecase-persona {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary, #2563eb);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.usecase-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.usecase-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
  text-align: center;
}

.cta-content {
  max-width: 500px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-section > .container > .cta-content > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .cta-form .form-row {
    flex-direction: row;
  }
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.cta-form input[type="email"]:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta-form .btn {
  white-space: nowrap;
  background: #fff;
  color: var(--color-primary, #2563eb);
  font-weight: 600;
}

.cta-form .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.cta-form .form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
