:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #eef0f3;
  --text: #151922;
  --muted: #626a76;
  --line: rgba(18, 28, 44, 0.12);
  --accent: #1b283d;
  --accent-strong: #121c2c;
  --accent-soft: rgba(27, 40, 61, 0.08);
  --button: #142033;
  --button-hover: #1d2b42;
  --button-text: #ffffff;
  --focus: #6f86ad;
  --bg-wash: rgba(27, 40, 61, 0.12);
  --gold: #b68a35;
  --shadow: 0 24px 70px rgba(18, 28, 44, 0.1);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080b10;
    --surface: #10151d;
    --surface-soft: #151b25;
    --text: #edf0f4;
    --muted: #a9b0ba;
    --line: rgba(237, 240, 244, 0.13);
    --accent: #9aa8bc;
    --accent-strong: #c2cad6;
    --accent-soft: rgba(154, 168, 188, 0.1);
    --button: #1a2638;
    --button-hover: #24334a;
    --button-text: #ffffff;
    --focus: #899ab6;
    --bg-wash: rgba(70, 88, 115, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg-wash), transparent 420px),
    var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(18, 28, 44, 0.1);
}

.site-nav {
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.text-link,
.footer-links a {
  color: var(--accent-strong);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand:focus-visible,
.site-nav a:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero,
.section,
.policy-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 76px 0 56px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  font-size: clamp(2.65rem, 5.2vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--button);
  color: var(--button-text);
}

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

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

.button.secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-strong);
}

.system-panel,
.card,
.policy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.system-panel {
  padding: 22px;
}

.panel-topline,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-topline {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px 0;
}

.flow-node {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.flow-node.strong {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.node-title {
  font-weight: 760;
}

.node-detail {
  color: var(--muted);
}

.flow-line {
  width: 1px;
  height: 20px;
  margin-left: 22px;
  background: var(--line);
}

.system-panel p,
.card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 44px 0 80px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
}

.product-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
}

.tool-logo,
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.tool-logo {
  object-fit: contain;
  background: var(--surface-soft);
}

.card-icon {
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

.product-card .card-icon {
  margin-bottom: 0;
}

.calm-icon {
  background:
    radial-gradient(circle at 50% 46%, rgba(154, 168, 188, 0.14), transparent 58%),
    var(--accent-soft);
}

.card h3 {
  margin-bottom: 10px;
}

.card .text-link {
  display: inline-flex;
  margin-top: 14px;
}

.infrastructure-section {
  padding-top: 0;
}

.support-cards {
  grid-template-columns: minmax(0, 720px);
}

.policy-layout {
  padding: 58px 0 76px;
}

.policy {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 48px);
}

.updated {
  margin: 14px 0 32px;
  color: var(--muted);
  font-weight: 650;
}

.policy-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-section + .policy-section {
  margin-top: 36px;
}

.policy h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.policy h3 {
  margin-top: 26px;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 860px) {
  .hero,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

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