/* ============================================================
   DIVA — component styles
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.on {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 26px; height: 26px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; position: relative; }
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.brand-logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.96; transition: filter 0.3s; }
.brand:hover .brand-logo { filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--accent-glow)); }
.brand-sub { font-size: 11px; color: var(--faint); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 30px; font-size: 13px; letter-spacing: 0.04em; }
.nav-links a { color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--accent); transition: width 0.25s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta .btn { padding: 10px 18px; font-size: 12px; }

/* ---- mobile nav: burger + slide-down menu ---- */
.nav-burger {
  display: none;
  width: 42px; height: 42px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 4px;
  cursor: pointer; padding: 0; position: relative;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color 0.25s;
}
.nav-burger span {
  display: block; width: 19px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
}
.nav-burger.x span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.x span:nth-child(2) { opacity: 0; }
.nav-burger.x span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 84px 22px 26px;
  flex-direction: column; gap: 2px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), opacity 0.28s;
  z-index: 1;
}
.nav-mobile.show { transform: none; opacity: 1; pointer-events: auto; }
.nav-mobile a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 16px; letter-spacing: 0.02em; color: var(--text);
  border-bottom: 1px solid var(--line-soft); transition: color 0.2s;
}
.nav-mobile a:active { color: var(--accent); }
.nav-mobile-cta {
  justify-content: center; margin-top: 18px; min-height: 50px;
  font-size: 13px; border-bottom: none;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .nav-cta { display: none; }
  .nav.menu-open { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .nav-inner { height: 64px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 96px; overflow: hidden; }
.particle-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; width: 100%; }
.hero-copy { max-width: 600px; }
.hero-title { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 26px 0 0; font-weight: 600; }
.hero-title .grad { font-style: italic; font-weight: 500; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; margin: 26px 0 0; max-width: 540px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-legend { display: flex; gap: 22px; margin-top: 40px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.hero-legend-item { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em; }
.hero-legend-item i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.hero-globe { position: relative; height: 560px; }
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-stage .ws { transform: perspective(1800px) rotateY(-3deg) rotateX(1.5deg); transform-origin: center; transition: transform 0.5s ease; }
.hero-stage:hover .ws { transform: perspective(1800px) rotateY(0deg) rotateX(0deg); }
.hero-stage .hero-globe-hint { position: static; transform: none; }
.hero-globe-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-scroll-line { width: 1px; height: 42px; animation: scrolld 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrolld { 0%,100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* centered hero variant */
.hero-centered .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-centered .hero-copy { max-width: 720px; order: 2; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions, .hero-centered .hero-legend { justify-content: center; }
.hero-centered .hero-globe { order: 1; height: 440px; width: 100%; max-width: 520px; }
.hero-centered .hero-stage { order: 1; width: 100%; max-width: 620px; }
.hero-centered .hero-title { font-size: clamp(40px, 6vw, 82px); }

/* ---------- HERO WORKSPACE (VRE mock) ---------- */
.ws { position: relative; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  background: #070b14; box-shadow: 0 50px 110px -45px rgba(0,0,0,0.95), 0 0 0 1px rgba(126,156,198,0.04);
  width: 100%; }
.ws-chrome { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #0a0f1b; border-bottom: 1px solid var(--line); }
.ws-lights { display: flex; gap: 7px; flex-shrink: 0; }
.ws-lights i { width: 11px; height: 11px; border-radius: 50%; background: #283448; }
.ws-url { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  background: #060a12; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; }
.ws-lock { font-size: 10px; }
.ws-url-path { color: var(--faint); }
.ws-chrome-right { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.04em; flex-shrink: 0; transition: color 0.4s; }
.ws-kernel-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; transition: background 0.4s; }

.ws-body { display: grid; grid-template-columns: 215px 1fr; min-height: 350px; }
.ws-rail { border-right: 1px solid var(--line); padding: 16px 14px; background: #080c16; }
.ws-rail-grp { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.ws-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 4px; opacity: 0.4; transition: opacity 0.45s, background 0.3s; position: relative; }
.ws-item.on { opacity: 1; }
.ws-item.on:hover { background: rgba(126,156,198,0.05); }
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background 0.4s, box-shadow 0.4s; }
.ws-item-name { font-size: 12.5px; color: var(--text); font-weight: 500; }
.ws-item-note { grid-column: 2; grid-row: 2; font-size: 9.5px; color: var(--faint); letter-spacing: 0.02em; margin-top: -2px; }
.ws-item { grid-template-rows: auto auto; }
.ws-item-status { grid-row: 1; font-size: 10px; color: var(--faint); letter-spacing: 0.08em; transition: color 0.4s; }

.ws-main { padding: 14px 18px 0; display: flex; flex-direction: column; background: #070b14; }
.ws-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.ws-tab { font-size: 11px; color: var(--faint); padding: 6px 12px; border: 1px solid transparent; border-bottom: none;
  border-radius: 4px 4px 0 0; background: #0a0f1b; }
.ws-tab.on { background: #0d1424; }
.ws-cell { display: flex; gap: 12px; background: #0a1020; border: 1px solid var(--line); border-radius: 5px; padding: 14px 14px; }
.ws-prompt { font-size: 12px; flex-shrink: 0; padding-top: 1px; }
.ws-code { margin: 0; font-size: 12.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; flex: 1; }
.ws-run { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted);
  margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: 4px; background: rgba(52,214,238,0.04); opacity: 0; transform: translateY(6px); transition: opacity 0.6s, transform 0.6s; }
.ws-run.show { opacity: 1; transform: none; }
.ws-run-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.ws-run-sep { color: var(--faint); }
.ws-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; padding: 12px 0 13px; border-top: 1px solid var(--line); margin-top: 14px; }
.ws-foot-r { color: var(--accent); opacity: 0.85; }
@media (max-width: 540px) { .ws-body { grid-template-columns: 1fr; } .ws-rail { display: none; } }

/* ---------- SETUP CONTRAST ---------- */
.setup { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: start; }
.setup-col-h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-step { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: 4px; margin-bottom: 8px; position: relative; background: var(--bg); overflow: hidden;
  opacity: 1; transition: border-color 0.4s, background 0.4s; }
.setup-n { font-size: 12px; color: var(--faint); letter-spacing: 0.1em; flex-shrink: 0; width: 22px; }
.setup-t { font-size: 16px; font-weight: 500; color: var(--text); flex: 1; transition: color 0.4s, opacity 0.4s; }
.setup-tag { margin-left: auto; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; flex-shrink: 0; }
/* steps DIVA handles: dimmed + struck through once revealed */
.setup-step.skip.rv .setup-t { color: var(--faint); }
.setup-strike { position: absolute; left: 56px; right: 18px; top: 50%; height: 1px; transform: scaleX(0); transform-origin: left;
  opacity: 0.7; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1) 0.25s; }
.setup-step.skip.rv .setup-strike { transform: scaleX(1); }
.setup-step.keep { border-color: var(--line-strong); background: linear-gradient(90deg, rgba(52,214,238,0.06), transparent 60%); }
.setup-step.keep.rv { box-shadow: inset 2px 0 0 var(--accent); }
.setup-brace { margin-top: 4px; border-top: 1px dashed; padding-top: 10px; opacity: 0.9; }
.setup-brace-label { font-size: 11.5px; letter-spacing: 0.06em; }

.setup-aside { border: 1px solid var(--line); background: var(--bg-1); border-radius: 6px; padding: 30px 28px; position: sticky; top: 100px; }
.setup-stat-big { font-size: 72px; font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; }
.setup-stat-row { display: flex; align-items: center; gap: 18px; }
.setup-stat-ic { width: 52px; height: 52px; flex-shrink: 0; display: block; }
.setup-stat-ic svg { width: 100%; height: 100%; display: block; }
.setup-stat-cap { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; max-width: 220px; }
.setup-divider { height: 1px; background: var(--line); margin: 26px 0; }
.setup-perks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.setup-cta { width: 100%; justify-content: center; }
@media (max-width: 860px) { .setup { grid-template-columns: 1fr; } .setup-aside { position: static; } .setup-strike { left: 52px; } }

/* ---------- APPLICATIONS ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card { position: relative; border: 1px solid var(--line); background: var(--bg); border-radius: 5px;
  padding: 30px 30px 32px; overflow: hidden; transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.app-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-1); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.app-tag { font-size: 11px; letter-spacing: 0.08em; border: 1px solid; padding: 5px 11px; border-radius: 3px; }
.app-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.app-live i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 7px currentColor; animation: pulse 1.6s ease-in-out infinite; }
.app-title { font-size: 23px; line-height: 1.12; margin: 0 0 14px; }
.app-body { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.app-meta span { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; letter-spacing: 0.03em; }
.app-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.app-card:hover .app-line { width: 100%; }
@media (max-width: 760px) { .apps-grid { grid-template-columns: 1fr; } }

/* ---------- GLOBE TOOLTIP ---------- */
.globe-tip { position: absolute; transform: translate(14px, -50%); z-index: 5; pointer-events: none;
  background: rgba(8, 13, 24, 0.92); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  padding: 11px 14px; min-width: 180px; border-radius: 3px; box-shadow: 0 16px 50px -16px rgba(0,0,0,0.8); }
.globe-tip-net { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.globe-tip-net .dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.globe-tip-name { font-size: 15px; font-weight: 600; margin-top: 5px; }
.globe-tip-inst { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.globe-tip-inst span { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 2px; }

/* ---------- SECTION HEADS ---------- */
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-1) 12%, var(--bg-1) 88%, transparent); }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.04; margin: 20px 0 0; letter-spacing: -0.025em; }
.sec-lead { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 22px 0 0; max-width: 620px; }

/* ---------- VISION ---------- */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vision-card { background: var(--bg); padding: 40px 34px 46px; position: relative; transition: background 0.3s; overflow: hidden; }
.vision-card:hover { background: var(--bg-1); }
.vision-k { font-size: 13px; letter-spacing: 0.2em; }
.vision-t { font-size: 26px; margin: 18px 0 0; }
.vision-d { color: var(--muted); margin: 14px 0 0; font-size: 15.5px; line-height: 1.62; }
.vision-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.vision-card:hover .vision-line { width: 100%; }

/* ---------- DEMO / PIPELINE ---------- */
.demo-grid, .nb-grid { display: grid; gap: 48px; }
.nb-grid { grid-template-columns: 0.82fr 1.18fr; align-items: center; }
.pipe { margin-top: 44px; }
.pipe-flow { display: flex; align-items: stretch; gap: 0; }
.pipe-stage { flex: 1; text-align: left; background: var(--bg-2); border: 1px solid var(--line); padding: 20px 18px; cursor: pointer; position: relative; transition: all 0.3s; color: var(--text); border-radius: 3px; min-width: 0; }
.pipe-stage:hover { background: var(--bg-3); }
.pipe-stage.done { opacity: 0.92; }
.pipe-stage-head { display: flex; justify-content: space-between; align-items: center; }
.pipe-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.pipe-idx { font-size: 11px; color: var(--faint); }
.pipe-stage-title { font-size: 18px; font-weight: 600; margin: 12px 0 14px; }
.pipe-nodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pipe-nodes li { font-size: 11px; color: var(--muted); padding-left: 13px; position: relative; line-height: 1.4; }
.pipe-nodes li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border: 1px solid var(--faint); }
.pipe-stage[data-kind="engine"] .pipe-nodes li::before { border-radius: 50%; }
.pipe-pulse { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.pipe-link { width: 44px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.pipe-link-line { height: 1px; width: 100%; background: var(--line-strong); }
.pipe-packet { position: absolute; width: 7px; height: 7px; border-radius: 50%; left: 0; opacity: 0; box-shadow: 0 0 10px currentColor; }
.pipe-packet.run { animation: packet 2.4s linear infinite; opacity: 1; }
@keyframes packet { 0% { left: 2px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
.pipe-detail { margin-top: 22px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; }
.pipe-detail-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.pipe-detail-state { margin-left: auto; color: var(--faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.pipe-detail-note { padding: 16px; margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.pipe-progress { display: flex; gap: 6px; padding: 0 16px 16px; }
.pipe-progress span { height: 3px; flex: 1; background: var(--line); cursor: pointer; transition: background 0.4s; border-radius: 2px; }
@media (max-width: 860px) { .pipe-flow { flex-direction: column; } .pipe-link { width: 100%; height: 30px; transform: rotate(90deg); } }

/* ---------- NOTEBOOK ---------- */
.nb-intro { max-width: 440px; }
.nb-feats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--muted); }
.nb { border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #070b14; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); }
.nb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0a0f1b; border-bottom: 1px solid var(--line); }
.nb-dots { display: flex; gap: 7px; }
.nb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #283448; }
.nb-title { font-size: 12px; color: var(--muted); }
.nb-kernel { margin-left: auto; font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.nb-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.nb-cell { display: flex; gap: 14px; padding: 18px 18px 18px 14px; }
.nb-gutter { font-size: 12px; color: var(--faint); flex-shrink: 0; padding-top: 1px; user-select: none; }
.nb-code { margin: 0; font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 168px; }
.nb-line { min-height: 1.75em; }
.nb-caret { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tk-k { color: #c792ea; } .tk-n { color: #82c4ff; } .tk-f { color: #5ad6c4; } .tk-str { color: #b9d77f; } .tk-c { color: #5a6b82; font-style: italic; } .tk-o { color: #8aa0bd; } .tk-v { color: #e9eef7; } .tk-num { color: #f7a86b; }
.nb-out { display: flex; gap: 14px; padding: 0 18px 18px 14px; border-top: 1px solid var(--line); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s ease, opacity 0.5s ease, padding 0.4s; }
.nb-out.show { max-height: 320px; opacity: 1; padding-top: 18px; }
.nb-gutter.out { color: #c0788a; }
.nb-out-body { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nb-plot { width: 150px; height: 150px; transition: opacity 0.5s; }
.nb-axis { fill: var(--faint); font-family: var(--mono); font-size: 7px; }
.nb-out-meta { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--muted); }
.nb-out-meta b { font-weight: 600; margin-right: 6px; }
.nb-legend { display: flex; align-items: center; gap: 8px; }
.nb-legend i { width: 14px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.nb-ok { color: var(--emerald); }

/* ---------- NETWORKS ---------- */
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.net-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .net-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.net-card { border: 1px solid var(--line); background: var(--bg); padding: 30px 28px 28px; border-radius: 4px; transition: transform 0.3s, border-color 0.3s; }
.net-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.net-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.1em; border: 1px solid; padding: 4px 10px; border-radius: 999px; }
.net-chip i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.net-title { font-size: 22px; margin: 20px 0 0; }
.net-body { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 12px 0 22px; }
.net-metric { font-size: 11.5px; color: var(--muted); padding: 9px 12px; border: 1px solid; border-radius: 3px; letter-spacing: 0.04em; }
.net-foot { text-align: center; margin-top: 40px; font-size: 13px; color: var(--faint); letter-spacing: 0.03em; }
@media (max-width: 860px) { .net-grid, .vision-grid { grid-template-columns: 1fr; } }

/* ---------- REGISTER ---------- */
.register { padding: 120px 0; }
.register-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1);
  border-radius: 10px; padding: 70px 40px 64px; text-align: center; }
.register-glow { position: absolute; inset: 0; pointer-events: none; }
.register-card > * { position: relative; z-index: 1; }
.register-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; margin: 20px 0 0; }
.register-lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 560px; margin: 22px auto 0; }
.register-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.register-contact { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 30px; font-size: 12.5px; color: var(--faint); letter-spacing: 0.02em; }
.register-dot { opacity: 0.5; }
@media (max-width: 600px) { .register-card { padding: 48px 24px; } }

/* ---------- PARTNERS ---------- */
.partners { padding: 96px 0; }
.partners-funder { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.partners-divider { height: 1px; max-width: 520px; margin: 44px auto; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.partners-head { text-align: center; margin-bottom: 30px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 18px; }
.partner-tile { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px;
  padding: 20px 30px; min-width: 180px; height: 92px; box-shadow: 0 16px 40px -24px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.partner-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -22px rgba(0,0,0,0.9); }
.partner-tile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; display: block; }
.partner-word { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; color: #1b2a4a; }
.partner-tile-lg { padding: 24px 40px; height: 108px; min-width: 260px; }
.partner-tile-lg img { max-height: 64px; }
.partner-tile--fmi img { max-height: 80px; }
@media (max-width: 620px) { .partner-tile { min-width: 140px; height: 78px; padding: 16px 22px; } .partner-tile img { max-height: 40px; } .partner-tile--fmi img { max-height: 58px; } }

/* ---------- STATUS DASHBOARD ---------- */
.status { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-radius: 6px; overflow: hidden; margin-bottom: 70px; }
.status-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.18em; }
.status-live { display: flex; align-items: center; gap: 9px; color: var(--text); }
.status-pulse { width: 8px; height: 8px; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); opacity: 1; } 50% { box-shadow: 0 0 0 5px transparent; opacity: 0.6; } }
.status-time { color: var(--faint); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-cell { padding: 22px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.status-cell:last-child { border-right: none; }
.status-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.status-bars span { flex: 1; border-radius: 1px; transition: height 0.4s ease; }
.status-meta { display: flex; flex-direction: column; gap: 3px; }
.status-src { font-size: 15px; font-weight: 600; }
.status-label { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.status-val { font-size: 12px; display: flex; align-items: center; gap: 7px; }
.status-val i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
@media (max-width: 860px) { .status-grid { grid-template-columns: repeat(2, 1fr); } .status-cell:nth-child(2) { border-right: none; } }

/* ---------- FOOTER ---------- */
.footer { padding: 100px 0 50px; border-top: 1px solid var(--line); background: var(--bg-1); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding-bottom: 56px; }
.footer-brand { max-width: 280px; }
.footer-tag { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 18px 0 0; }
.footer-col-h { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.footer-maintainer a { transition: opacity 0.2s; }
.footer-maintainer a:hover { opacity: 0.75; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .nb-grid, .demo-grid { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } .hero-globe { height: 420px; order: -1; } .hero-stage { order: -1; } }

/* ============================================================
   MOBILE REFINEMENTS — phones & small tablets
   ============================================================ */
@media (max-width: 860px) {
  /* hero: let it size to content instead of forcing a tall 100vh column,
     and drop the 3-D tilt that can nudge the mock off-canvas */
  .hero { min-height: auto; padding-top: 116px; padding-bottom: 56px; }
  .hero-grid { gap: 30px; }
  .hero-copy { max-width: 100%; }
  .hero-stage .ws { transform: none; }
  .hero-stage:hover .ws { transform: none; }
  .hero-scroll { display: none; }
  .hero-centered .hero-globe, .hero-centered .hero-stage { max-width: 100%; }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-legend { gap: 14px 18px; margin-top: 30px; }

  /* section heads + cards breathe a little less */
  .sec-head { margin-bottom: 44px; }
  .vision-card { padding: 32px 26px 36px; }
  .net-card { padding: 26px 22px 24px; }
  .app-card { padding: 26px 24px 28px; }

  /* notebook + workspace mocks: smaller type so code lines don't overflow */
  .nb-code { font-size: 12px; }
  .ws-code { font-size: 11.5px; }

  /* register card */
  .register { padding: 90px 0; }

  /* status: single column reads better than 2 cramped columns */
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-cell { padding: 18px 16px; }

  /* footer link columns tap-friendly */
  .footer { padding: 80px 0 40px; }
  .footer-col a { padding: 8px 0; }
  .footer-base { gap: 8px 16px; }
}

@media (max-width: 400px) {
  .apps-grid, .net-grid, .net-grid-4 { gap: 14px; }
  .hero-legend { font-size: 11px; }
}
