:root {
  --ink: #0d1726;
  --muted: #5d6b7f;
  --line: #dce4ef;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --blue: #1767e8;
  --blue-dark: #0c4fc2;
  --navy: #0e1a2a;
  --mint: #dff8ef;
  --shadow: 0 24px 70px rgba(20, 40, 75, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,228,239,.9);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: auto; height: 44px; border-radius: 0; }
.site-logo-img { height: 44px; width: auto; max-width: 205px; object-fit: contain; display: block; border-radius: 0 !important; }
.brand small { display: block; margin-top: -4px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 20px); font-size: 13.5px; font-weight: 650; white-space: nowrap; flex-shrink: 0; }
.nav-links a { text-decoration: none; color: #334056; white-space: nowrap; padding: 4px 2px; transition: color .15s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links .button, .nav-links .button:hover, .nav-links .button:focus-visible { color: #fff; min-height: 40px; padding: 0 16px; font-size: 13.5px; white-space: nowrap; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; padding: 9px 13px; color: #fff; background: var(--blue); border-radius: 9px; font-size: 13px; font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: 48px; right: 0; display: grid; width: min(280px, calc(100vw - 28px)); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 11px 12px; color: #26364c; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 700; }
.mobile-nav nav a:hover { color: var(--blue); background: var(--soft); }
.button, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button { color: #fff; background: var(--blue); box-shadow: 0 10px 26px rgba(23,103,232,.23); }
.button:hover { transform: translateY(-1px); background: var(--blue-dark); }
.button-secondary { color: #26364c; background: #fff; border: 1px solid #cbd6e5; }
.button-secondary:hover { transform: translateY(-1px); border-color: #8fa7c6; background: #f8fafc; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background: #080d1a;
  color: #ffffff;
}

/* Subtle high-resolution background with deep dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/loco-hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.24;
  filter: contrast(1.15) brightness(0.85);
  z-index: 0;
  pointer-events: none;
}

/* Ambient tech glow lighting (cyan, cobalt & deep blue gradients) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 18% 30%, rgba(37, 99, 235, 0.28) 0%, transparent 48%),
    radial-gradient(circle at 82% 22%, rgba(14, 165, 233, 0.20) 0%, transparent 44%),
    radial-gradient(circle at 50% 85%, rgba(15, 23, 42, 0.6) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.5) 0%, #080d1a 96%);
  z-index: 1;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 70px; }

.hero .eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(48px, 6.4vw, 78px);
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 665px;
  margin: 0;
  color: #94a3b8;
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero .button {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38), 0 0 20px rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero .button:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.hero .button-secondary {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}
.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero .trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 650;
}
.hero .trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: #34d399;
}

.hero-panel {
  position: relative;
  padding: 28px;
  color: #fff;
  background: rgba(14, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(37, 99, 235, 0.12);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 34px;
  transform: rotate(2deg);
}
.hero-panel-top { display: flex; justify-content: space-between; gap: 20px; color: #94a3b8; font-size: 12px; }
.status { color: #34d399; }
.hero-panel h2 { margin: 50px 0 12px; font-size: 31px; color: #ffffff; }
.hero-panel p { color: #94a3b8; font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 32px; }
.metric {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.65);
}
.metric strong { display: block; font-size: 15px; color: #ffffff; }
.metric span { color: #94a3b8; font-size: 11px; }

.section { padding: 92px 0; }
.section.soft { background: var(--soft); }
.section.dark { color: #fff; background: var(--navy); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 12px 0 14px; font-size: clamp(34px, 4vw, 49px); }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-head p { color: #aebdd0; }
.cards, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 32px 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--navy); box-shadow: 0 8px 28px rgba(31,56,91,.06); }
.card-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 20px; color: var(--blue); background: #e8f1ff; border-radius: 12px; font-weight: 900; font-size: 16px; }
.card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--navy) !important; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card code { padding: 3px 6px; border-radius: 5px; background: #edf2f8; color: #0e1a2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; font-weight: 600; }
.section.dark .card { color: var(--navy); background: #fff; }
.section.dark .card h3 { color: var(--navy) !important; }
.section.dark .card p { color: #5c6e86; }

.showcase { display: grid; grid-template-columns: .42fr 1fr; align-items: center; gap: 52px; margin-top: 44px; }
.showcase.reverse { grid-template-columns: 1fr .42fr; }
.showcase-copy h3 { margin: 10px 0 14px; font-size: 32px; }
.showcase-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; margin: 10px 0; padding-left: 27px; color: #344156; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #07956c; font-weight: 900; }
.screenshot { overflow: hidden; border: 1px solid #cbd8e8; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.screenshot img { width: 100%; height: auto; }
.screenshot figcaption { padding: 10px 15px; color: #66768a; border-top: 1px solid var(--line); font-size: 12px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 22px; border: 1px solid #283b54; border-radius: 16px; background: #14243a; }
.fact strong { display: block; margin-bottom: 5px; color: #fff; font-size: 17px; }
.fact span { color: #9eb0c8; font-size: 13px; }
.download-actions { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; text-align: center; }
.download-actions .button-secondary { color: #fff; background: transparent; border-color: #425875; }
.download-actions .button-secondary:hover { background: #14243a; border-color: #7188a5; }
.download-actions span { font-size: 11px; font-weight: 600; opacity: .72; }
.release-note { max-width: 660px; margin: 18px auto 0; color: #9eb0c8; font-size: 12px; text-align: center; }
.note { margin-top: 28px; padding: 18px 20px; color: #3e5069; background: #edf4ff; border-left: 4px solid var(--blue); border-radius: 6px 12px 12px 6px; font-size: 14px; }
.section-link { margin-top: 28px; text-align: center; }
.section-link a { color: var(--blue); font-weight: 800; text-decoration: none; }
.section-link a:hover { text-decoration: underline; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.lead { font-size: 21px; line-height: 1.55; }
.intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: start; }
.intro-grid h2 { margin: 12px 0 0; font-size: clamp(38px, 5vw, 58px); }
.intro-copy p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 52px; align-items: center; }
.product-copy h3 { margin: 16px 0 8px; font-size: 30px; }
.product-copy .note { margin-top: 24px; }
.four-cards { grid-template-columns: repeat(4, 1fr); }
.status-label { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-label.available { color: #076247; background: #dff8ef; }
.status-label.development { color: #805718; background: #fff1c9; }
.status-label.educational { color: #1456b8; background: #e7f0ff; }
.vision-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: center; }
.vision-grid h2 { margin: 12px 0 16px; font-size: clamp(38px, 5vw, 56px); }
.vision-grid p { color: #aebdd0; }
.vision-grid .button-secondary { margin-top: 18px; color: #fff; background: transparent; border-color: #425875; }
.direction-panel { padding: 30px; color: #fff; background: #14243a; border: 1px solid #2c405b; border-radius: 22px; }
.direction-panel h3 { margin: 17px 0 10px; font-size: 25px; }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.article-card { display: flex; min-height: 270px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.article-card h3 { margin: 18px 0 10px; font-size: 20px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { color: var(--muted); font-size: 14px; }
.article-card .text-link { margin-top: auto; font-size: 13px; }
.article-card.featured { border-color: #9fc3fa; box-shadow: 0 12px 35px rgba(23,103,232,.10); }

.cta { padding: 64px 0; color: #fff; background: linear-gradient(135deg, #145fd8, #083c99); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0 0 8px; font-size: 36px; }
.cta p { margin: 0; color: #d6e4ff; }
.cta .button { color: var(--blue); background: #fff; box-shadow: none; }

.page-hero { padding: 72px 0 52px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(42px, 6vw, 64px); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.feature-hero, .privacy-hero { background: radial-gradient(circle at 78% 20%, #dceaff 0, transparent 32%), var(--soft); }
.privacy-hero .trust-row { margin-top: 28px; }
.content { max-width: 840px; padding: 64px 0 88px; }
.content h2 { margin-top: 44px; font-size: 28px; }
.content h3 { margin-top: 28px; font-size: 20px; }
.content p, .content li { color: #445268; }
.content code { padding: 2px 6px; border-radius: 5px; background: #edf2f8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.content code.checksum { display: block; overflow-wrap: anywhere; padding: 12px; }
.content a { color: var(--blue); }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.doc-grid .card { height: 100%; }

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.privacy-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(31,56,91,.05); }
.privacy-card > span { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.privacy-card h3 { margin: 0 0 9px; font-size: 19px; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 14px; }
.data-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-step { position: relative; display: flex; gap: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 28px; right: -12px; z-index: 2; color: var(--blue); font-weight: 900; }
.flow-step > strong { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }
.flow-step h3 { margin: 3px 0 7px; font-size: 17px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 13px; }
.feature-list { display: grid; gap: 92px; }
.feature-split { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 58px; }
.feature-split.reverse { grid-template-columns: 1.2fr .8fr; }
.feature-split h2 { margin: 12px 0 14px; font-size: clamp(32px, 4vw, 46px); }
.feature-split p { color: var(--muted); }
.feature-panel { padding: 30px; color: #fff; background: var(--navy); border-radius: 22px; box-shadow: var(--shadow); }
.feature-panel h3 { margin: 0 0 16px; font-size: 25px; }
.feature-panel p { color: #b8c8dd; }
.endpoint-list { margin: 22px 0; }
.endpoint-list div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #2a3c54; }
.endpoint-list dt { color: #b8c8dd; }
.endpoint-list dd { margin: 0; }
.endpoint-list code { color: #8cc0ff; }
.mini-list { padding-left: 20px; color: #b8c8dd; }
.mini-list li { margin: 8px 0; }
.comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.comparison-panel { padding: 28px; border-radius: 18px; }
.comparison-panel h3 { margin: 0 0 16px; font-size: 21px; }
.comparison-panel ul { margin: 0; padding-left: 20px; }
.comparison-panel li { margin: 8px 0; }
.dark .comparison-panel.local { color: #dff8ef; background: #12342d; border: 1px solid #246b58; }
.dark .comparison-panel.network { color: #dce9fb; background: #14243a; border: 1px solid #334d70; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-grid h3 { margin: 0 0 9px; font-size: 18px; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .ghost-button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 800px); justify-content: center; align-items: start; gap: 70px; padding: 64px 0 96px; }
.docs-toc { position: sticky; top: 98px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.docs-toc strong { margin-bottom: 8px; }
.docs-toc a { padding: 5px 7px; color: #536176; border-radius: 6px; font-size: 13px; text-decoration: none; }
.docs-toc a:hover { color: var(--blue); background: #fff; }
.docs-article { min-width: 0; }
.docs-article > section { scroll-margin-top: 100px; padding: 0 0 52px; }
.docs-article > section + section { padding-top: 52px; border-top: 1px solid var(--line); }
.docs-article h2 { margin: 8px 0 18px; font-size: 33px; }
.docs-article h3 { margin: 28px 0 9px; font-size: 20px; }
.docs-article p, .docs-article li, .docs-article dd { color: #445268; }
.docs-article a { color: var(--blue); }
.docs-article code, .privacy-content code { padding: 2px 6px; border-radius: 5px; background: #edf2f8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.doc-label { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.callout { margin: 24px 0; padding: 18px 20px; color: #304461; background: #edf4ff; border-left: 4px solid var(--blue); border-radius: 6px 12px 12px 6px; }
.callout.warning { color: #664b19; background: #fff8e8; border-left-color: #e8a826; }
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li { position: relative; min-height: 46px; margin: 18px 0; padding-left: 58px; counter-increment: steps; }
.step-list li::before { content: counter(steps); position: absolute; top: 0; left: 0; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 850; }
.step-list strong, .step-list span { display: block; }
.detail-list { margin: 22px 0; }
.detail-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-list dd { margin: 0; }
.docs-comparison .comparison-panel.local { color: #164d3f; background: #effaf6; border: 1px solid #bde7d9; }
.docs-comparison .comparison-panel.network { color: #29486d; background: #f0f5fc; border: 1px solid #ccdbef; }
pre { overflow-x: auto; padding: 22px; color: #eaf2ff; background: #0d1929; border-radius: 14px; line-height: 1.55; }
pre code { padding: 0 !important; color: inherit; background: transparent !important; }
.docs-article code.checksum { display: block; overflow-wrap: anywhere; padding: 13px; }
.updated { color: var(--muted); font-size: 13px; }
.privacy-content { max-width: 1000px; }
.privacy-content > section { padding: 0 0 36px; }
.privacy-content > section + section { padding-top: 20px; border-top: 1px solid var(--line); }
.privacy-content .privacy-grid { grid-template-columns: repeat(3, 1fr); margin: 26px 0 12px; }

.learn-hero { padding: 82px 0 64px; color: #fff; background: radial-gradient(circle at 78% 18%, #1d58a8 0, transparent 30%), var(--navy); }
.learn-hero h1 { margin-bottom: 18px; }
.learn-hero p { max-width: 760px; color: #b8c8dd; font-size: 19px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-card { min-height: 210px; padding: 25px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 17px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hub-card:hover { transform: translateY(-2px); border-color: #9fc3fa; box-shadow: 0 14px 35px rgba(23,103,232,.09); }
.hub-card > span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.hub-card h3 { margin: 28px 0 9px; font-size: 21px; }
.hub-card p { margin: 0; color: var(--muted); font-size: 14px; }
.standards-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.standards-grid h2 { margin: 12px 0 0; font-size: clamp(37px, 5vw, 54px); }
.standards-grid p { color: var(--muted); font-size: 17px; }
.evidence-key { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.evidence { display: inline-flex; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.evidence.fact { color: #1552a8; background: #e8f1ff; border-color: #bdd4f7; }
.evidence.measured { color: #146046; background: #e3f7ef; border-color: #b4e3d2; }
.evidence.third-party { color: #6f5117; background: #fff4d6; border-color: #efd99b; }
.evidence.loco-test { color: #fff; background: var(--blue); }
.evidence.interpretation { color: #5d3ca0; background: #f0eaff; border-color: #d7c7fa; }
.evidence.opinion { color: #5a6370; background: #eef1f5; border-color: #d5dbe3; }
.breadcrumbs { padding: 18px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.article-hero { padding: 54px 0 42px; border-bottom: 1px solid var(--line); background: var(--soft); }
.article-hero h1 { max-width: 900px; margin-bottom: 16px; font-size: clamp(42px, 6vw, 66px); }
.article-hero p { max-width: 780px; color: var(--muted); font-size: 19px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #66768a; font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: center; align-items: start; gap: 70px; padding: 60px 0 92px; }
.article-body { min-width: 0; }
.article-body h2 { scroll-margin-top: 96px; margin: 50px 0 16px; font-size: 31px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 30px 0 10px; font-size: 21px; }
.article-body p, .article-body li { color: #3f4f65; }
.article-body a { color: var(--blue); }
.article-body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--soft); }
.article-aside { position: sticky; top: 98px; display: grid; gap: 18px; }
.article-aside section { padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 13px; }
.article-aside h2 { margin: 0 0 10px; font-size: 15px; }
.article-aside a { display: block; margin: 7px 0; color: #4d5d73; font-size: 12px; text-decoration: none; }
.article-aside a:hover { color: var(--blue); }
.source-list { padding-left: 19px; font-size: 13px; }
.source-list li { margin: 9px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 22px; }
.related-grid a { display: block; padding: 17px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 11px; font-weight: 750; text-decoration: none; }
.related-grid a:hover { color: var(--blue); border-color: #9fc3fa; }
.definition { margin: 24px 0; padding: 22px; background: #edf4ff; border-radius: 14px; font-size: 18px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.category-hero { padding: 66px 0 48px; background: var(--soft); border-bottom: 1px solid var(--line); }
.category-hero h1 { margin-bottom: 14px; font-size: clamp(43px, 6vw, 64px); }
.category-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.category-scope { margin-top: 24px; padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.category-scope strong { display: block; margin-bottom: 5px; }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.series-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.series-card h3 { margin: 0 0 9px; }
.series-card p { color: var(--muted); font-size: 14px; }

footer { padding: 42px 0; color: #93a4ba; background: #091321; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, .6fr)); gap: 36px; }
.footer-grid > div p { max-width: 340px; font-size: 13px; }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid nav strong { margin-bottom: 6px; color: #fff; font-size: 13px; }
.footer-grid nav a { color: #93a4ba; font-size: 13px; text-decoration: none; }
.footer-grid nav a:hover { color: #fff; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid #1f2d40; font-size: 12px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 900px) {
  .hero-grid, .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .hero-panel { max-width: 640px; }
  .cards, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .four-cards, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .vision-grid, .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid nav:last-child { grid-column: auto; }
  .privacy-grid, .data-flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse > :last-child { order: -1; }
  .docs-layout { grid-template-columns: 1fr; gap: 30px; }
  .docs-toc { position: static; grid-template-columns: repeat(3, 1fr); }
  .docs-toc strong { grid-column: 1 / -1; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-grid, .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .showcase.reverse .showcase-copy { order: -1; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { min-height: 64px; }
  .site-logo-img { height: 36px; max-width: 165px; }
  .brand small { display: none; }
  .nav-cta { min-height: 40px; padding: 0 13px; }
  .hero { padding: 52px 0; }
  h1 { font-size: 44px; }
  .hero-actions a { width: 100%; }
  .cards, .feature-grid, .four-cards, .article-grid, .facts, .doc-grid, .privacy-grid, .data-flow, .comparison, .faq-grid, .privacy-content .privacy-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .showcase { gap: 26px; }
  .cta-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .cta .button { width: 100%; }
  .cta-actions { width: 100%; }
  .docs-toc { grid-template-columns: repeat(2, 1fr); }
  .detail-list div { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-grid nav:last-child { grid-column: auto; }
  .hub-grid, .series-grid, .related-grid { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Academy Diagram, Pipeline & Callout Design System
   ========================================================================== */

/* Modern Flow Diagrams */
.diagram-flow {
  margin: 32px 0;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(14, 26, 42, 0.03);
}
.diagram-flow-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.diagram-pipeline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.diagram-pipeline.vertical {
  flex-direction: column;
  align-items: stretch;
}
.pipeline-step {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pipeline-step:hover {
  border-color: #9fc3fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 103, 232, 0.08);
}
.pipeline-step.primary {
  border-color: #bdd4f7;
  background: #f7faff;
}
.pipeline-step.success {
  border-color: #b4e3d2;
  background: #f3faf7;
}
.pipeline-step-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pipeline-step-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.pipeline-step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b93b2;
  font-size: 18px;
  font-weight: bold;
}
.diagram-pipeline.vertical .pipeline-arrow {
  margin: 2px 0;
  color: #94a3b8;
}

/* Two-column Comparison Pipelines (e.g. Training vs Inference) */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 36px 0;
}
@media (max-width: 820px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .diagram-pipeline {
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    margin: -2px 0;
  }
}
.comparison-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.comparison-card.training-card {
  border-top: 4px solid var(--blue);
}
.comparison-card.inference-card {
  border-top: 4px solid #10b981;
}
.comparison-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.comparison-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

/* Concept & Analogy Callout Cards */
.concept-callout {
  margin: 28px 0;
  padding: 22px 26px;
  background: #f8fbff;
  border: 1px solid #d0e2ff;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
}
.concept-callout.analogy {
  background: #fafbff;
  border-color: #dbeafe;
  border-left: 5px solid #6366f1;
}
.concept-callout.takeaway {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left: 5px solid #16a34a;
}
.concept-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.concept-callout.analogy .concept-callout-badge {
  color: #4f46e5;
}
.concept-callout.takeaway .concept-callout-badge {
  color: #15803d;
}
.concept-callout p {
  margin: 0 0 10px;
  line-height: 1.65;
  color: #2c3e50;
}
.concept-callout p:last-child {
  margin-bottom: 0;
}

/* Tree Hierarchies */
.tree-hierarchy {
  margin: 24px 0;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.tree-root {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 12px;
}
.tree-children {
  display: grid;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid #e2e8f0;
}
.tree-node {
  font-size: 14px;
  color: #475569;
}
.tree-bullet {
  color: var(--blue);
  margin-right: 6px;
}

/* Math & Equation Cards */
.equation-card {
  margin: 20px 0;
  padding: 14px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.lead-note {
  font-size: 15px;
  color: #334155;
  margin: 18px 0 8px;
}

/* Paragraph reading flow improvements */
.article-body p {
  margin-bottom: 1.25em;
  line-height: 1.7;
  font-size: 16px;
}

/* Recommended Models & Benchmarks Section */
.model-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.model-card-featured {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 32px rgba(20, 40, 75, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.model-card-featured:hover {
  transform: translateY(-3px);
  border-color: #8fa7c6;
  box-shadow: 0 16px 42px rgba(20, 40, 75, 0.10);
}
.model-card-featured.highlight {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}
.model-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.model-provider-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--blue);
}
.model-badge-top {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #dff8ef;
  color: #05966c;
}
.model-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}
.model-summary {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.model-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
}
.model-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--soft);
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
}
.spec-item strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.spec-item span {
  font-weight: 700;
  color: var(--navy);
}
.model-benchmarks {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.benchmark-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 10px;
}
.benchmark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 7px;
}
.benchmark-name {
  font-weight: 600;
  color: #334155;
  min-width: 86px;
}
.benchmark-bar-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.benchmark-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}
.benchmark-bar-fill.purple {
  background: #8b5cf6;
}
.benchmark-bar-fill.emerald {
  background: #10b981;
}
.benchmark-val {
  font-weight: 700;
  color: var(--navy);
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.model-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.model-card-actions .button-secondary {
  flex: 1;
  font-size: 13px;
  padding: 0 12px;
  min-height: 40px;
}
.matrix-container {
  margin-top: 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 32px rgba(20, 40, 75, 0.04);
}
.matrix-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}
.matrix-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.matrix-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 750;
  color: #334155;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.matrix-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  white-space: nowrap;
}
.matrix-table tr:hover td {
  background: #f8fafc;
}
.matrix-table td strong {
  color: var(--navy);
}
.score-pill {
  display: inline-block;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
}
.score-high { background: #dff8ef; color: #05966c; }
.score-mid { background: #e0f2fe; color: #0284c7; }
.score-top { background: #fef3c7; color: #b45309; }

/* ==========================================================================
   Video Walkthrough Section
   ========================================================================== */
#walkthrough {
  position: relative;
  background: #090e1a;
  color: #ffffff;
  overflow: hidden;
}

#walkthrough::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(23, 103, 232, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

#walkthrough .wrap {
  position: relative;
  z-index: 1;
}

.video-container-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(23, 103, 232, 0.18);
  backdrop-filter: blur(16px);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 40px auto 0;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 22px 20px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.timeline-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.timeline-step .step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.timeline-step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
}

.timeline-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
}

.video-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.video-cta-row .button-secondary {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.video-cta-row .button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

@media (max-width: 900px) {
  .video-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .video-container-wrap {
    padding: 6px;
    border-radius: 16px;
  }
  .video-container {
    border-radius: 12px;
  }
  .video-timeline-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
}


