:root {
  --bg: #090d18;
  --bg-elevated: #121a33;
  --bg-panel: rgba(17, 25, 50, 0.74);
  --text: #eaf0ff;
  --muted: #9eb0d9;
  --line: rgba(118, 146, 219, 0.2);
  --accent: #8bb8ff;
  --accent-2: #b38cff;
  --success: #76f3b5;
  --warning: #ffd166;
  --max: 1120px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(110, 166, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(179, 140, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0b1020 0%, #090d18 65%, #060912 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050914;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(125, 168, 255, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a.active,
.nav-links a:hover { color: var(--text); }

main { padding: 3.25rem 0 5rem; }

.hero,
.panel,
.card,
.note,
.stat,
.quote,
.callout {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 30px;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 0.9fr;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1,
.page-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero p,
.page-head p,
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-trustband {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.trust-chip {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 220ms ease, border-color 220ms ease, opacity 320ms ease;
}

.trust-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

.motion-ready .trust-chip {
  opacity: calc(0.76 + (var(--hero-progress) * 0.24));
}

.home-hero[data-motion='active'] .trust-chip {
  animation: hero-fade-up 700ms ease both;
  animation-delay: var(--trust-delay, 0ms);
}

.button,
button,
input,
textarea,
select {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08101f;
  font-weight: 700;
}

.button.secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.metric-stack {
  display: grid;
  gap: 1rem;
}

.stat,
.card,
.panel,
.quote,
.note,
.callout {
  border-radius: var(--radius);
}

.stat,
.card,
.note,
.quote,
.callout {
  padding: 1.25rem;
}

.panel {
  padding: 1.35rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label,
.meta,
.caption,
.list-muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section {
  margin-top: 1.8rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head h2,
.card h2,
.panel h2,
.note h2,
.quote h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.section-head p,
.card p,
.panel p,
.note p,
.quote p,
li {
  margin: 0;
  color: var(--muted);
}

.list,
.checks,
.steps {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.checks li,
.steps li,
.list li {
  position: relative;
  padding-left: 1.4rem;
}

.checks li::before,
.steps li::before,
.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.page-head {
  margin-bottom: 1.4rem;
}

.page-head-tight {
  max-width: 820px;
}

.hero-subcopy {
  margin-top: 0.95rem;
  max-width: 58ch;
  color: var(--muted);
}

.polished-hero {
  --pointer-x: 0;
  --pointer-y: 0;
  --badge-shift-x: 0px;
  --badge-shift-y: 0px;
  --hero-progress: 0;
  --artifact-lift: 0px;
  --hero-text-lift: 0px;
  --hero-glow: 0.22;
  position: relative;
  overflow: hidden;
}

.polished-hero::before {
  content: "";
  position: absolute;
  inset: -15% 44% auto -12%;
  height: 16rem;
  background: radial-gradient(circle, rgba(179, 140, 255, calc(var(--hero-glow) * 0.62)), transparent 68%);
  transform: translate3d(calc(var(--pointer-x) * 22px), calc(var(--pointer-y) * 18px), 0);
  pointer-events: none;
  filter: blur(10px);
}

.polished-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(139, 184, 255, calc(var(--hero-glow) * 0.86)), transparent 65%);
  transform: translate3d(calc(var(--pointer-x) * -30px), calc(var(--pointer-y) * -24px), 0);
  pointer-events: none;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.emphasis,
.emphasis-card {
  background: linear-gradient(180deg, rgba(139,184,255,0.11), rgba(139,184,255,0.04));
  border-color: rgba(139,184,255,0.24);
}

.soft-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.feature-card h2,
.proof-card h2,
.proof-index-card h2 {
  font-size: 1.45rem;
}

.feature-card p,
.proof-card p,
.proof-index-card p {
  max-width: 34ch;
}

.quote-large {
  padding: 1.6rem;
}

.quote-large h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.compact-stat .stat-value {
  font-size: 1.35rem;
  line-height: 1.15;
}

.callout-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button.slim {
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
}

.note h3,
.proof-tease h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

strong {
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.88rem;
}

.note time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.callout {
  background: linear-gradient(180deg, rgba(117,243,181,0.08), rgba(117,243,181,0.03));
  border-color: rgba(117,243,181,0.2);
}

.warning {
  background: linear-gradient(180deg, rgba(255,209,102,0.08), rgba(255,209,102,0.03));
  border-color: rgba(255,209,102,0.22);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 18px;
  background: rgba(5,10,20,0.72);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d8e6ff;
}

form {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,10,20,0.58);
  color: var(--text);
  padding: 0.9rem 1rem;
}

textarea { min-height: 8rem; resize: vertical; }

small,
.help {
  color: var(--muted);
}

.status {
  margin-top: 0.5rem;
  min-height: 1.5rem;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 3rem;
  color: var(--muted);
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.home-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
}

.dominant-artifact {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  transform: translate3d(calc(var(--pointer-x) * -14px), calc((var(--pointer-y) * -10px) - var(--artifact-lift)), 0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.dominant-artifact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,184,255,0.08), transparent 34%, rgba(179,140,255,0.1));
  opacity: calc(0.4 + (var(--hero-progress) * 0.35));
  pointer-events: none;
}

.dominant-artifact h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.02;
}

.artifact-visual-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.artifact-portrait-wrap {
  position: relative;
  margin: 0;
  min-height: 25rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.06), rgba(6, 12, 24, 0.52)),
    radial-gradient(circle at top, rgba(139,184,255,0.16), transparent 46%),
    #0a1020;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.artifact-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0), rgba(6, 12, 24, 0.82));
  pointer-events: none;
}

.artifact-portrait {
  width: 100%;
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.04) translate3d(calc(var(--pointer-x) * 12px), calc(var(--pointer-y) * 10px), 0);
  transition: transform 240ms ease, filter 220ms ease, opacity 360ms ease;
}

.artifact-badge {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  min-width: 10rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9, 13, 24, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.26);
  transition: transform 240ms ease, border-color 220ms ease, opacity 320ms ease;
}

.artifact-badge strong,
.artifact-console strong {
  line-height: 1.2;
}

.artifact-badge-label,
.artifact-console-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.artifact-badge-primary {
  left: 1rem;
  bottom: 1rem;
  transform: translate3d(calc(var(--badge-shift-x) * 0.45), calc(var(--badge-shift-y) * 0.45), 0);
}

.artifact-badge-secondary {
  top: 1rem;
  right: 1rem;
  transform: translate3d(calc(var(--badge-shift-x) * -0.35), calc(var(--badge-shift-y) * -0.35), 0);
}

.artifact-console {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5, 10, 20, 0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 240ms ease, opacity 320ms ease, border-color 220ms ease;
}

.artifact-console-head {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.artifact-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(118,243,181,0.45);
}

.artifact-console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.artifact-console-grid > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.artifact-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
}

.artifact-row {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(4, 10, 22, 0.42);
  border: 1px solid rgba(255,255,255,0.06);
  transform: translate3d(0, 0, 0);
  transition: transform 240ms ease, border-color 220ms ease, background 220ms ease, opacity 320ms ease;
}

.home-hero[data-motion='active'] .artifact-row {
  animation: hero-fade-up 720ms ease both;
  animation-delay: var(--row-delay, 0ms);
}

.home-hero[data-motion='active'] .artifact-row:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(139,184,255,0.28);
  background: rgba(7, 14, 30, 0.66);
}

.home-hero[data-motion='active'] .artifact-badge,
.home-hero[data-motion='active'] .artifact-console,
.home-hero[data-motion='active'] .artifact-portrait {
  animation: hero-fade-up 780ms ease both;
  animation-delay: var(--badge-delay, var(--console-delay, var(--portrait-delay, 0ms)));
}

.home-hero[data-motion='active'] .artifact-dot {
  animation: signal-pulse 2.2s ease-in-out infinite;
}

.artifact-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.artifact-proofline {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-weight: 600;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes signal-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(118,243,181,0.08);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(118,243,181,0.22);
  }
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.editorial-split h2,
.case-study-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.editorial-split p {
  color: var(--muted);
  max-width: 42ch;
}

.evidence-rail {
  display: grid;
  gap: 0.8rem;
}

.rail-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.rail-item p {
  margin-top: 0.35rem;
}

.preview-grid .card,
.proof-index-grid .card {
  min-height: 100%;
}

.case-study {
  display: grid;
  gap: 1rem;
}

.case-study-head {
  max-width: 60rem;
}

.case-study-grid .panel {
  min-height: 100%;
}

.intake-panel {
  min-height: 100%;
}

.primary-cta-band {
  margin-top: 2rem;
}

.note-fallback {
  min-height: 100%;
}

@media (max-width: 900px) {
  .hero,
  .grid.two,
  .grid.three,
  .editorial-split,
  .home-hero { grid-template-columns: 1fr; }
  .section-head,
  .footer-line,
  .callout-cta {
    display: grid;
  }
  .artifact-console-grid {
    grid-template-columns: 1fr;
  }
  .nav { align-items: start; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 1rem), var(--max)); }
  main { padding-top: 2rem; }
  .hero { padding: 1.2rem; border-radius: 24px; }
  .nav-links { gap: 0.75rem; font-size: 0.9rem; }
  .button { width: 100%; }
  .artifact-portrait-wrap {
    min-height: 20rem;
  }
  .artifact-portrait {
    min-height: 20rem;
  }
  .artifact-badge {
    position: static;
    min-width: 0;
    margin: 0.75rem;
    transform: none;
  }
  .artifact-caption-rail {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .dominant-artifact,
  .hero-copy,
  .polished-hero::before,
  .polished-hero::after {
    transform: none;
  }
  .signal-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .signal-pill,
  .trust-chip,
  .artifact-row,
  .artifact-badge,
  .artifact-console,
  .artifact-portrait,
  .artifact-frame-lines,
  .hero-copy > *,
  .dominant-artifact,
  .polished-hero::before,
  .polished-hero::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
