:root {
  color-scheme: light;
  --canvas: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --ink: #172027;
  --muted: #5f6c76;
  --line: #d5dde3;
  --line-strong: #aebbc5;
  --teal: #087b84;
  --teal-dark: #07545c;
  --brand-accent: #087b84;
  --green: #159447;
  --green-soft: rgba(21, 148, 71, 0.1);
  --amber: #c27408;
  --blue: #2f5fbd;
  --red: #bf3b3b;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.12);
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: Aptos, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(8, 123, 132, 0.12), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(21, 148, 71, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(23, 32, 39, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 39, 0.04) 1px, transparent 1px),
    var(--canvas);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.scan-line {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 123, 132, 0.8), rgba(21, 148, 71, 0.85), transparent);
  opacity: 0.28;
  pointer-events: none;
  animation: scan 12s linear infinite;
}

@keyframes scan {
  from { top: -2px; }
  to { top: 100vh; }
}

.status-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 18px;
  padding: 6px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.9);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.status-left,
.status-right {
  flex: 0 0 auto;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(21, 148, 71, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; box-shadow: 0 0 3px rgba(21, 148, 71, 0.4); }
}

.status-center {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker {
  width: max-content;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}

.ticker .sep {
  padding: 0 10px;
  color: var(--line-strong);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 5;
}

.site-header {
  position: sticky;
  top: 30px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-mark-stroke {
  stroke: currentColor;
}

.brand-mark-accent {
  stroke: var(--brand-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.button-link,
.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(23, 32, 39, 0.16);
}

.secondary-link {
  background: var(--surface);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: block;
  max-width: 1380px;
  margin: 0 auto;
  min-height: auto;
  padding: clamp(44px, 6vw, 70px) 28px 42px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 50%;
  width: min(760px, 86vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(8, 123, 132, 0.14) 0%, rgba(21, 148, 71, 0.08) 36%, transparent 72%);
  pointer-events: none;
  animation: hero-breathe 7s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.65; transform: translateX(-50%) scale(1.05); }
}

.hero > div,
.hero > aside {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.03;
}

h1 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.35rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1.04rem;
}

.lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.actions,
.status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.actions {
  margin-top: 28px;
}

.status-row {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill strong {
  color: var(--teal-dark);
}

.tool-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 940px;
  margin: 26px auto 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tool-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(8, 123, 132, 0.08) 48%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 7s ease-in-out infinite;
}

@keyframes shine {
  18%, 100% { transform: translateX(120%); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.preview-top span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-dot {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(21, 148, 71, 0.48);
}

.traffic-lights {
  display: inline-flex;
  gap: 6px;
  margin-right: 4px;
}

.traffic-lights i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 39, 0.14);
}

.traffic-lights i:nth-child(1) { background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

.preview-body {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px 22px;
  text-align: left;
}

.finding {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.finding div {
  min-width: 0;
}

.finding:last-child {
  border-bottom: 0;
}

.severity {
  width: fit-content;
  height: fit-content;
  padding: 5px 8px;
  background: #fff2df;
  color: #8a4e05;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.severity.medium {
  background: #e8f0ff;
  color: var(--blue);
}

.finding strong {
  display: block;
  color: var(--ink);
}

.finding p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.context-ribbon {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 0 28px;
  text-align: center;
}

.context-ribbon p {
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(23, 32, 39, 0.06);
  color: #35434b;
}

.context-ribbon strong {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.signal-strip article {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(23, 32, 39, 0.06);
}

.signal-strip article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.signal-strip span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.signal-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.signal-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

.band {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 104px) 28px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.68);
}

.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 56px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(8, 123, 132, 0.28), rgba(21, 148, 71, 0.18), transparent);
}

.band.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(238, 243, 246, 0.78)),
    rgba(238, 243, 246, 0.78);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.08;
}

.section-head p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

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

.card,
.step,
.engine {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(23, 32, 39, 0.06);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card::before,
.step::before,
.engine::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--green), transparent);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.card:hover,
.step:hover,
.engine:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px rgba(23, 32, 39, 0.12);
}

.card:hover::before,
.step:hover::before,
.engine:hover::before {
  opacity: 1;
}

.card p,
.step p,
.engine p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card a,
.engine a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal-dark);
  font-weight: 900;
}

.number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  background: #11191f;
  color: #8fe2b0;
  font-family: var(--mono);
  font-weight: 900;
}

.engine-status {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 6px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.engine-status.planned {
  background: rgba(194, 116, 8, 0.12);
  color: var(--amber);
}

.comparison {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(23, 32, 39, 0.06);
}

.comparison th,
.comparison td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(82px, 11vw, 132px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 16%, rgba(8, 123, 132, 0.14), transparent 28%),
    var(--surface-soft);
}

.page-hero h1 {
  max-width: 980px;
}

.content {
  max-width: 1120px;
}

.callout {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(23, 32, 39, 0.06);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 44px clamp(18px, 5vw, 72px);
  background: #11191f;
  color: #f2fbff;
}

.site-footer p {
  color: #b8c8d3;
}

.site-footer a {
  color: #f2fbff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .status-right {
    display: none;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .grid,
  .grid.two,
  .faq,
  .site-footer,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    max-width: 820px;
  }

  h1 {
    max-width: 700px;
    font-size: clamp(2.7rem, 6.8vw, 4rem);
  }

  .tool-preview,
  .context-ribbon,
  .signal-strip {
    max-width: 760px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .status-left {
    display: none;
  }

  .finding {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .eyebrow {
    justify-content: center;
  }

  .preview-top {
    padding: 13px 14px;
  }

  .preview-top span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .preview-body {
    padding: 12px 14px;
  }

  .context-ribbon,
  .signal-strip {
    padding-right: 18px;
    padding-left: 18px;
  }

  .band {
    padding-right: 18px;
    padding-left: 18px;
  }

  .comparison {
    display: block;
    overflow-x: auto;
  }

  .button-link,
  .secondary-link {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3rem);
    overflow-wrap: anywhere;
  }
}
