/* hero section */
.hero {
  position: relative;
  padding: 140px 48px 60px; /* 140 accounts for fixed nav */
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(223,213,234,0.45) 0%, transparent 70%);
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--teal);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Inter'; font-weight: 300;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98; letter-spacing: -0.036em;
  color: var(--ink);
  max-width: 14ch; margin: 0 auto 28px;
}
.hero h1 em {
  font-style: italic; color: var(--teal); font-weight: 400;
}
.hero-sub {
  font-size: 19px; color: var(--body); line-height: 1.5;
  max-width: 48ch; margin: 0 auto 36px; font-weight: 400;
}
.hero-ctas {
  display: inline-flex; gap: 12px; align-items: center;
}
.hero-ctas .mono {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); margin-left: 14px;
  letter-spacing: 0.08em;
}

/* hero product shot */
.hero-shot {
  margin: 56px auto 0;
  max-width: 1200px;
  position: relative;
}
.hero-shot .shot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 16/7.4;
  position: relative;
}
.hero-shot .shot-caption {
  position: absolute; bottom: 18px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(6px);
  padding: 5px 9px; border-radius: 4px;
}

/* parallax on product shots */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
  transition: transform 100ms linear;
}

/* app mock inside hero shot */
.app-mock {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  grid-template-rows: 44px 1fr;
}
.app-mock .app-topbar {
  grid-column: 1 / -1;
  background: #fafaf7;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--body);
}
.app-mock .app-topbar .bc {
  display: flex; align-items: center; gap: 8px;
}
.app-mock .app-topbar .bc span { color: var(--muted); }
.app-mock .app-topbar .bc b { color: var(--ink); font-weight: 500; }
.app-mock .app-side {
  background: #f7f5f0;
  border-right: 1px solid var(--line-soft);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.app-side .s-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  margin: 12px 0 6px; padding-left: 8px;
}
.app-side .s-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  font-size: 12px; color: var(--ink-2);
}
.app-side .s-item.active {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-soft); font-weight: 500;
}
.app-side .s-item i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
}
.app-side .s-item.active i { background: var(--teal); }
.app-mock .app-main {
  padding: 22px 26px;
  background: #fff;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
  position: relative;
}
.app-main .tool-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.app-main .tool-head h3 {
  font-family: 'Inter'; font-size: 20px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--ink);
}
.app-main .tool-head .meta {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.14em;
}
.app-main .form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.app-main .field {
  border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 10px 12px; background: #fafaf7;
}
.app-main .field label {
  font-size: 10px; color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase; display: block; margin-bottom: 4px;
}
.app-main .field .val {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink);
}
.app-main .field.wide { grid-column: 1 / -1; }
.app-main .field.teal {
  background: var(--teal-soft); border-color: rgba(13,92,99,0.18);
}
.app-main .field.teal .val { color: var(--teal-deep); }
.app-main .toolbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 500; align-self: flex-start;
}
.app-mock .app-right {
  background: #fbf9f4;
  border-left: 1px solid var(--line-soft);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.app-right .r-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
}
.app-right .r-event {
  padding: 10px 12px; border: 1px solid var(--line-soft);
  border-radius: 6px; background: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.app-right .r-event .t { font-size: 12px; color: var(--ink); }
.app-right .r-event .s {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted);
}
.app-right .r-event.ok { border-left: 2px solid var(--teal); }
.app-right .r-event.warn { border-left: 2px solid var(--gold); }
.app-right .r-event.warn.in {
  animation: warn-glow 1.6s ease-out 0.4s;
}
@keyframes warn-glow {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  30% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.18); }
  60% { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.10); }
  100% { box-shadow: none; }
}

/* ============ LIVE MOCK ANIMATIONS ============ */

/* live dot pulse */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* phase visibility */
.mock-phase { transition: opacity 400ms ease; min-height: 0; }
.mock-phase.hidden { opacity: 0; position: absolute; inset: 0; pointer-events: none; padding: 66px 26px 22px; }
.mock-phase.visible { opacity: 1; position: relative; }

/* loading status text */
.mock-status {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--teal); letter-spacing: 0.06em;
  margin-top: 4px;
  animation: status-blink 1.2s ease-in-out infinite;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* progress bars inside fields */
.field-progress {
  margin-top: 6px; height: 3px;
  background: var(--line-soft); border-radius: 3px;
  overflow: hidden;
}
.field-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  border-radius: 3px;
  transition: width 80ms linear;
}

/* animated field entrance */
.mock-anim {
  opacity: 0; transform: translateY(8px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.mock-anim.in {
  opacity: 1; transform: none;
}

/* delta field emphasis */
.delta-field.glow {
  animation: delta-glow 800ms ease-out;
}
@keyframes delta-glow {
  0% { box-shadow: 0 0 0 0 rgba(13, 92, 99, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(13, 92, 99, 0.08); }
  100% { box-shadow: none; }
}

/* activity feed items */
.mock-feed {
  opacity: 0; transform: translateX(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.mock-feed.in {
  opacity: 1; transform: none;
}

/* toast notification */
.mock-toast {
  position: absolute; bottom: 16px; right: 16px; left: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  z-index: 10;
  opacity: 0; transform: translateY(12px) scale(0.96);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 280px;
}
.mock-toast.in {
  opacity: 1; transform: none;
}
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.toast-title {
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 2px;
}
.toast-detail {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.04em;
}

/* mismatch detail table */
.mock-table {
  margin-top: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #fafaf7;
}
.mt-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.mt-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.mt-action {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--teal); letter-spacing: 0.06em; cursor: pointer;
}
.mock-table table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.mock-table th {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; padding: 6px 12px;
  background: #f4f2ec; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mock-table td {
  padding: 7px 12px; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
}
.mock-table td.mono {
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
}
.mock-table tr:last-child td { border-bottom: none; }
.delta-neg { color: #b4452e; font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.delta-pos { color: var(--teal-deep); font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.delta-zero { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.flag {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.flag.high { background: #fce8e4; color: #b4452e; }
.flag.med { background: var(--gold-soft); color: #8a6d0b; }
.flag.ok { background: #e3eeef; color: var(--teal-deep); }

/* table row stagger animation */
.mock-row {
  opacity: 0; transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.mock-row.in {
  opacity: 1; transform: none;
}

/* reduced motion: skip mock animations */
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .mock-status { animation: none; }
  .mock-anim { opacity: 1; transform: none; }
  .mock-feed { opacity: 1; transform: none; }
  .mock-row { opacity: 1; transform: none; }
  .mock-toast { opacity: 1; transform: none; }
  .field-progress-bar { transition: none; }
}

/* page load animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.hero-eyebrow { animation: fade-up 350ms ease-out 150ms both; }
.hero h1 { animation: fade-up 350ms ease-out 250ms both; }
.hero-sub { animation: fade-up 300ms ease-out 380ms both; }
.hero-ctas { animation: fade-up 300ms ease-out 480ms both; }
