/* ============================================================
   Platform sub-pages (Pulse / ONA) — dark theme components.
   home.css のトークン & コンポーネント（.container/.btn/.eyebrow/
   .sec-head/.sec-title/.grad-text/.mock/.svc-card/.cta-box/.rsrch-card/
   .reveal）を土台に、サブページ固有のパーツを足す。
   ※ home.css を先に読み込むこと。
============================================================ */

/* 旧クラス/旧変数の互換エイリアス
   （i18n の EN 辞書に inline style で var(--color-*) が残っているため、
     ダーク文脈でも破綻しない色へ寄せておく） */
body {
  --color-teal:        #4F8CFF;
  --color-teal-dark:   #2f6ae0;
  --color-teal-light:  rgba(79,140,255,.16);
  --color-orange:      #FF9A6B;
  --color-orange-light: rgba(255,154,107,.16);
  --color-pink:        #9B8CFF;
  --color-pink-light:  rgba(155,140,255,.16);
  --color-green:       #00D1B2;
  --color-green-light: rgba(0,209,178,.16);
  --color-yellow:      #FFC772;
  --color-text:        #E8EDFF;
  --color-text-sub:    #8A97BC;
  --color-white:       #ffffff;
  --color-border:      rgba(255,255,255,.09);
}

/* ============================================================
   Sub-page header
============================================================ */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.app-header.scrolled { background: rgba(9, 13, 27, .92); }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-logo { height: 36px; width: auto; border-radius: 8px; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--grad-blue); border-radius: 9px;
  display: grid; place-items: center; color: #06122b; font-weight: 900; font-family: var(--mono);
}
.brand-name { color: var(--text); font-size: 1rem; letter-spacing: .01em; }
.brand-tag {
  margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--blue-soft); font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em;
}
.app-nav { display: flex; gap: 4px; align-items: center; font-size: .9rem; }
.app-nav a { padding: 9px 14px; border-radius: 10px; color: var(--text-mid); white-space: nowrap; transition: var(--t); }
.app-nav a:hover { color: var(--text); background: var(--surface); }
.app-nav a.cta { background: var(--grad-blue); color: #06122b; font-weight: 700; padding: 9px 18px; border-radius: 999px; }
.app-nav a.cta:hover { transform: translateY(-2px); color: #06122b; }
.app-nav .nav-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.app-nav .nav-lang .lang-btn { padding: 5px 10px; font-size: .7rem; font-weight: 700; border-radius: 999px; color: var(--text-sub); transition: var(--t); }
.app-nav .nav-lang .lang-btn:hover { color: var(--text); }
.app-nav .nav-lang .lang-btn.is-active { background: var(--blue); color: #06122b; }

.app-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.app-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); }
.app-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.app-hamburger.open span:nth-child(2) { opacity: 0; }
.app-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .app-hamburger { display: flex; }
  .app-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 14, 28, .98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 10px 18px 22px;
    transform: translateY(-115%); opacity: 0; pointer-events: none;
    transition: var(--t); z-index: 99; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .app-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .app-nav a { padding: 15px 16px; font-size: 1rem; border-radius: 12px; }
  .app-nav a.cta { text-align: center; margin-top: 8px; }
  .app-nav .nav-lang { align-self: center; margin-top: 10px; }
}

/* ============================================================
   Sub-page hero (dark + canvas)
============================================================ */
.p-hero {
  position: relative; overflow: hidden;
  padding: 130px 0 90px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(60% 60% at 50% 0%, #0a1430 0%, var(--bg) 60%);
}
.p-hero.center { text-align: center; }
.p-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.p-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 35%, transparent 100%);
}
.p-hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 45% at 80% 10%, rgba(79,140,255,.20), transparent 60%),
    radial-gradient(45% 45% at 15% 95%, rgba(0,209,178,.16), transparent 60%);
}
.p-hero-inner { position: relative; z-index: 2; }
.p-hero.center .p-hero-inner { max-width: 880px; margin: 0 auto; }
.p-hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--text-mid);
  margin-bottom: 26px; backdrop-filter: blur(8px);
}
.p-hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: ping 2.4s infinite; }
.p-hero-pill .pen { font-family: var(--mono); letter-spacing: .14em; color: var(--blue-soft); text-transform: uppercase; }
.p-hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 900; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 26px;
}
.p-hero h1 .accent, .p-hero h1 span:not(.plain) { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text-mid); line-height: 1.95;
  max-width: 640px; margin-bottom: 38px;
}
.p-hero.center .p-hero-lead { margin-left: auto; margin-right: auto; }
.p-hero-lead strong { color: var(--emerald); font-weight: 700; }
.p-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.p-hero.center .p-hero-actions { justify-content: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.p-hero.center .badge-row { justify-content: center; }
.badge-row span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--text-mid);
}

/* ============================================================
   Stat band — 巨大な数字
============================================================ */
.statband { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.statband-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.statband .stat { padding: 40px 26px; border-left: 1px solid var(--line-soft); text-align: center; }
.statband .stat:first-child { border-left: none; }
.statband .stat .num {
  font-family: var(--mono); font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statband .stat .lab { margin-top: 12px; font-size: .85rem; color: var(--text-sub); }

/* ============================================================
   Product feature cards (reuse .svc-card from home.css for layout,
   add an accent header bar here)
============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat-card {
  position: relative; overflow: hidden; display: block; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; transition: var(--t);
}
.feat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: var(--t);
  background: radial-gradient(120% 80% at 0% 0%, rgba(0,209,178,.10), transparent 55%);
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(0,209,178,.4); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.feat-card:hover::after { opacity: 1; }
.feat-ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--emerald); font-size: 1.4rem; margin-bottom: 18px;
}
.feat-en { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--blue-soft); letter-spacing: .1em; display: block; margin-bottom: 5px; }
.feat-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 9px; }
.feat-card p { font-size: .9rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 14px; }
.feat-more { font-size: .82rem; font-weight: 700; color: var(--blue-soft); display: inline-flex; align-items: center; gap: 6px; }
.feat-card:hover .feat-more svg { transform: translateX(4px); }
.feat-more svg { transition: var(--t); }

/* ============================================================
   KPI mock (dashboard preview, lighter than home .mock body)
============================================================ */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.kpi-tile { background: var(--panel-2); padding: 18px 18px 20px; }
.kpi-tile .kt-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-sub); }
.kpi-tile .kt-val { font-family: var(--mono); font-weight: 800; font-size: 2.1rem; line-height: 1.1; margin-top: 8px; color: var(--text); }
.kpi-tile .kt-val small { font-size: .9rem; color: var(--text-sub); }
.kpi-tile .kt-delta { font-family: var(--mono); font-size: .68rem; margin-top: 4px; }
.kpi-tile .kt-delta.up { color: var(--emerald); }
.kpi-tile .kt-delta.down { color: #ff7a8a; }

/* ============================================================
   Philosophy — dark override (pulse)
============================================================ */
.philosophy {
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 24px;
  background: radial-gradient(60% 70% at 50% 0%, #0a1430 0%, var(--bg) 60%);
  color: var(--text);
}
.philosophy-bg { position: absolute; inset: 0; pointer-events: none; }
.philosophy-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; }
.philosophy-orb.o1 { width: 480px; height: 480px; background: radial-gradient(circle, var(--blue), transparent 70%); top: -140px; right: -120px; }
.philosophy-orb.o2 { width: 520px; height: 520px; background: radial-gradient(circle, var(--emerald), transparent 70%); bottom: -180px; left: -140px; }
.philosophy-orb.o3 { display: none; }
.philosophy-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.philosophy-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .24em; color: var(--blue-soft); padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px;
}
.philosophy-title { font-size: clamp(1.7rem, 4.4vw, 2.8rem); font-weight: 900; line-height: 1.5; margin-bottom: 26px; color: var(--text); }
.philosophy-title .ph-accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.philosophy-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.95; color: var(--text-mid); max-width: 640px; margin: 0 auto; }
.philosophy-note {
  margin: 56px auto 0; max-width: 720px; padding: 24px 28px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--emerald); border-radius: 12px;
}
.philosophy-note p { font-size: .95rem; line-height: 1.9; color: var(--text-mid); }
.philosophy-note strong { color: var(--emerald); font-weight: 700; }
.philosophy-triplet {
  margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
  text-align: left; border-top: 1px solid var(--line); padding-top: 48px;
}
.philosophy-triplet .ph-num { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--blue-soft); letter-spacing: .14em; margin-bottom: 12px; }
.philosophy-triplet h4 { font-size: 1.12rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.philosophy-triplet p { font-size: .9rem; line-height: 1.8; color: var(--text-sub); }

/* ============================================================
   Detail cards (pulse 機能の詳細)
============================================================ */
.detail-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; margin-bottom: 22px; scroll-margin-top: 110px;
}
.detail-card h3 { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.detail-card h4 { font-size: .95rem; font-weight: 800; margin: 22px 0 10px; color: var(--blue-soft); }
.detail-card p { color: var(--text-sub); line-height: 1.85; }
.detail-card p strong, .detail-card li strong { color: var(--text); font-weight: 700; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-head .d-emoji { font-size: 1.7rem; }
.pill-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--mono);
  font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--blue-soft);
}
.pill-badge.amber { color: var(--color-yellow); }
.qlist, .olist { list-style: none; padding-left: 0; }
.qlist li { padding: 8px 0 8px 30px; position: relative; font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.qlist li .qn { position: absolute; left: 0; color: var(--emerald); font-weight: 800; font-family: var(--mono); font-size: .8rem; }
.olist li { padding: 6px 0 6px 26px; position: relative; font-size: .9rem; color: var(--text-mid); }
.olist li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

/* ============================================================
   Action / improvement cases (pulse) — dark override
============================================================ */
.action-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; max-width: 780px; margin: 0 auto 24px; }
.action-flow-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.action-flow-step-strong { border-color: rgba(0,209,178,.45); background: linear-gradient(135deg, var(--panel), rgba(0,209,178,.06)); }
.action-flow-icon { width: 54px; height: 54px; border-radius: 14px; display: inline-grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; background: var(--surface-2) !important; border: 1px solid var(--line); }
.action-flow-step h4 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.action-flow-step p { font-size: .82rem; color: var(--text-sub); line-height: 1.5; }
.action-flow-step-strong p strong { color: var(--emerald); }
.action-flow-arrow { color: var(--text-dim); font-size: 1.4rem; font-weight: 900; }
@media (max-width: 720px) { .action-flow { grid-template-columns: 1fr; } .action-flow-arrow { transform: rotate(90deg); margin: 0 auto; } }

.action-case { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; }
.action-case-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.action-case-tag { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; background: var(--surface-2) !important; border: 1px solid var(--line); color: var(--blue-soft) !important; }
.action-case-head h4 { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.action-case-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 20px; }
.action-case-block { font-size: .9rem; line-height: 1.75; }
.action-case-label { font-size: .76rem; font-weight: 800; color: var(--text-sub); margin-bottom: 8px; }
.action-case-text { color: var(--text-mid); }
.action-case-text strong { color: var(--emerald); font-weight: 700; }
.action-case-block-action { background: rgba(0,209,178,.06); padding: 16px; border-radius: 12px; border-left: 3px solid var(--emerald); }
.action-case-block-action .action-case-label { color: var(--emerald); }
.action-case-list { list-style: none; padding-left: 0; }
.action-case-list li { padding: 6px 0 6px 22px; position: relative; font-size: .87rem; line-height: 1.7; color: var(--text-mid); }
.action-case-list li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }
.action-case-list strong { color: var(--text); font-weight: 700; }
@media (max-width: 900px) { .action-case-grid { grid-template-columns: 1fr; } }

.action-support {
  margin-top: 44px; border-radius: var(--radius-lg); padding: 36px;
  display: flex; align-items: flex-start; gap: 24px;
  background: linear-gradient(135deg, rgba(79,140,255,.14), rgba(0,209,178,.08));
  border: 1px solid rgba(79,140,255,.3);
}
.action-support-icon { font-size: 2.3rem; flex-shrink: 0; }
.action-support h4 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.action-support p { font-size: .95rem; line-height: 1.85; color: var(--text-mid); }
.action-support p strong { color: var(--emerald); }
@media (max-width: 600px) { .action-support { flex-direction: column; padding: 28px; } }

/* ============================================================
   Flow steps (generic)
============================================================ */
.pstep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pstep { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: var(--t); }
.pstep:hover { border-color: rgba(79,140,255,.35); transform: translateY(-4px); }
.pstep.strong { border-color: rgba(0,209,178,.4); background: linear-gradient(135deg, var(--panel), rgba(0,209,178,.05)); }
.pstep-num { font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--blue-soft); letter-spacing: .08em; margin-bottom: 10px; }
.pstep.strong .pstep-num { color: var(--emerald); }
.pstep h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.pstep p { font-size: .88rem; color: var(--text-sub); line-height: 1.7; }
.pstep p strong { color: var(--text); }
.pstep a { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 700; color: var(--emerald); }

/* ============================================================
   Problem cards / why cards (ona)
============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: var(--t); }
.why-card:hover { transform: translateY(-5px); border-color: rgba(79,140,255,.35); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.why-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.why-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 11px; color: var(--text); }
.why-card p { color: var(--text-sub); font-size: .92rem; line-height: 1.8; }
.why-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ============================================================
   Evidence / Research-based (ona)
============================================================ */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ev-card { text-align: center; padding: 24px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--t); }
.ev-card:hover { border-color: rgba(79,140,255,.35); transform: translateY(-4px); }
.ev-card .ev-emoji { font-size: 1.6rem; margin-bottom: 8px; }
.ev-card .ev-org { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--blue-soft); }
.ev-card .ev-main { font-size: .9rem; font-weight: 700; margin-top: 6px; color: var(--text); line-height: 1.5; }
.ev-card .ev-sub { font-size: .7rem; color: var(--text-sub); margin-top: 6px; }

/* ============================================================
   Before / After (ona)
============================================================ */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 24px; }
.ba-col { border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--line); }
.ba-col.before { background: var(--panel-2); }
.ba-col.after { background: linear-gradient(135deg, rgba(79,140,255,.12), rgba(0,209,178,.07)); border-color: rgba(0,209,178,.3); }
.ba-tag { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .16em; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; }
.ba-col.before .ba-tag { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-sub); }
.ba-col.after .ba-tag { background: var(--emerald); color: #06122b; }
.ba-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ba-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.6; }
.ba-col.before .ba-list li { color: var(--text-sub); }
.ba-col.after .ba-list li { color: var(--text); font-weight: 600; }
.ba-list li .bi { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .8rem; }
.ba-col.before .bi { background: rgba(255,122,89,.14); color: #ff8e72; }
.ba-col.after .bi { background: rgba(0,209,178,.16); color: var(--emerald); }
.ba-arrow { display: grid; place-items: center; color: var(--blue-soft); font-size: 1.8rem; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); } }

/* ============================================================
   Big network visual (ona)
============================================================ */
.netviz {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, #0e1631, #0a1124);
  min-height: 420px;
}
.netviz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.netviz .nv-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--blue-soft);
  background: rgba(10,16,32,.7); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.netviz .nv-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: ping 2s infinite; }
.netviz .nv-legend { position: absolute; bottom: 16px; left: 18px; z-index: 2; display: flex; gap: 16px; font-size: .72rem; color: var(--text-sub); }
.netviz .nv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.netviz .nv-legend .hub { background: var(--emerald); }
.netviz .nv-legend .mem { background: var(--blue); }

/* ============================================================
   AI Insight card (ona)
============================================================ */
.ai-insight {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: linear-gradient(135deg, rgba(79,140,255,.12), rgba(0,209,178,.06));
  border: 1px solid rgba(79,140,255,.3); border-radius: var(--radius-lg); padding: 30px 32px;
}
.ai-insight .ai-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-blue); display: grid; place-items: center; color: #06122b; font-size: 1.3rem; }
.ai-insight .ai-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 8px; }
.ai-insight .ai-find { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.ai-insight .ai-find b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-insight .ai-rec { font-size: .9rem; color: var(--text-mid); line-height: 1.75; }
.ai-insight .ai-rec strong { color: var(--emerald); }
.ai-insight .ai-typed::after { content: "▍"; color: var(--emerald); animation: caret 1s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 540px) { .ai-insight { grid-template-columns: 1fr; } }

/* ============================================================
   Metric cards (ona small numbers)
============================================================ */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 44px; }
.metric-card { text-align: center; padding: 28px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--blue); }
.metric-card.orange { border-top-color: var(--color-orange); }
.metric-card.pink { border-top-color: var(--violet); }
.metric-card.green { border-top-color: var(--emerald); }
.metric-num { font-family: var(--mono); font-size: 2.3rem; font-weight: 800; line-height: 1; margin-bottom: 8px; color: var(--blue-soft); }
.metric-card.orange .metric-num { color: var(--color-orange); }
.metric-card.pink .metric-num { color: var(--violet); }
.metric-card.green .metric-num { color: var(--emerald); }
.metric-label { font-size: .88rem; color: var(--text-sub); }

/* ============================================================
   Plans (ona)
============================================================ */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; transition: var(--t); }
.plan-card:hover { transform: translateY(-5px); border-color: rgba(79,140,255,.35); }
.plan-card.featured { border-color: rgba(0,209,178,.45); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.plan-badge { position: absolute; top: -12px; right: 24px; background: var(--emerald); color: #06122b; padding: 4px 14px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.plan-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.plan-target { font-size: .84rem; color: var(--text-sub); margin-bottom: 18px; }
.plan-amount { font-size: 1.15rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.plan-unit { font-size: .82rem; color: var(--text-sub); margin-bottom: 22px; }
.plan-features { list-style: none; padding: 0; }
.plan-features li { padding: 8px 0 8px 24px; position: relative; font-size: .9rem; color: var(--text-mid); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

/* ============================================================
   Big emphasis banner (teal→blue)
============================================================ */
.emph-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(79,140,255,.14), rgba(0,209,178,.08));
  border: 1px solid rgba(79,140,255,.3); border-radius: var(--radius-lg); padding: 30px 34px;
}
.emph-banner .eb-ic { font-size: 2.2rem; flex-shrink: 0; }
.emph-banner .eb-body { flex: 1; min-width: 240px; }
.emph-banner h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 6px; color: var(--text); }
.emph-banner p { font-size: .92rem; color: var(--text-mid); line-height: 1.8; }
.emph-banner p strong { color: var(--emerald); }

/* ============================================================
   Footer (sub-pages)
============================================================ */
.app-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0; margin-top: 0; }
.app-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: .85rem; color: var(--text-sub); }
.app-footer a { color: var(--text-mid); margin-left: 16px; transition: var(--t); }
.app-footer a:hover { color: var(--text); }

/* small utils used by markup */
.text-sub { color: var(--text-sub); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.section-alt { background: var(--bg-2); }
