:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-panel: #0f1f2d;
  --bg-soft: #13283a;
  --text: #f4f7f8;
  --muted: #a7b7c3;
  --gold: #f2b84b;
  --blue: #58b9f6;
  --green: #7bc477;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(88, 185, 246, .24), transparent 26rem),
    radial-gradient(circle at 80% 5%, rgba(242, 184, 75, .12), transparent 28rem),
    linear-gradient(180deg, #08121d 0, var(--bg) 45rem);
  color: var(--text);
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(7, 16, 24, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header__left { display: inline-flex; align-items: center; gap: .85rem; flex: 0 1 auto; min-width: 0; }
.site-header__brand { display: inline-flex; align-items: center; gap: .9rem; min-width: 0; text-decoration: none; }
.site-header__brand .brand-mark { flex: 0 1 auto; }
.site-header__brand .brand-mark__label { white-space: nowrap; overflow-wrap: normal; }
.site-header__eyebrow { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.shortcut-toggle { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .65rem; background: rgba(255, 255, 255, .06); font: inherit; text-transform: none; letter-spacing: 0; }
.shortcut-toggle { cursor: pointer; color: var(--muted); }
.shortcut-toggle:hover { border-color: rgba(88, 185, 246, .45); background: rgba(88, 185, 246, .12); }
.site-nav { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; font-size: .88rem; color: var(--muted); }
.site-nav a,
.nav-menu summary { border: 1px solid transparent; border-radius: 999px; padding: .35rem .6rem; text-decoration: none; }
.site-nav a:hover,
.nav-menu summary:hover { color: var(--text); }
.site-nav a.is-active,
.site-nav a[aria-current="page"],
.nav-menu.is-active summary,
.site-nav__current { color: var(--text); background: rgba(242, 184, 75, .12); border-color: rgba(242, 184, 75, .45); box-shadow: 0 0 0 1px rgba(242, 184, 75, .12) inset; }
.site-nav__current { border: 1px solid rgba(242, 184, 75, .45); border-radius: 999px; padding: .35rem .6rem; font-weight: 850; }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: "▾"; margin-left: .4rem; color: var(--muted); font-size: .75em; }
.nav-menu[open] summary::after { content: "▴"; }
.nav-menu__panel { position: absolute; left: 0; right: auto; top: calc(100% + .55rem); z-index: 8; display: grid; gap: .25rem; min-width: min(13rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); padding: .55rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 16, 24, .96); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.nav-menu:nth-last-of-type(-n + 2) .nav-menu__panel { left: auto; right: 0; }
.nav-menu__panel a { border-radius: 12px; padding: .55rem .7rem; white-space: nowrap; }
.site-main { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }

.hero {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(2rem, 6vw, 5rem);
  margin: 2rem 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% 38%;
  height: 22rem;
  background: radial-gradient(circle, rgba(88, 185, 246, .22), transparent 68%);
  pointer-events: none;
}
.hero--dark { background: linear-gradient(135deg, rgba(15, 31, 45, .98), rgba(8, 14, 24, .98)); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: .95; margin: .2em 0; letter-spacing: -.04em; }
h2 { margin-top: 1.85rem; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }
h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__actions a,
.reviewer-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .85rem 1.1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.hero__actions a:hover,
.reviewer-nav a:hover { border-color: rgba(242, 184, 75, .6); background: rgba(242, 184, 75, .08); transform: translateY(-1px); }

.disclaimer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}
.disclaimer { color: #f8d38a; }
body.hide-reviewer-shortcuts .reviewer-nav { display: none; }

.content-page,
.brand-system-panel,
.proof-loop-graphic,
.reviewer-nav {
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(15, 31, 45, .72), rgba(9, 18, 28, .78));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}
.content-page p,
.content-page li,
.section-heading p { color: var(--muted); font-size: .95rem; line-height: 1.64; }
.content-page > h2:first-of-type { margin-top: 1rem; }
.content-page blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(242, 184, 75, .06);
  border-radius: 0 16px 16px 0;
  color: var(--text);
}
.content-page table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; overflow: hidden; }
.content-page th,
.content-page td { border-bottom: 1px solid var(--line); padding: .75rem; text-align: left; vertical-align: top; }
.content-page td { color: var(--muted); font-size: .95rem; line-height: 1.64; }
.content-page th { color: var(--text); background: rgba(255, 255, 255, .04); font-size: .92rem; line-height: 1.45; font-weight: 850; }

.brand-mark { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; min-width: 0; font-weight: 900; }
.brand-mark__label { min-width: 0; overflow-wrap: anywhere; line-height: 1.05; }
.brand-mark__image { width: 2rem; height: 2rem; object-fit: contain; filter: drop-shadow(0 0 12px rgba(242, 184, 75, .22)); }
.site-header .brand-mark__image { width: 2.5rem; height: 2.5rem; }
.brand-mark--odin .brand-mark__image { filter: drop-shadow(0 0 14px rgba(88, 185, 246, .34)); }
.brand-mark--dori .brand-mark__image { filter: drop-shadow(0 0 14px rgba(133, 213, 255, .34)); }
.brand-mark--yggdrasil .brand-mark__image { filter: drop-shadow(0 0 14px rgba(123, 196, 119, .34)); }
.ecosystem-strip__item--odin .ecosystem-strip__glyph { color: var(--blue); }
.ecosystem-strip__item--dori .ecosystem-strip__glyph { color: #85d5ff; }
.ecosystem-strip__item--yggdrasil .ecosystem-strip__glyph { color: var(--green); }

.ecosystem-strip,
.brand-system-panel__grid,
.proof-loop-graphic__rail,
.asset-inventory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ecosystem-strip__item,
.brand-card,
.proof-stage,
.asset-inventory article {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}
.ecosystem-strip__item,
.brand-card { min-width: 0; justify-items: center; text-align: center; }
.ecosystem-strip__item,
.brand-card { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.ecosystem-strip__item:hover,
.brand-card:hover { border-color: rgba(242, 184, 75, .45); background: rgba(242, 184, 75, .06); transform: translateY(-1px); }
.ecosystem-strip__item .brand-mark,
.brand-card .brand-mark { flex-direction: column; gap: .35rem; font-size: clamp(.72rem, 2.4vw, .95rem); }
.ecosystem-strip__item strong,
.brand-card strong { max-width: 100%; min-width: 0; font-size: clamp(.86rem, 3.5vw, 1.05rem); line-height: 1.08; overflow-wrap: anywhere; }
.ecosystem-strip__glyph { font-size: 1.8rem; color: var(--gold); }
.ecosystem-strip__item span:last-child,
.brand-card span,
.asset-inventory span { color: var(--muted); font-size: .88rem; }

.brand-system-panel { position: relative; overflow: hidden; }
.brand-system-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 184, 75, .06), transparent 38%, rgba(88, 185, 246, .08));
  pointer-events: none;
}
.brand-system-panel > * { position: relative; }
.brand-system-panel--compact .section-heading p { display: none; }
.brand-system-panel--compact .brand-system-panel__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.brand-card--odin { border-color: rgba(88, 185, 246, .28); }
.brand-card--dori { border-color: rgba(133, 213, 255, .28); }
.brand-card--yggdrasil { border-color: rgba(123, 196, 119, .28); }
.asset-inventory { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.asset-inventory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-inventory p { margin: 0; color: var(--muted); font-size: .95rem; }

.proof-loop-graphic__rail { grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: proof; }
.proof-stage { min-height: 12rem; align-content: start; position: relative; overflow: hidden; }
.proof-stage::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(88, 185, 246, .08);
}
.proof-stage__number { color: var(--gold); font-weight: 900; letter-spacing: .16em; }
.proof-stage p { color: var(--muted); line-height: 1.55; margin: 0; }

.visual-slot {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.visual-slot__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 800; }
.visual-slot__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; margin-top: 1rem; }
.visual-slot__body img { width: 5rem; height: 5rem; object-fit: contain; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: .5rem; }
.visual-slot p { margin-bottom: 0; color: var(--muted); }

.product-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.product-visual { margin: 2rem 0; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .045); overflow: hidden; box-shadow: 0 18px 60px rgba(0, 0, 0, .16); }
.product-visual-grid .product-visual { margin: 0; }
.product-visual img { display: block; width: 100%; height: auto; background: #071018; }

.commercial-detail-cta { display: inline-flex; align-items: center; width: fit-content; margin: .5rem 0 1.25rem; border: 1px solid rgba(242, 184, 75, .55); border-radius: 999px; padding: .85rem 1.1rem; color: var(--text); background: rgba(242, 184, 75, .12); text-decoration: none; font-weight: 850; }
.commercial-detail-cta:hover { background: rgba(242, 184, 75, .18); }

.concept-gallery { display: grid; gap: 1.5rem; margin-top: 2rem; }
.concept-card { border: 1px solid var(--line); border-radius: 24px; padding: 1rem; background: rgba(255, 255, 255, .04); }
.concept-card img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #071018; }
.concept-card h2 { margin: 1rem 0 .4rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.concept-card p { color: var(--muted); margin-top: 0; font-size: .95rem; line-height: 1.6; }

.reviewer-nav { padding: 1rem; }
.reviewer-nav__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.reviewer-nav a { color: var(--muted); font-size: .9rem; }

.brand-reference { margin: 2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .04); }
.brand-reference img { display: block; width: 100%; height: auto; border-radius: 16px; }
.brand-reference figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.review-questions { margin-top: 2rem; }

@media (max-width: 980px) {
  .ecosystem-strip,
  .brand-system-panel__grid,
  .proof-loop-graphic__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-inventory__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header__left { flex-wrap: wrap; }
  .ecosystem-strip,
  .product-visual-grid,
  .brand-system-panel__grid,
  .proof-loop-graphic__rail { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header { padding: .85rem 1rem; }
  .site-header__eyebrow { display: none; }
  .site-header .brand-mark__image { width: 2.15rem; height: 2.15rem; }
  .site-nav { justify-content: flex-start; }
}
