
:root {
  --bg: #f4f7fb;
  --bg-2: #edf2f8;
  --panel: rgba(255,255,255,0.88);
  --panel-strong: #ffffff;
  --text: #0f1720;
  --muted: #4c5b6c;
  --line: rgba(17, 34, 51, 0.10);
  --accent: #123f73;
  --accent-2: #ff1734;
  --accent-soft: rgba(18, 63, 115, 0.08);
  --shadow: 0 18px 48px rgba(10, 25, 45, 0.08);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18,63,115,0.07), transparent 28%),
    linear-gradient(to bottom, #f7fafe, var(--bg));
  color: var(--text);
  line-height: 1.68;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.narrow { width: min(100% - 32px, 860px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,247,251,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.nav a.active,
.nav a.org-link {
  color: var(--text);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
}
.hero-home { padding-top: 92px; }
.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-left {
  top: -120px;
  left: -120px;
  background: rgba(18, 63, 115, 0.22);
}
.hero-glow-right {
  right: -80px;
  top: 40px;
  background: rgba(255, 23, 52, 0.14);
}
.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: start;
}
.hero h1, .page-shell h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.7rem);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}
.page-shell h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 700px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent), #1f558f);
  border-color: transparent;
  color: white;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: fit-content;
}
.hero-meta span { color: var(--muted); font-size: 0.92rem; }
.hero-meta strong { font-size: 0.96rem; }

.section { padding: 42px 0 68px; }
.section.alt {
  background: linear-gradient(to bottom, transparent, rgba(18,63,115,0.035));
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card-dark {
  background: linear-gradient(180deg, #e8f0fa, #dbe8f7);
  color: #12304f;
  border-color: rgba(18, 63, 115, 0.16);
  box-shadow: 0 18px 48px rgba(18, 63, 115, 0.10);
}
.card-dark h2,
.card-dark dt,
.card-dark a { color: #12304f; }
.card-dark dd { color: #4d6480; }
.card-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,251,255,0.86));
}
.cards {
  display: grid;
  gap: 20px;
}
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .section-card, .hover-lift { transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover, .section-card:hover, .hover-lift:hover { transform: translateY(-3px); }
.compact h2, .feature-card h2 { margin-top: 0; }
.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(18, 63, 115, 0.16);
}
.split-list { margin: 0; }
.split-list dt { margin-top: 16px; font-weight: 700; }
.split-list dd { margin: 6px 0 0; color: var(--muted); }
.split-list-compact dt:first-child { margin-top: 0; }
.meta-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
}
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.meta-list span { color: var(--muted); }
.signal-list,
.clean-list {
  margin: 0;
  padding-left: 20px;
}
.signal-list { list-style: none; padding: 0; }
.signal-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.signal-list li:last-child { border-bottom: 0; }
.signal-list span { color: var(--muted); }
.mini-label { margin: 0 0 12px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.text-link { font-weight: 700; }
.topic-title { margin-top: 0; }
.note { color: var(--muted); }
.quote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--accent-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(237,242,248,0.9));
  border-radius: 14px;
  font-size: 1.05rem;
}
.diagram {
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #102338, #0b1828);
  color: #eef3f8;
  overflow: auto;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.56);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand p { margin: 0; }
.footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.intro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}
.page-intro { margin-bottom: 22px; }
.stack-grid {
  display: grid;
  gap: 18px;
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.record-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

@media (max-width: 920px) {
  .hero-grid,
  .cards.two,
  .cards.three,
  .intro-panel {
    grid-template-columns: 1fr;
  }
  .header-inner, .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }
  .nav { justify-content: center; }
  .brand-logo { height: 36px; }
  .hero { padding-top: 72px; }
}

.hero-mark { position: relative; overflow: hidden; }
.hero-mark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(18,63,115,0.08), transparent 36%); pointer-events: none; }
.hero-mark > * { position: relative; z-index: 1; }
