:root {
  --ink: #061f4a;
  --ink-2: #183c72;
  --muted: #64748b;
  --muted-2: #7b8797;
  --sand: #f6f2e8;
  --cream: #fffaf0;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(6, 31, 74, 0.12);
  --gold: #ff7a00;
  --gold-2: #ffb15f;
  --green: #0b64d8;
  --green-2: #06499f;
  --red: #c24135;
  --blue: #0b64d8;
  --coral: #ff6a00;
  --violet: #315f96;
  --shadow: 0 24px 80px rgba(6, 31, 74, 0.14);
  --shadow-soft: 0 16px 38px rgba(6, 31, 74, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 48%, #eef4fb 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(6,31,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,31,74,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 72%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.ambient { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: calc(var(--max) + 40px); margin: 16px auto 0; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 16px; box-shadow: 0 14px 30px rgba(6,31,74,.16); }
.brand-mark { display: none; }
.brand strong { display: inline; font-size: 18px; line-height: 1; color: var(--ink); letter-spacing: 0; }
.brand em { display: inline; font-style: normal; color: var(--coral); font-weight: 900; font-size: 18px; margin-left: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav button, .ghost, .primary, .danger, .soft { border: 0; border-radius: 999px; padding: 12px 16px; font-weight: 850; transition: .2s ease; }
.nav button { background: transparent; color: var(--muted); }
.nav button:hover, .nav button.active { background: rgba(16,32,51,.06); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.ghost { background: rgba(16,32,51,.06); color: var(--ink); }
.ghost:hover { transform: translateY(-1px); background: rgba(16,32,51,.1); }
.primary { color: white; background: linear-gradient(135deg, #ff7a00, #e95400); box-shadow: 0 14px 28px rgba(233,84,0,.24); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 20px 38px rgba(233,84,0,.32); }
.soft { color: var(--green-2); background: rgba(21,149,109,.10); }
.soft.active { color: white; background: var(--ink); }
.danger { color: white; background: var(--red); }
.small { padding: 10px 14px; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: var(--ink); color: white; width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
.app-shell { max-width: var(--max); margin: 0 auto; padding: 28px 18px 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 28px; align-items: center; padding: 42px 0 24px; min-height: calc(100vh - 132px); }
.hero-wordmark { width: min(420px, 100%); height: auto; display: block; margin: 0 0 18px; mix-blend-mode: multiply; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--green-2); font-weight: 900; font-size: 13px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 6px rgba(214,168,79,.16); }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6.8vw, 78px); line-height: .94; margin: 18px 0; font-weight: 900; max-width: 900px; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.02; }
h3 { font-size: 20px; }
p { line-height: 1.68; }
.lead { color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); max-width: 760px; }
.hero-actions, .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span, .tag, .status-pill { border: 1px solid var(--line); background: rgba(255,255,255,.75); padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 750; font-size: 13px; }
.hero-card, .card, .panel, .metric, .journey-card, .list-card, .glass, .intelligence-card, .command-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.hero-card { padding: 24px; position: relative; overflow: hidden; }
.hero-card::after { display: none; }
.brand-showcase { display: grid; gap: 18px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,246,255,.88)); }
.showcase-mark { width: min(280px, 80%); justify-self: center; object-fit: contain; filter: drop-shadow(0 24px 44px rgba(6,31,74,.18)); }
.showcase-copy { border-top: 1px solid var(--line); padding-top: 18px; }
.showcase-copy h2 { font-size: clamp(28px, 4vw, 44px); }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.showcase-grid div { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: white; min-height: 92px; }
.showcase-grid strong { display: block; color: var(--coral); font-size: 22px; margin-bottom: 10px; }
.showcase-grid span { color: var(--ink-2); font-weight: 850; line-height: 1.35; }
.ecosystem-orbit { min-height: 380px; display: grid; place-items: center; position: relative; }
.orbit-center { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--ink), var(--green)); color: white; font-weight: 950; box-shadow: var(--shadow); padding: 18px; }
.orbit-node { position: absolute; width: 128px; min-height: 68px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.88); font-size: 13px; font-weight: 850; padding: 10px; box-shadow: var(--shadow-soft); }
.n1{top:8px;left:50%;transform:translateX(-50%)}.n2{top:70px;right:18px}.n3{right:8px;bottom:86px}.n4{bottom:16px;left:50%;transform:translateX(-50%)}.n5{left:6px;bottom:86px}.n6{top:70px;left:18px}
.section { padding: 48px 0 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 10px 0 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-card { padding: 20px; position: relative; overflow: hidden; min-height: 220px; }
.journey-card .icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,122,0,.10); color: var(--coral); font-weight: 950; margin-bottom: 16px; }
.journey-card p, .list-card p, .metric p, .muted { color: var(--muted); }
.journey-card ul { padding-left: 18px; color: var(--muted); line-height: 1.7; }
.intelligence-card { padding: 22px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.intelligence-card span { color: var(--violet); font-weight: 950; font-size: 14px; text-transform: uppercase; letter-spacing: 0; }
.intelligence-card p { color: var(--ink-2); margin: 20px 0 0; }
.metric { padding: 18px; }
.metric strong { display: block; font-size: 32px; letter-spacing: 0; margin-bottom: 2px; }
.panel { padding: 24px; }
.dashboard-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.sidebar { position: sticky; top: 96px; padding: 14px; }
.side-user { padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(16,32,51,.95), rgba(15,118,110,.88)); color: white; margin-bottom: 12px; }
.side-user span { display: block; opacity: .8; font-size: 13px; margin-top: 4px; }
.side-btn { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 16px; padding: 13px 14px; background: transparent; color: var(--muted); font-weight: 850; }
.side-btn:hover, .side-btn.active { background: rgba(21,149,109,.1); color: var(--green-2); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.insight-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.insight-strip div { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); padding: 16px; min-height: 96px; }
.insight-strip strong { display: block; font-size: 28px; letter-spacing: 0; }
.insight-strip span { display: block; color: var(--muted); font-weight: 760; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.searchbar, .input, textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.86); border-radius: 16px; padding: 14px 15px; color: var(--ink); outline: none; }
.searchbar:focus, .input:focus, textarea:focus, select:focus { border-color: rgba(21,149,109,.4); box-shadow: 0 0 0 5px rgba(21,149,109,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 850; font-size: 13px; margin: 0 0 7px; color: var(--ink-2); }
textarea { min-height: 130px; resize: vertical; }
.list-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.list-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.list-card h3 { line-height: 1.2; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pill { font-size: 12px; padding: 6px 10px; }
.status-published, .status-active, .status-verified, .status-approved { color: #066044; background: #edfff7; border-color: #b9f3d9; }
.status-pending, .status-requested, .status-reviewing { color: #925a00; background: #fff7dc; border-color: #f1d795; }
.status-rejected, .status-suspended { color: #a12a21; background: #fff1f0; border-color: #ffc9c2; }
.progress { height: 10px; background: rgba(16,32,51,.08); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--value, 30%); background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: inherit; }
.command-panel { padding: 22px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.command-panel p { color: var(--muted); margin-bottom: 0; }
.action-list { display: grid; gap: 10px; }
.action-tile { width: 100%; min-height: 74px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); padding: 14px 16px; display: grid; gap: 4px; color: var(--ink); }
.action-tile:hover { border-color: rgba(21,149,109,.35); transform: translateY(-1px); }
.action-tile strong { font-size: 15px; }
.action-tile span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.action-tile.done { border-color: #b9f3d9; background: #edfff7; }
.action-tile.todo { border-color: rgba(214,168,79,.45); }
.ai-box { background: linear-gradient(135deg, rgba(6,31,74,.98), rgba(11,100,216,.9)); color: white; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ai-box p { color: rgba(255,255,255,.78); }
.ai-box::after { display: none; }
.aura-form { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 18px 0 12px; }
.aura-form .input { background: rgba(255,255,255,.96); }
.pathway-result, .install-banner { position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; background: rgba(255,255,255,.10); color: rgba(255,255,255,.88); line-height: 1.6; }
.install-banner { color: var(--ink); background: #fff7dc; border-color: #f1d795; margin-bottom: 16px; }
.install-banner a { color: var(--green-2); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,32,51,.48); backdrop-filter: blur(9px); z-index: 80; }
.modal { position: fixed; z-index: 90; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 40px 120px rgba(0,0,0,.25); padding: 24px; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.x { border: 0; background: rgba(16,32,51,.06); border-radius: 999px; width: 42px; height: 42px; font-weight: 950; }
.toast-zone { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; }
.toast { width: min(420px, calc(100vw - 36px)); background: var(--ink); color: white; padding: 14px 16px; border-radius: 18px; box-shadow: var(--shadow); animation: slideIn .22s ease both; }
.toast.ok { background: #0f766e; }.toast.err { background: #b42318; }
@keyframes slideIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.footer { margin-top: 54px; padding: 26px; border-radius: 22px; background: rgba(6,31,74,.96); color: white; display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.footer-logo { width: min(260px, 100%); height: auto; display: block; background: white; border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
.footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; }
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.legal-links a { color: rgba(255,255,255,.78); font-weight: 750; }
.empty { text-align: center; padding: 34px; border: 1px dashed var(--line); border-radius: 24px; color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 980px) {
  .hero, .dashboard-layout { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-strip, .command-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: relative; top: auto; }
  .nav { display: none; position: absolute; left: 14px; right: 14px; top: 76px; padding: 12px; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav button { width: 100%; text-align: left; }
  .menu-toggle { display: block; }
  .brand { min-width: auto; }
}
@media (max-width: 680px) {
  .topbar { margin: 10px 10px 0; border-radius: 22px; }
  .top-actions .ghost[data-route="explore"] { display: none; }
  .app-shell { padding: 18px 12px 54px; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .insight-strip, .command-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 18px; }
  h1 { font-size: 46px; }
  .ecosystem-orbit { min-height: auto; display: grid; gap: 10px; }
  .orbit-center, .orbit-node { position: relative; inset: auto; transform: none; width: 100%; height: auto; min-height: 60px; border-radius: 20px; }
  .footer { grid-template-columns: 1fr; }
  .aura-form { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
}
