:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #7c3aed;
  --glow: rgba(79, 70, 229, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(15, 23, 42, 0.2);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Hero mockup (no external raster required) */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: #f8fafc;
  background-image: url("/images/hero-home.png");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
}

.hero-visual .mock-laptop {
  position: relative;
  z-index: 2;
}

.hero-visual .mock-float {
  z-index: 2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(600px 200px at 70% 0%, rgba(129, 140, 248, 0.22), transparent 55%);
  pointer-events: none;
}

.mock-laptop {
  position: relative;
  margin: 1.5rem auto 0;
  width: min(92%, 420px);
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-radius: 12px 12px 4px 4px;
  border: 1px solid #334155;
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.65);
}

.mock-laptop::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  bottom: 18%;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
  border: 1px solid #cbd5e1;
}

.mock-ui-bar {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  display: flex;
  gap: 4px;
  padding: 0 6px;
  align-items: center;
}

.mock-ui-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.mock-ui-bar span:nth-child(1) {
  background: #f87171;
}
.mock-ui-bar span:nth-child(2) {
  background: #fbbf24;
}
.mock-ui-bar span:nth-child(3) {
  background: #34d399;
}

.mock-cards {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28%;
  bottom: 22%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-cards .c {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.35);
}

.mock-cards .c:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #fff, #eef2ff);
}

.mock-float {
  position: absolute;
  width: 120px;
  height: 72px;
  right: 8%;
  top: 18%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}

.mock-float::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
}

.mock-float::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #c7d2fe, #a5b4fc);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

/* Niche banner placeholders */
.niche-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 220px;
  position: relative;
  background: var(--bg-elevated);
}

.niche-banner img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
