:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #e9eef2;
  --ink: #12202b;
  --muted: #5c6b76;
  --line: #cfd8df;
  --accent: #da5f36;
  --accent-dark: #b84320;
  --dark: #13252d;
  --dark-soft: #1c333d;
  --green: #1f7a5a;
  --blue: #2e6483;
  --gold: #8b6a1f;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(20, 41, 52, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { width: min(800px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 248, 0.94);
  border-bottom: 1px solid rgba(207, 216, 223, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--accent);
  border-radius: 10px 4px 10px 4px;
  font-size: 18px;
}

.brand-name { font-size: 19px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

.site-nav a:hover { color: var(--accent-dark); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
}

.hero {
  padding: 84px 0 72px;
  overflow: hidden;
}

.hero-grid,
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

h3 {
  margin: 16px 0 12px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 41, 52, 0.14);
}

.button-primary {
  color: white;
  background: var(--accent);
}

.button-primary:hover { background: var(--accent-dark); }

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button-large {
  min-height: 54px;
  padding-inline: 26px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(207, 216, 223, 0.75);
  border-radius: 30px;
  background:
    radial-gradient(circle at 65% 30%, rgba(218, 95, 54, 0.23), transparent 34%),
    linear-gradient(145deg, #17303a, #0f2028);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(500px) rotateX(58deg) scale(1.55);
  transform-origin: 50% 75%;
  opacity: .55;
}

.data-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(218,95,54,.14);
}

.node-a { left: 20%; top: 26%; }
.node-b { right: 19%; top: 40%; }
.node-c { left: 47%; bottom: 24%; }

.scan-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  transform-origin: left center;
}

.line-a { left: 21%; top: 28%; width: 58%; transform: rotate(12deg); }
.line-b { left: 47%; bottom: 26%; width: 40%; transform: rotate(-42deg); }

.visual-label {
  position: absolute;
  left: 26px;
  bottom: 24px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section { padding: 82px 0; }

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:last-child,
.detail-card p,
.principles p,
.warning-grid p,
.callout p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  border-color: var(--dark);
  background: var(--dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.detail-card,
.product-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 41, 52, 0.06);
}

.product-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(218,95,54,.08), transparent 55%),
    var(--surface);
}

.product-card.is-hidden { display: none; }

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status,
.product-type {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status {
  padding: 6px 9px;
  border-radius: 999px;
}

.status-live { color: #12593e; background: #dff2ea; }
.status-development { color: #245c78; background: #dfeef5; }
.status-research { color: #765717; background: #f4ead0; }
.status-planned { color: #5d5573; background: #ebe7f2; }
.product-type { color: var(--muted); }

.feature-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.feature-list li { margin: 8px 0; }
.feature-list.large li { margin: 12px 0; }

.card-footer-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.section-dark {
  color: white;
  background: var(--dark);
}

.section-dark .eyebrow { color: #ff9a78; }
.section-dark p { color: #c9d5da; }

.approach-grid,
.warning-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 28px;
}

.principles > div {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.principles strong { font-size: 20px; }
.principles p { margin-bottom: 0; }

.callout-section { padding-top: 62px; }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.callout h2 { font-size: clamp(28px, 4vw, 42px); }
.callout p { max-width: 760px; margin-bottom: 0; }

.product-hero,
.legal-hero {
  padding: 78px 0 70px;
  background:
    linear-gradient(135deg, rgba(218,95,54,.09), transparent 46%),
    var(--surface-soft);
}

.product-page-topline {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.download-note {
  color: var(--muted);
  font-size: 14px;
}

.product-panel {
  background: var(--dark);
  color: white;
}

.metric {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.metric:last-child { border-bottom: 0; }
.metric span { display: block; margin-bottom: 6px; color: #aebfc7; font-size: 13px; }
.metric strong { font-size: 18px; }
.metric code { display: block; overflow-wrap: anywhere; color: #ffb197; font-size: 12px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.legal-content h2 {
  margin-top: 44px;
  font-size: 28px;
}

.legal-content h2:first-child { margin-top: 0; }

.site-footer {
  padding: 52px 0;
  color: #d8e1e5;
  background: #0c1a20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 50px;
  align-items: start;
}

.footer-brand { color: white; }
.footer-grid p { max-width: 520px; color: #9fb0b8; }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #d8e1e5;
  text-decoration: none;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #82969f;
  font-size: 13px;
}

@media (max-width: 850px) {
  .hero-grid,
  .product-hero-grid,
  .approach-grid,
  .warning-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero { padding-top: 58px; }
  .hero-visual { min-height: 320px; }

  .product-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }

  .callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .shell,
  .narrow { width: min(100% - 28px, 1180px); }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 14px;
    min-width: 200px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 10px; }

  h1 { font-size: 42px; }
  .hero-copy { font-size: 18px; }

  .product-card,
  .detail-card,
  .product-panel,
  .callout { padding: 22px; }

  .product-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
}
