/* ══════════════════════════════════════════════════════════════════════════
   kAI Landing Page - Core Styles
   ══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg-primary: #050508;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.05);

  /* Text hierarchy */
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-tertiary: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.35);

  /* Borders - subtle, no glow */
  --border-default: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);

  /* Accent - very sparingly used */
  --accent: #5e6ad2;

  /* Legacy mappings for compatibility */
  --navy: #050508;
  --dim: rgba(255,255,255,0.7);
  --dim-soft: rgba(255,255,255,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: #fff;
  overflow-x: hidden;
}

/* ── CLOUD IMAGE BACKGROUND (hero only) ── */
.cloud-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -3;
  background:
    linear-gradient(
      to bottom,
      var(--bg-primary) 0%,
      rgba(5,5,8,0.70) 30%,
      rgba(5,5,8,0.40) 50%,
      rgba(5,5,8,0.20) 65%,
      var(--bg-primary) 100%
    ),
    url('../assets/kai-clouds-bg.png') center 60% / cover no-repeat;
  pointer-events: none;
}

/* ── GLASS UTILITY ── */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 250ms ease, background 250ms ease;
}

.glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  transition: padding 0.3s ease, background 0.3s ease;
}
nav.scrolled {
  padding: 12px 64px;
  background: rgba(5,5,8,0.92);
}
.nav-logo { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.nav-logo .k { color: var(--text-primary); }
.nav-logo .ai { color: var(--text-primary); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-tertiary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--text-primary);
  border: none;
  color: var(--bg-primary);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding: 140px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Bento Grid */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
}

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

.bento-small {
  grid-column: span 1;
}
.btn-primary {
  padding: 16px 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* ── PAGE SECTIONS ── */
section { padding: 160px 64px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
}
h2 .dim {
  color: var(--text-tertiary);
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 72px;
}

/* ── FEATURES ── */
/* ── FEATURES GRID - Variable Sizing ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}

/* Large card - spans 2 columns */
.feature-card--large {
  grid-column: span 2;
  grid-row: span 1;
}

/* Wide card - spans 2 columns */
.feature-card--wide {
  grid-column: span 2;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 250ms ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
}

/* Learn more indicator - hidden by default */
.feature-expand {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.feature-card:hover .feature-expand {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-card.kaizen {
  border-color: var(--border-hover);
}

/* ── HOW IT WORKS ── */
#how {
  position: relative;
}

.steps { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; align-items: start; position: relative; }
.step { padding: 36px; }
.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-arrow { display: flex; align-items: flex-start; justify-content: center; padding-top: 50px; color: var(--text-muted); font-size: 18px; }

/* ── POSITIONING ── */
.pos-wrap {
  text-align: center;
  padding: 160px 64px;
  position: relative;
}
.pos-statement {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 80px;
  color: var(--text-primary);
}
.pos-statement .noise { color: var(--text-tertiary); }
.pos-statement .kai { color: var(--text-primary); }
.pos-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; max-width: 960px; margin: 0 auto 48px; }
.pos-card { padding: 36px 28px; text-align: left; }
.pos-card .stat {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.pos-card .stat span {
  color: var(--text-primary);
}
.pos-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.kaizen-note {
  font-style: italic;
  font-size: 15px;
  color: var(--text-tertiary);
  margin-top: 44px;
}

/* ── INTEGRATIONS ── */
.integ-wrap { text-align: center; padding: 80px 0; }
.integ-label { font-size: 12px; color: var(--text-muted); margin-bottom: 32px; letter-spacing: 1.5px; text-transform: uppercase; }
.logos-strip { display: flex; overflow: hidden; position: relative; }
.logos-strip::before, .logos-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.logos-strip::before { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
.logos-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg-primary), transparent); }
.logos-track {
  display: flex; gap: 52px;
  animation: scroll-logos 30s linear infinite;
  white-space: nowrap; padding: 14px 0;
}
.logos-strip:hover .logos-track {
  animation-play-state: paused;
}
.logo-item {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2.5px; text-transform: uppercase;
  transition: color 0.2s; flex-shrink: 0; cursor: default;
}
.logo-item:hover {
  color: var(--text-secondary);
}
@keyframes scroll-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── DEMO ── */
.demo-outer { padding: 40px; }
.demo-terminal {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-default);
  border-radius: 16px; overflow: hidden;
}
.term-bar {
  background: rgba(255,255,255,0.03);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-default);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r{background: var(--text-muted);}
.dot.y{background: var(--text-muted);}
.dot.g{background: var(--text-muted);}
.term-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-left: 8px; }
.term-body { padding: 28px 24px; }
.chat-line { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.avatar {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.av-human { background: rgba(255,255,255,0.08); color: var(--text-tertiary); }
.av-kai   { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.bubble {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px; padding: 12px 16px;
  font-size: 13px; line-height: 1.65;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  max-width: 560px;
}
.bubble .lbl { color: var(--text-primary); font-weight: 600; }
.bubble .ok  { color: #4ade80; }
.bubble .warn{ color: #fbbf24; }
.bubble .muted{ color: var(--text-muted); }

/* ── CTA ── */
.cta-wrap {
  text-align: center;
  padding: 180px 64px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.cta-wrap h2 {
  margin-bottom: 14px;
  color: var(--text-primary);
}
.cta-wrap p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 44px;
}
.email-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.email-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-default);
  border-radius: 12px; padding: 16px 22px;
  color: var(--text-primary); font-size: 15px; font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.email-input::placeholder { color: var(--text-muted); }
.email-input:hover {
  border-color: var(--border-hover);
}
.email-input:focus {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.08);
}
.fine {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 18px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-default);
  padding: 42px 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(16px);
}
.footer-logo { font-size: 20px; font-weight: 900; }
.footer-logo .k { color: var(--text-primary); }
.footer-logo .ai { color: var(--text-primary); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 13px; color: var(--text-tertiary); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-r { font-size: 12px; color: var(--text-muted); }

/* ── SECTION DIVIDERS ── */
.divider {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--border-default);
}

/* ── FEATURE MODAL ── */
.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feature-modal.active {
  opacity: 1;
  visibility: visible;
}

.feature-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.95);
  backdrop-filter: blur(12px);
}

.feature-modal__content {
  position: relative;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(20,20,25,0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-default);
  border-radius: 16px;
}

.feature-modal.active .feature-modal__content {
  transform: scale(1) translateY(0);
}

.feature-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--text-tertiary);
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feature-modal__close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.feature-modal__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-modal__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-modal__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.feature-modal__body p {
  margin-bottom: 16px;
}

.feature-modal__body ul {
  margin: 16px 0;
  padding-left: 20px;
}

.feature-modal__body li {
  margin-bottom: 8px;
}

.feature-modal__body li strong {
  color: var(--text-primary);
}

.feature-modal__body .modal-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  font-size: 14px;
}

.feature-modal__body .modal-note strong {
  color: var(--text-primary);
}

.modal-integrations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.modal-integ-group {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}

.modal-integ-group strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.modal-integ-group span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── ACCESS FORM SUCCESS STATE ── */
.access-success {
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

.access-success .success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, rgba(34,197,94,0.3), rgba(34,197,94,0.15));
  border: 2px solid rgba(34,197,94,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #22c55e;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(34,197,94,0.25);
}

.access-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.access-success p {
  font-size: 15px;
  color: var(--dim);
  margin-bottom: 24px;
}

.access-success .book-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.access-success .book-call-btn::after {
  content: '→';
  transition: transform 0.2s ease;
}

.access-success .book-call-btn:hover::after {
  transform: translateX(4px);
}

.form-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ══════════════════════════════════════════════════════════════════════════
   PRODUCT MOCKUPS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── SLACK MOCKUP ── */
.slack-mockup {
  background: rgba(15,15,18,0.95);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  border: 1px solid var(--border-default);
}

.slack-header {
  background: rgba(255,255,255,0.02);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 8px;
}

.slack-channel {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.slack-channel::before {
  content: '#';
  color: var(--text-muted);
  margin-right: 2px;
}

.slack-thread {
  padding: 12px;
}

.slack-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.slack-msg:last-child {
  margin-bottom: 0;
}

.slack-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  color: var(--text-tertiary);
}

.slack-avatar.kai {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.slack-content {
  flex: 1;
  min-width: 0;
}

.slack-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.slack-name .slack-time {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 6px;
}

.slack-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  font-size: 13px;
}

.slack-attachment {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--text-muted);
  border-radius: 0 6px 6px 0;
}

.slack-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.slack-code {
  background: rgba(255,255,255,0.08);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── GITHUB PR MOCKUP ── */
.github-mockup {
  background: rgba(15,15,18,0.95);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  border: 1px solid var(--border-default);
}

.gh-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gh-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.gh-status.open {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}

.gh-status.merged {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.gh-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.gh-meta {
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border-default);
}

.gh-author {
  color: var(--text-primary);
  font-weight: 600;
}

.gh-diff {
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(0,0,0,0.2);
}

.diff-file {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 11px;
}

.diff-line {
  padding: 2px 8px;
  border-radius: 3px;
  margin: 2px 0;
}

.diff-line.diff-add {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
}

.diff-line.diff-remove {
  background: rgba(248,113,113,0.1);
  color: #f87171;
}

.diff-line.diff-context {
  color: var(--text-muted);
}

/* ── TERMINAL MOCKUP (mini version for feature cards) ── */
.terminal-mini {
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border: 1px solid var(--border-default);
}

.terminal-mini .term-bar {
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}

.terminal-mini .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-mini .term-body {
  padding: 12px;
  line-height: 1.6;
}

.terminal-mini .term-line {
  margin: 2px 0;
}

.terminal-mini .term-success {
  color: #4ade80;
}

.terminal-mini .term-info {
  color: var(--text-secondary);
}

.terminal-mini .term-dim {
  color: var(--text-muted);
}

/* ── MINI CHART/METRICS MOCKUP ── */
.metrics-mini {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-default);
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-value.success {
  color: #4ade80;
}

.metric-value.warning {
  color: #fbbf24;
}

.metric-chart {
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 8px;
}

.metric-bar {
  flex: 1;
  background: var(--text-tertiary);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   INTEGRATIONS GRID (Categorized)
   ══════════════════════════════════════════════════════════════════════════ */

.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.integ-section {
  padding: 120px 64px;
}

.integ-category {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: border-color 250ms ease;
}

.integ-category:hover {
  border-color: var(--border-hover);
}

.integ-category-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.integ-logos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.integ-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.integ-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.integ-logo svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 900px) {
  .integ-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logos-track {
    animation: none !important;
  }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding: 140px 40px;
  }
  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-bento {
    max-width: 600px;
    margin: 0 auto;
  }
  h1 { font-size: 64px; }
}

@media (max-width: 1024px) {
  section { padding: 120px 40px; }
  .pos-wrap { padding: 120px 40px; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--large,
  .feature-card--wide {
    grid-column: span 2;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-arrow {
    display: none;
  }
  .pos-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  h1 { font-size: 56px; }
  h2 { font-size: 42px; }
  .pos-statement { font-size: 44px; }
}

@media (max-width: 768px) {
  nav {
    padding: 14px 24px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 120px 24px 80px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: -0.02em;
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
  }
  section {
    padding: 80px 24px;
  }
  .pos-wrap {
    padding: 100px 24px;
  }
  .cta-wrap {
    padding: 120px 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--large,
  .feature-card--wide {
    grid-column: span 1;
  }
  h2 { font-size: 34px; }
  .pos-statement { font-size: 32px; }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .email-form {
    flex-direction: column;
  }
  .email-input {
    width: 100%;
  }
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 32px 24px;
  }
  .footer-links {
    order: 2;
  }
  .footer-r {
    order: 3;
  }
}
