:root {
  color-scheme: dark;
  --ink: #e9f3f5;
  --muted: #9db0b7;
  --surface: #0b222d;
  --surface-2: #102d38;
  --line: rgba(159, 196, 207, 0.2);
  --accent: #45e0b6;
  --accent-strong: #8af4d5;
  --blue: #3fa7d6;
  --page: #06161e;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 77% 12%, rgba(41, 136, 158, 0.18), transparent 31rem),
    linear-gradient(180deg, #071a24 0, var(--page) 52rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 20; background: var(--accent); color: #032019; padding: .7rem 1rem; }
.skip-link:focus { left: 1rem; }
.site-header, main, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #041b16; border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
nav { display: flex; align-items: center; gap: 1.4rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
nav .nav-cta { border: 1px solid var(--accent); color: var(--accent-strong); padding: .48rem .8rem; border-radius: 6px; }
.hero { min-height: 585px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: 5rem 0; }
.eyebrow { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; letter-spacing: .18em; font-weight: 760; margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; margin-top: 0; }
h1 { font-size: clamp(3.15rem, 6.8vw, 6rem); margin-bottom: 1.7rem; max-width: 860px; }
h1 span { color: var(--accent-strong); }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.65rem); }
.hero-lede { max-width: 690px; color: #bbcad0; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .72rem 1.05rem; border-radius: 6px; text-decoration: none; font-weight: 760; font-size: .9rem; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #05231b; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border: 1px solid var(--line); background: rgba(16, 45, 56, .55); color: var(--ink); }
.signal-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, rgba(16, 45, 56, .94), rgba(7, 27, 36, .95)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.signal-header { display: flex; justify-content: space-between; color: #8faab3; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.live-dot { color: var(--accent); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: .45rem; box-shadow: 0 0 10px var(--accent); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; }
.metric-grid div { display: flex; flex-direction: column; padding: 1.35rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-grid div:nth-child(even) { border-right: 0; }
.metric-grid strong { font: 750 1.55rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--accent-strong); }
.metric-grid span { color: var(--muted); font-size: .75rem; margin-top: .3rem; }
.register-sample { display: grid; grid-template-columns: 5rem 1fr auto; gap: .7rem 1rem; padding: 1.3rem; color: #aac0c7; font: .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-value { color: var(--blue); }
.trust-strip { min-height: 65px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 1rem; color: #adc0c6; font-size: .79rem; font-weight: 650; }
.trust-strip span { text-align: center; }
.catalog-section { padding: 7rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); margin: 0; max-width: 610px; }
.filters { display: grid; grid-template-columns: minmax(280px, 1fr) 260px 240px; gap: .75rem; margin-top: 2.8rem; }
.filters input, .filters select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); padding: 0 1rem; font: inherit; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field { position: relative; }
.search-field > span:not(.visually-hidden) { position: absolute; left: 1rem; top: .55rem; color: var(--muted); font-size: 1.35rem; }
.search-field input { padding-left: 2.75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; padding: 1.5rem 0 1rem; }
.results-bar p { margin: 0; }
.results-bar a { color: var(--accent-strong); text-decoration: none; }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.map-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; padding: 1.25rem; background: rgba(11, 34, 45, .76); transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.map-card:hover { border-color: rgba(69, 224, 182, .52); transform: translateY(-2px); background: var(--surface); }
.card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 680 .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .06em; }
.featured-tag { color: var(--accent); }
.map-card h3 { font-size: 1.32rem; margin: 1rem 0 .65rem; }
.map-card p { color: #9fb3ba; font-size: .84rem; margin: 0 0 1.25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.category-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: auto 0 1.2rem; }
.category-list span { border: 1px solid var(--line); border-radius: 99px; color: #a8bec5; padding: .22rem .5rem; font-size: .65rem; }
.card-links { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.card-links a { text-align: center; text-decoration: none; border-radius: 5px; padding: .58rem .5rem; font-size: .76rem; font-weight: 720; }
.json-link { background: rgba(63, 167, 214, .11); color: #87d9ff; }
.docs-link { background: rgba(69, 224, 182, .12); color: var(--accent-strong); }
.empty-state { text-align: center; border: 1px dashed var(--line); padding: 3rem 1rem; border-radius: 9px; }
.empty-state p { color: var(--muted); }
.product-section { margin: 1rem 0 6rem; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; border: 1px solid rgba(69, 224, 182, .28); background: linear-gradient(135deg, rgba(28, 83, 89, .42), rgba(11, 34, 45, .78)); border-radius: 12px; }
.product-section h2 { margin-bottom: 0; }
.product-copy p { color: #b6c8ce; margin: 0 0 1.4rem; }
footer { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: #829ba4; font-size: .76rem; }
footer div { display: flex; gap: 1rem; }

.guide-badge { align-self: center; border: 1px solid #8193a1; border-radius: 999px; color: #c7d1d8; font-size: .78rem; line-height: 1; padding: .4rem .55rem; text-align: center; white-space: nowrap; }
.detail-page { margin: 0 auto; max-width: 1040px; padding: 4.5rem 1.5rem 5rem; }
.detail-page h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.05; max-width: 980px; }
.detail-page h2 { margin-top: 3rem; }
.detail-lede { color: var(--muted); font-size: 1.16rem; line-height: 1.7; max-width: 760px; }
.detail-meta, .detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.detail-meta span { background: #102b3a; border: 1px solid #315064; border-radius: 999px; color: #d4e4ec; font-size: .85rem; padding: .45rem .75rem; }
.detail-actions { align-items: center; }
.text-link { color: #9ee7d5; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid #315064; border-radius: 12px; }
.table-wrap table { border-collapse: collapse; min-width: 700px; width: 100%; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid #254452; padding: .8rem; text-align: left; }
.table-wrap th { background: #102b3a; color: #d4e4ec; }
.table-wrap tr:last-child td { border-bottom: 0; }
.detail-cta { background: #0e2d3d; border: 1px solid #315064; border-radius: 16px; margin-top: 3rem; padding: 1.5rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 0; }
  .signal-panel { max-width: 650px; }
  .trust-strip { grid-template-columns: 1fr 1fr; padding: 1rem 0; }
  .section-heading, .product-section { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .map-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .site-header { height: auto; min-height: 72px; align-items: flex-start; padding: 1rem 0; }
  .brand span:last-child { display: none; }
  nav { gap: .8rem; }
  nav a:first-child { display: none; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .filters, .map-grid, .product-section { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .trust-strip { grid-template-columns: 1fr; padding: 1.2rem 0; }
  .trust-strip span { text-align: left; }
  .results-bar, footer { align-items: flex-start; flex-direction: column; }
  footer { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
