/* page-specific styles — home (index.html) */

.dot-pulse {
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  padding: 80px var(--pad-x) 100px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 10, 10, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 30%, black 30%, transparent 75%);
  opacity: .8;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  /* gap: 1.6rem; */
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-title {
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-title .em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin-top: 6px;
}

.hero-slogan {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-dark);
  letter-spacing: .04em;
  font-weight: 500;
}

.hero-sub {
  margin-top: 24px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
}

.hero-sub b {
  color: var(--ink);
  font-weight: 600;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────────── HERO VISUAL ───────────── */
.hero-mock {
  position: relative;
}

.hero-mock-img {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
}

canvas.hero-mock-canvas {
  aspect-ratio: 640 / 560;
  height: auto;
  background: transparent;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mock {
    margin-top: 24px;
  }

  .hero-mock-glow {
    display: none;
  }

  canvas.hero-mock-canvas {
    max-width: 360px;
  }
}

.hero-mock-glow {
  position: absolute;
  inset: -30px;
  border-radius: 20px;
  background: radial-gradient(ellipse, rgba(101, 163, 13, .18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.h-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 40px -24px rgba(20, 20, 20, .15);
}

.h-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.h-card-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: .12em;
}

.h-card-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h-card-t {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.h-card-d {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.h-bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.h-bar-row .k {
  font-family: var(--mono);
  color: var(--muted);
}

.h-bar-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.h-bar-row .v {
  font-family: var(--mono);
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}

/* ───────────── AI CASES (home wrapper) ───────────── */
.home-products-feature {
  background: var(--bg-alt);
}

/* ───────────── HOME · ABOUT BRIEF ───────────── */
.home-about {
  padding: 64px var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.home-about-grid>* {
  min-width: 0;
}

.home-about-title {
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}

.home-about-title .em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

.home-about-quote {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: .04em;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 8px;
}

.home-about-p {
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.home-about-p b {
  color: var(--ink);
  font-weight: 600;
}

.home-about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ───────────── HOME · PRODUCTS PREVIEW ───────────── */
.home-products {
  padding: 100px var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* ───────────── HOME · CASES PREVIEW ───────────── */
.home-cases {
  padding: 100px var(--pad-x);
  border-top: 1px solid var(--border);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.case-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color .2s, transform .2s;
}

.case-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.case-pill-industry {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: .12em;
  font-weight: 600;
}

.case-pill-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.case-pill-d {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ───────────── HOME · CONTACT CTA ───────────── */
.home-cta {
  padding: 100px var(--pad-x);
  background: var(--ink);
  color: #fff;
}

.home-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.home-cta .section-eyebrow {
  color: var(--accent);
}

.home-cta .section-eyebrow .rule {
  background: var(--accent);
}

.home-cta-t {
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.home-cta-t .em {
  display: inline-block;
  margin-top: 6px;
}

.home-cta-d {
  margin-top: 20px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .65);
}

.home-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.home-cta .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.home-cta .btn-primary:hover {
  background: var(--accent-light);
  color: var(--ink);
}

/* ───────────── HOME · AI CASE BENEFIT PANEL ───────────── */
.ai-case-bp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  box-shadow: 0 1px 0 rgba(10, 10, 10, .02);
}

.bp-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-dark);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bp-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.bp-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -.005em;
  line-height: 1.55;
  margin: 0 0 18px;
}

.bp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bp-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .2s, transform .2s;
}

.bp-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.bp-tile-v {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  letter-spacing: -.02em;
}

.bp-tile-k {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

.bp-tile-d {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.bp-impact {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-impact::before {
  content: "→";
  font-family: var(--mono);
  color: var(--accent);
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mock {
    order: 2;
  }

  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 720px) {
  .hero-title {
    line-height: 1.06;
  }

  .hero {
    padding: 48px var(--pad-x) 60px;
  }

  .hero-mock .window {
    height: 460px !important;
  }

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

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .home-about,
  .home-products,
  .home-cases,
  .home-cta {
    padding: 56px var(--pad-x);
  }

  .case-strip {
    grid-template-columns: 1fr;
  }

  .ai-case-bp {
    padding: 22px;
  }

  .bp-tile-v {
    font-size: 22px;
  }

  /* 16px minimum */
  .hero-slogan,
  .bp-eyebrow, .bp-title, .bp-tile-k, .bp-tile-d, .bp-impact,
  .case-pill-industry, .case-pill-t, .case-pill-d {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .hero {
    padding: 36px var(--pad-x) 48px;
  }

  .hero-mock .window {
    height: 420px !important;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
  }

  .home-about,
  .home-products,
  .home-cases,
  .home-cta {
    padding: 44px var(--pad-x);
  }

  .hero-mock .window {
    height: auto !important;
    min-height: 480px;
  }
}