/* ==========================================================================
   Orbis Brand Kit v1.0 · shared CSS
   ==========================================================================
   Source of truth: docs/superpowers/specs/2026-05-16-orbis-brand-kit-foundation-design.md
   Brand guide:     https://orbis-rebrand.pages.dev/kit/
   Canonical surface: products/orbis/landing/enterprise/index.html

   USAGE: link from every page in products/orbis/landing/
     <link rel="stylesheet" href="/_brand-kit.css">

   NEVER re-inline the brand variables. NEVER redefine the palette inside a page.
   If you need a one-off tweak, do it as a scoped override AFTER this stylesheet.

   FONT LOAD: pages should also include in <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Noto+Sans+JP:wght@500;700&display=swap" rel="stylesheet">
   ========================================================================== */


/* ----- TOKENS ----- */
:root {
  /* Neutrals — light */
  --ink:         #08080A;
  --ink-2:       #2A2A2E;
  --ink-3:       #7A7A80;
  --ink-4:       #B6B6BC;
  --bg:          #FAFAFA;
  --surface:     #F2F2F2;
  --surface-2:   #E9E9EC;

  /* Neutrals — dark */
  --dark-bg:        #06070A;
  --dark-surface:   #0E1014;
  --dark-surface-2: #161A20;
  --dark-text:      #ECEEF2;
  --dark-text-2:    #A8AEB8;
  --dark-text-3:    #6B7280;
  --dark-text-4:    #3D434B;

  /* Signal — the brand color */
  --signal:      #5EFC8D;
  --signal-ink:  #0B6B2E;
  --signal-glow: rgba(94,252,141,.45);
  --signal-soft: rgba(94,252,141,.12);

  /* Warning — data only */
  --warn:        #D43A2F;
  --warn-light:  #FF8678;

  /* Rules */
  --rule:        rgba(8,8,10,.06);
  --rule-2:      rgba(8,8,10,.12);
  --rule-strong: rgba(8,8,10,.20);
  --rule-dark:   rgba(236,238,242,.06);
  --rule-dark-2: rgba(236,238,242,.12);
  --rule-dark-3: rgba(236,238,242,.20);

  /* Type families */
  --sans:        "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --jp:          "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono:        "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, monospace;
}

/* ----- BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- LAYOUT ----- */
.k-container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .k-container { padding: 0 20px; } }
.k-container--narrow { max-width: 1080px; }
.k-container--wide   { max-width: 1440px; }

/* ----- TYPOGRAPHY ----- */
.k-h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -.035em;
}
.k-h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.k-h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.k-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.k-body-lg { font-size: 18px; line-height: 1.55; }
.k-body    { font-size: 15px; line-height: 1.55; }
.k-body-sm { font-size: 14px; line-height: 1.55; }
.k-mono    { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }

.k-ghost { color: var(--ink-4); }
.k-muted { color: var(--ink-3); }
.k-signal { color: var(--signal-ink); }
.k-strong { font-weight: 600; color: var(--ink); }

/* ----- NAV ----- */
.k-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.k-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.k-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.k-logo-mark {
  width: 16px; height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.k-nav-links { display: flex; gap: 4px; align-items: center; }
.k-nav-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
  border-radius: 6px;
}
.k-nav-link:hover { color: var(--ink); background: var(--surface); }
.k-nav-link--active { color: var(--ink); }

/* ----- HAMBURGER + MOBILE MENU (opt-in per-page via markup) ----- */
/* Pages adopt the hamburger by including:
     <button class="k-hamburger" ...>...</button>  inside .k-nav-links
     <div id="k-mobile-menu" class="k-mobile-menu">...links...</div>  inside <nav>
   Pages without a hamburger keep their existing mobile behavior. */
.k-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center; flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.k-hamburger:hover { border-color: var(--ink); }
.k-hamburger-bar {
  display: block;
  width: 18px; height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.k-hamburger[aria-expanded="true"] .k-hamburger-bar:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.k-hamburger[aria-expanded="true"] .k-hamburger-bar:nth-child(2) { opacity: 0; }
.k-hamburger[aria-expanded="true"] .k-hamburger-bar:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

.k-mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 8px 18px 16px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  z-index: 90;
}
.k-mobile-menu.is-open { display: flex; }
.k-mobile-link {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 6px;
  border-bottom: 1px solid var(--rule);
}
.k-mobile-link:last-child { border-bottom: none; }
.k-mobile-link:active { background: var(--surface); }
.k-mobile-link--cta {
  margin-top: 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  border-bottom: none;
}

/* ----- BUTTONS ----- */
.k-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--ink);
  transition: all .2s ease;
  cursor: pointer;
}
.k-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  box-shadow: 0 8px 24px var(--signal-glow);
}
.k-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.k-btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}
.k-btn--signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}
.k-btn--signal:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 30px var(--signal-glow);
}
.k-btn .k-arrow { font-family: var(--mono); font-weight: 600; transform: translateY(-1px); }

/* ----- BADGES ----- */
.k-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.k-badge--live {
  background: var(--signal-soft);
  color: var(--signal-ink);
}
.k-badge--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: k-pulse 2s ease-in-out infinite;
}
.k-badge--outline {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--ink);
}
@keyframes k-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--signal-glow); }
  50%      { opacity: .6; box-shadow: 0 0 0 6px rgba(94,252,141,0); }
}

/* ----- SYSTEM BAR (top of page status) ----- */
.k-system-bar {
  background: var(--ink);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 8px 0;
}
.k-system-bar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.k-system-bar .k-grp { display: flex; gap: 18px; align-items: center; }
.k-system-bar b { color: #fff; font-weight: 500; }
.k-system-bar .k-sep { width: 1px; height: 11px; background: rgba(255,255,255,.18); }
.k-system-bar .k-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal-glow);
}

/* ----- CARDS ----- */
.k-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 32px 28px;
  transition: all .25s ease;
  display: flex; flex-direction: column;
}
.k-card:hover { border-color: var(--ink-4); transform: translateY(-2px); }
.k-card--dark {
  background: var(--ink);
  color: var(--bg);
}
.k-card--signal-frame {
  border-color: rgba(94,252,141,.3);
  background: linear-gradient(180deg, var(--signal-soft), transparent 50%), var(--surface);
}

/* ----- DATA CARD (dark inset on light) ----- */
.k-data-card {
  background: var(--ink);
  color: var(--bg);
  padding: 28px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.k-data-card .k-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
.k-data-card .k-head b { color: #fff; font-weight: 500; }
.k-data-row {
  display: grid;
  grid-template-columns: 24px 130px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.k-data-row:last-child { border-bottom: none; }
.k-data-row .k-icon {
  font-size: 15px; line-height: 1.4;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.k-data-row .k-k { color: rgba(255,255,255,.55); line-height: 1.4; }
.k-data-row .k-v { color: #fff; font-weight: 500; line-height: 1.4; }
.k-data-row .k-v--green { color: var(--signal); }
.k-data-row .k-v--warn  { color: var(--warn-light); }

/* ----- TERMINAL CARD (live log) ----- */
.k-term-card {
  background: var(--dark-bg);
  color: var(--dark-text);
  border: 1px solid var(--rule-dark-2);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.k-term-card .k-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-dark);
  background: var(--dark-surface);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
.k-term-card .k-traffic { display: flex; gap: 6px; }
.k-term-card .k-traffic span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dark-text-4);
}
.k-term-card .k-traffic span.live { background: var(--signal); box-shadow: 0 0 6px var(--signal-glow); }
.k-term-card .k-body { padding: 18px 20px; }
.k-term-line {
  padding: 5px 0;
  display: flex; gap: 14px;
  border-bottom: 1px dashed rgba(236,238,242,.04);
}
.k-term-line:last-child { border-bottom: none; }
.k-term-line .k-ts  { color: var(--dark-text-4); width: 60px; flex-shrink: 0; }
.k-term-line .k-lvl { width: 48px; flex-shrink: 0; font-weight: 600; }
.k-term-line .k-lvl--ok   { color: var(--signal); }
.k-term-line .k-lvl--warn { color: var(--warn-light); }
.k-term-line .k-lvl--info { color: var(--dark-text-2); }
.k-term-line .k-msg { color: var(--dark-text); flex-grow: 1; }
.k-term-line .k-msg b { color: var(--signal); font-weight: 500; }

/* ----- SECTION LABEL (mono + JP sublabel) ----- */
.k-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.k-label .k-num { color: var(--signal-ink); margin-right: 8px; font-weight: 600; }
.k-label .k-jp {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--jp);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .1em;
}

/* ----- HERO SHELL ----- */
.k-hero {
  padding: 100px 0 110px;
  border-bottom: 1px solid var(--rule);
}
.k-hero-eyebrow-row {
  display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap;
}

/* ----- FOOTER ----- */
.k-footer {
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  letter-spacing: .04em;
  border-top: 1px solid var(--rule);
}
.k-footer b { color: var(--ink); font-weight: 500; }
.k-footer .k-jp { font-family: var(--jp); color: var(--signal-ink); font-weight: 500; letter-spacing: .1em; }

/* ----- DARK SURFACE SUPPORT ----- */
.k-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.k-dark::selection,
.k-dark *::selection { background: var(--signal); color: var(--dark-bg); }
.k-dark .k-nav {
  background: rgba(6,7,10,.78);
  border-bottom-color: var(--rule-dark);
}
.k-dark .k-logo { color: var(--dark-text); }
.k-dark .k-nav-link { color: var(--dark-text-2); }
.k-dark .k-nav-link:hover { color: var(--dark-text); background: var(--dark-surface-2); }
.k-dark .k-btn {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.k-dark .k-btn:hover {
  background: #fff; border-color: #fff;
  box-shadow: 0 0 30px var(--signal-glow);
}
.k-dark .k-btn--ghost {
  background: transparent;
  color: var(--dark-text);
  border-color: var(--rule-dark-3);
}
.k-dark .k-btn--ghost:hover {
  background: var(--dark-surface-2);
  border-color: var(--dark-text);
  color: var(--dark-text);
}
.k-dark .k-badge { background: var(--dark-surface-2); color: var(--dark-text-2); border: 1px solid var(--rule-dark-2); }
.k-dark .k-badge--outline { background: transparent; border-color: var(--rule-dark-2); color: var(--dark-text); }
.k-dark .k-label { color: var(--dark-text-3); }
.k-dark .k-label .k-num { color: var(--signal); }
.k-dark .k-label .k-jp { color: var(--dark-text-3); }
.k-dark .k-card {
  background: var(--dark-surface);
  border-color: var(--rule-dark-2);
}
.k-dark .k-card:hover { border-color: var(--signal); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.k-dark .k-lead { color: var(--dark-text-2); }
.k-dark .k-footer {
  color: var(--dark-text-3);
  border-top-color: var(--rule-dark);
}
.k-dark .k-footer b { color: var(--dark-text); }
.k-dark .k-footer .k-jp { color: var(--signal); }

/* ----- LOGO MARK (inline SVG container) ----- */
.k-logo-mark svg { width: 100%; height: 100%; display: block; }

/* ----- HOVER STATE EFFECTS ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ----- PRINT ----- */
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .k-nav, .k-system-bar { position: static; }
}

/* ----- MOBILE GLOBAL OVERRIDES ----- */
/* Cascade-wide tightening for ≤720px (single-column phones). Page-specific styles
   can still override. The intent: shrink type, padding, and gap so every brand-kit
   page feels usable on a 375px viewport without the design feeling like it was
   built only for desktop. */
@media (max-width: 720px) {
  /* Tighter section padding so the page doesn't feel like an empty void on mobile */
  section { padding: 56px 0; }
  .k-hero { padding: 56px 0 64px; }

  /* Type system shrinks slightly on small screens */
  .k-h1 { font-size: clamp(34px, 7.5vw, 56px); }
  .k-h2 { font-size: clamp(26px, 5.5vw, 38px); }
  .k-h3 { font-size: clamp(18px, 4vw, 22px); }
  .k-lead, .k-body-lg { font-size: 16px; }

  /* Buttons reach a usable touch-target size */
  .k-btn { padding: 14px 18px; min-height: 44px; }

  /* Nav links get more vertical space (touch targets) */
  .k-nav-link { padding: 10px 12px; }

  /* Hamburger pattern — only fires on pages that opted in by including
     a .k-hamburger inside .k-nav-links. Pages without it keep inline nav. */
  .k-nav-inner { position: relative; }
  .k-nav-links:has(.k-hamburger) .k-nav-link { display: none; }
  .k-nav-links .k-hamburger { display: inline-flex; }

  /* Container padding tightens further on very small viewports */
  .k-container { padding: 0 16px; }
}

/* Very small viewports — collapse the nav CTA so the hamburger has breathing room */
@media (max-width: 380px) {
  .k-nav-links:has(.k-hamburger) > .k-btn { display: none; }
}

/* Very small viewports — extra polish under 400px (iPhone SE / Android small) */
@media (max-width: 400px) {
  .k-system-bar-inner { font-size: 10px; }
  .k-h1 { font-size: 30px; line-height: 1.08; }
  .k-h2 { font-size: 24px; }
}

/* Prevent horizontal overflow from absolute/fixed decorative elements anywhere */
html, body { overflow-x: hidden; }
