/* ── Google Fonts ────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap");

/* ── CSS Custom Properties ───────────────────────── */
/* Referenced by pseudo-elements and animations that can't use Tailwind */
:root {
  --gray-100: oklch(92.8% 0 0);
  --gray-200: oklch(86.1% 0 0);
  --gray-500: oklch(53.5% 0 0);
  --gray-800: oklch(39% 0 0);
  --gray-950: oklch(23.5% 0 0);
  --red-500: oklch(0.617 0.25 29.06);
}

/* ── Responsive Typography ───────────────────────── */
/* clamp() for fluid sizing can't be expressed cleanly in Tailwind arbitrary values */
.heading-xl {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.05rem;
}

.heading-lg {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
}

.body-lg {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

/* ── Feature Showcase Layout ─────────────────────── */
.feature-showcase {
  position: relative;
}

.feature-showcase-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  overflow: hidden;
}

.feature-showcase-reverse .feature-showcase-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
}

.feature-showcase-reverse .feature-window {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 900px) {
  .feature-showcase-layout,
  .feature-showcase-reverse .feature-showcase-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-window,
  .feature-showcase-reverse .feature-window {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

}

/* ── Buttons ─────────────────────────────────────── */
/* Reusable across header and CTAs; kept here to avoid Tailwind duplication */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  font-size: 13px;
  padding: 12px 28px;
  background: var(--gray-950);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 13px;
  padding: 8px 20px;
  background: transparent;
  color: var(--gray-950);
  border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--gray-950);
}

.btn-sm {
  font-size: 12px;
  padding: 8px 20px;
}

/* ── Hero Grid Background ────────────────────────── */
/* mask-image is not available as a Tailwind utility */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── CTA Grid Background ─────────────────────────── */
.cta-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── App Window Body Grid ────────────────────────── */
/* Blueprint grid inside screenshot placeholders */
.app-window-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

/* ── Hero Badge ──────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: oklch(97.3% 0 0);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
}

.hero-badge .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Scroll Reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ── Animations ──────────────────────────────────── */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
