:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef6f8;
  --ink: #10202b;
  --muted: #5f7180;
  --soft: #d8e4ea;
  --line: #d7e2e8;
  --aqua: #0f9f94;
  --blue: #2367f5;
  --mint: #dff9f4;
  --navy: #071722;
  --shadow: 0 24px 70px rgba(16, 32, 43, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fb 480px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.7rem); max-width: 12ch; }
h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
h3 { font-size: 1.12rem; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(16, 32, 43, .09);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-grid,
.footer-bottom,
.hero,
.section-wrap,
.split-section,
.page-hero,
.notice-band,
.trust-strip {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

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

.brand-logo img { display: block; width: 178px; height: auto; }
.footer-logo img { width: 190px; }

.site-nav {
  display: flex;
  gap: .3rem;
  align-items: center;
  background: #f0f5f7;
  border: 1px solid var(--line);
  padding: .28rem;
  border-radius: 8px;
}

.site-nav a {
  color: #334754;
  padding: .58rem .8rem;
  border-radius: 8px;
  font-weight: 720;
  font-size: .94rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(16, 32, 43, .08);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7.2rem) 0 2rem;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  color: var(--aqua);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 64ch;
  color: #4f6371;
}

.hero-actions,
.preference-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .88rem 1rem;
  font-weight: 850;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 14px 32px rgba(7, 23, 34, .18);
}

.button.ghost {
  background: #eef6f8;
}

.terminal-panel {
  border: 1px solid rgba(15, 159, 148, .22);
  border-radius: 8px;
  background: var(--surface);
  min-height: 430px;
  padding: 1.1rem;
  display: grid;
  align-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.terminal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,159,148,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,159,148,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .55;
  pointer-events: none;
}

.terminal-panel > * { position: relative; }

.terminal-head,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .9rem;
}

.terminal-head {
  color: var(--muted);
  background: #f8fbfc;
  border: 1px solid var(--line);
  padding: .85rem;
  border-radius: 8px;
}

.terminal-head time,
.metric-row strong {
  color: var(--ink);
  font-weight: 850;
}

.metric-row { padding: .95rem 0; }
.metric-row span { color: var(--muted); }

.pulse-stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .55rem;
  align-items: end;
  height: 120px;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.pulse-stack i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--aqua), rgba(15, 159, 148, .08));
  height: 40%;
}
.pulse-stack i:nth-child(2) { height: 70%; }
.pulse-stack i:nth-child(3) { height: 54%; }
.pulse-stack i:nth-child(4) { height: 86%; }
.pulse-stack i:nth-child(5) { height: 62%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
  margin-bottom: 1.6rem;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: .8rem;
  color: #35505f;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(16, 32, 43, .06);
}

.notice-band {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid #cce9e4;
  border-radius: 8px;
  background: var(--mint);
  padding: 1rem;
  margin-block: 1rem 3.5rem;
}

.notice-band strong {
  color: #08776f;
  min-width: 90px;
}
.notice-band span { color: #2f545b; }

.section-wrap { padding: 4rem 0; }
.compact { padding-top: 2rem; }

.section-head {
  display: grid;
  gap: .8rem;
  margin-bottom: 1.8rem;
  max-width: 780px;
}

.card-grid,
.archive-grid {
  display: grid;
  gap: 1rem;
}

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

.content-card,
.archive-item,
.text-block,
.preference-center {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(16, 32, 43, .07);
}

.content-card {
  min-height: 235px;
  padding: 1.15rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.content-card span,
.archive-item span {
  color: var(--aqua);
  font-weight: 850;
}
.content-card p { color: var(--muted); }
.content-card a { color: var(--blue); font-weight: 850; }

.split-section {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plain-list { display: grid; gap: 1rem; }
.plain-list p { color: #4f6371; }
.plain-list strong { color: var(--ink); }

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.assurance-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
}

.assurance-grid span {
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 850;
}

.assurance-grid h3 { margin: .55rem 0 .45rem; }

.article-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-list a {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.article-list span { color: var(--aqua); }
.article-list strong { font-size: 1.1rem; }

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  display: grid;
  gap: 1rem;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.page-hero p:last-child {
  max-width: 780px;
  color: #4f6371;
  font-size: 1.1rem;
}

.text-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

.text-block {
  padding: 1.2rem;
  min-height: 230px;
}

.text-block h2 {
  font-size: 1.08rem;
  margin-bottom: .75rem;
}
.text-block p { color: #4f6371; }

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

.archive-item {
  padding: 1rem;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: .7rem;
}

.sitemap-list { columns: 2; color: #4f6371; }
.sitemap-list a { color: var(--blue); }

.preference-center { overflow: hidden; }

.preference-status {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: #08776f;
  font-weight: 850;
  background: var(--mint);
}

.preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.preference-row h2 {
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.preference-actions { padding: 1.15rem; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 124px;
  justify-content: flex-end;
  color: #3e5564;
  font-weight: 850;
}

.switch input {
  appearance: none;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #d9e5eb;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.switch input::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #7b8f9c;
  transition: transform .18s ease, background .18s ease;
}

.switch input:checked {
  background: rgba(15, 159, 148, .2);
  border-color: rgba(15, 159, 148, .62);
}

.switch input:checked::after {
  transform: translateX(22px);
  background: var(--aqua);
}

.switch.locked { opacity: .72; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 2rem;
}

.footer-grid h2 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--aqua);
  margin-bottom: .8rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #7b8f9c;
  font-size: .84rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}

.cookie-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(930px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cookie-panel[hidden] { display: none !important; }

.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.cookie-actions button,
.cookie-actions a {
  border: 1px solid var(--line);
  background: #eef6f8;
  color: var(--ink);
  border-radius: 8px;
  padding: .65rem .8rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
}

.cookie-actions button:last-child {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .5rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero,
  .split-section,
  .footer-grid { grid-template-columns: 1fr; }
  .terminal-panel { min-height: 340px; }
  .three,
  .text-stack,
  .archive-grid,
  .assurance-grid,
  .trust-strip { grid-template-columns: 1fr; }
  .article-list a { grid-template-columns: 1fr; }
  .footer-bottom,
  .notice-band,
  .cookie-panel { flex-direction: column; }
  .preference-row { grid-template-columns: 1fr; }
  .switch { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-grid,
  .footer-bottom,
  .hero,
  .section-wrap,
  .split-section,
  .page-hero,
  .notice-band,
  .trust-strip {
    width: min(100% - 24px, var(--max));
  }
  .brand-logo img { width: 152px; }
  .footer-logo img { width: 168px; }
  h1 { font-size: 2.55rem; }
  .hero { padding-top: 3rem; }
  .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
}
