:root {
  --bg: #050608;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.08);
  --text: #f3f2ee;
  --muted: #9ca6b7;
  --blue: #6e90b7;
  --blue-light: #8bbcff;
  --blue-soft: rgba(110, 144, 183, 0.20);
  --white-soft: rgba(255,255,255,0.18);
  --shadow: 0 10px 40px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, rgba(110,144,183,0.10), transparent 32%), var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.site-shell {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 30px rgba(139, 188, 255, 0.08);
  overflow: hidden;
}

.brand-logo-svg {
  width: 92%;
  height: 92%;
  display: block;
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.brand-sub {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: "Manrope", sans-serif;
}

.nav-button:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}

.nav-button.active {
  color: #eef6ff;
  border-color: rgba(139,188,255,0.42);
  background: rgba(139,188,255,0.10);
  box-shadow: 0 0 22px rgba(139,188,255,0.10);
}

.auth-nav-button {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.025);
}

.auth-nav-button:hover {
  border-color: rgba(139,188,255,0.28);
  background: rgba(139,188,255,0.08);
}

.auth-nav-button-primary {
  border-color: rgba(139,188,255,0.35);
  background: rgba(139,188,255,0.11);
  color: #eef6ff;
}

.view {
  display: none;
  padding-top: 42px;
}

.view.active {
  display: block;
}

.hero-block {
  max-width: 1040px;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hero-block h1 {
  margin: 0;
  font-weight: 600;
  max-width: 1120px;
}

.identity-hero-title,
.section-hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.identity-hero-title .line-main,
.section-hero-title .line-main {
  display: block;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  word-spacing: 0.02em;
}

.identity-hero-title .line-sub {
  display: block;
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-spacing: 0.08em;
  color: #dbe5f3;
}

.accent-word {
  color: var(--blue-light);
}

.identity-layout,
.network-layout,
.flowboard-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.identity-cards-grid {
  display: grid;
  gap: 22px;
}

.identity-card,
.side-note,
.network-stage-card,
.network-detail-card,
.flow-column,
.flow-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.identity-card,
.network-stage-card,
.flow-column {
  padding: 28px;
}

.side-note,
.network-detail-card,
.flow-side {
  padding: 26px;
}

.identity-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.identity-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, var(--blue));
  color: #050608;
  font-weight: 800;
  font-size: 1.15rem;
}

.alt-avatar {
  background: linear-gradient(135deg, #eef6ff, #8bbcff);
}

.identity-head h2,
.network-topbar h2,
.flow-column-head h2,
.side-note h3,
.network-detail-card h3,
.flow-side h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.identity-panel {
  padding: 20px;
  border-radius: 22px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.identity-panel-building {
  box-shadow: inset 0 0 0 1px rgba(139,188,255,0.14);
}

.identity-panel-culture {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.identity-panel-nonnegotiables {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-light);
}

.identity-panel h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.identity-panel p {
  margin: 0;
  line-height: 1.8;
  color: #d8dbe2;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 999px;
  color: #eef1f7;
  font-size: 0.88rem;
}

.nonnegotiables-list {
  padding-left: 18px;
  margin: 0;
  color: #eef1f7;
  line-height: 2;
}

.mini-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-light), transparent);
  margin: 22px 0;
}

.network-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 680px;
  margin: 24px auto 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(139,188,255,0.08), transparent 38%),
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 68%);
  transition: transform 160ms ease;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines line {
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1.2;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
  opacity: 0.85;
}

.orbital-grid {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.orbital-grid-1 {
  width: 420px;
  height: 420px;
}

.orbital-grid-2 {
  width: 560px;
  height: 560px;
}

.orbital-grid-3 {
  width: 660px;
  height: 660px;
  border-color: rgba(139,188,255,0.06);
}

.second-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 18px rgba(255,255,255,0.03);
}

.second-ring-1 { top: 32px; left: 329px; }
.second-ring-2 { top: 140px; right: 18px; }
.second-ring-3 { bottom: 140px; right: 18px; }
.second-ring-4 { bottom: 32px; left: 329px; }
.second-ring-5 { bottom: 140px; left: 18px; }
.second-ring-6 { top: 140px; left: 18px; }

.center-orb {
  position: absolute;
  width: 112px;
  height: 112px;
  left: 50%;
  top: 50%;
  margin-left: -56px;
  margin-top: -56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--blue-light));
  color: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow:
    0 0 30px rgba(139,188,255,0.25),
    0 0 80px rgba(139,188,255,0.14);
}

.map-node {
  position: absolute;
  width: 74px;
  height: 92px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.map-node:hover,
.map-node.active {
  transform: scale(1.06);
}

.node-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 28px rgba(110,144,183,0.08);
  font-size: 1.05rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.map-node:hover .node-icon,
.map-node.active .node-icon {
  border-color: rgba(139,188,255,0.48);
  background: rgba(139,188,255,0.12);
  box-shadow: 0 0 28px rgba(139,188,255,0.22);
}

.node-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.node-1 { top: 52px; left: 301px; }
.node-2 { top: 182px; right: 85px; }
.node-3 { bottom: 182px; right: 85px; }
.node-4 { bottom: 52px; left: 301px; }
.node-5 { bottom: 182px; left: 85px; }
.node-6 { top: 182px; left: 85px; }

.network-detail-card h4 {
  margin: 10px 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #eef6ff;
}

.detail-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.detail-block p {
  margin: 0;
  line-height: 1.8;
}

.detail-summary {
  margin-bottom: 10px !important;
}

.detail-pipeline-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #dbe5f3;
  line-height: 1.9;
}

.flow-column-head {
  margin-bottom: 18px;
}

.search-shell {
  margin-bottom: 16px;
}

.search-shell input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 0.98rem;
  outline: none;
}

.search-shell input:focus {
  border-color: rgba(139,188,255,0.35);
  background: rgba(139,188,255,0.05);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-tag {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 180ms ease;
}

.quick-tag:hover,
.quick-tag.active {
  color: var(--text);
  border-color: rgba(139,188,255,0.35);
  background: rgba(139,188,255,0.08);
}

.signal-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 14px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.signal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,188,255,0.22);
}

.signal-card.hidden {
  display: none;
}

.signal-type,
.pipeline-type {
  margin: 0 0 10px;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.signal-card h3,
.pipeline-card h4 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.signal-card p,
.pipeline-card p,
.flow-side p {
  color: #d8dbe2;
  line-height: 1.8;
}

.ghost-action {
  margin-top: 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(139,188,255,0.25);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 180ms ease;
}

.ghost-action:hover {
  background: rgba(139,188,255,0.10);
  border-color: rgba(139,188,255,0.40);
}

.pipeline-block {
  margin-bottom: 20px;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipeline-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}

.feedback-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  border: 1px solid rgba(139,188,255,0.35);
  background: rgba(255,255,255,0.94);
  color: #0b1220;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
  opacity: 0;
  pointer-events: none;
}

.feedback-fab.visible {
  opacity: 1;
  pointer-events: auto;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

@media (max-width: 1100px) {
  .identity-layout,
  .network-layout,
  .flowboard-layout {
    grid-template-columns: 1fr;
  }

  .network-stage {
    max-width: 560px;
    height: 560px;
  }

  .node-1 { top: 34px; left: 245px; }
  .node-2 { top: 140px; right: 58px; }
  .node-3 { bottom: 140px; right: 58px; }
  .node-4 { bottom: 34px; left: 245px; }
  .node-5 { bottom: 140px; left: 58px; }
  .node-6 { top: 140px; left: 58px; }

  .second-ring-1 { top: 12px; left: 269px; }
  .second-ring-2 { top: 115px; right: 8px; }
  .second-ring-3 { bottom: 115px; right: 8px; }
  .second-ring-4 { bottom: 12px; left: 269px; }
  .second-ring-5 { bottom: 115px; left: 8px; }
  .second-ring-6 { top: 115px; left: 8px; }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 20px 16px 50px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .brand-mark {
    font-size: 2.4rem;
  }

  .identity-hero-title .line-main,
  .section-hero-title .line-main {
    font-size: 2.15rem;
    line-height: 1.04;
  }

  .identity-hero-title .line-sub {
    font-size: 1.14rem;
    line-height: 1.24;
    word-spacing: 0.06em;
  }

  .network-stage {
    max-width: 360px;
    height: 360px;
  }

  .center-orb {
    width: 84px;
    height: 84px;
    margin-left: -42px;
    margin-top: -42px;
  }

  .map-node {
    width: 58px;
    height: 78px;
    gap: 6px;
  }

  .node-icon {
    width: 46px;
    height: 46px;
    font-size: 0.9rem;
  }

  .node-label {
    font-size: 0.68rem;
  }

  .node-1 { top: 18px; left: 151px; }
  .node-2 { top: 88px; right: 24px; }
  .node-3 { bottom: 88px; right: 24px; }
  .node-4 { bottom: 18px; left: 151px; }
  .node-5 { bottom: 88px; left: 24px; }
  .node-6 { top: 88px; left: 24px; }

  .second-ring {
    width: 14px;
    height: 14px;
  }

  .second-ring-1 { top: 4px; left: 173px; }
  .second-ring-2 { top: 63px; right: 6px; }
  .second-ring-3 { bottom: 63px; right: 6px; }
  .second-ring-4 { bottom: 4px; left: 173px; }
  .second-ring-5 { bottom: 63px; left: 6px; }
  .second-ring-6 { top: 63px; left: 6px; }

  .feedback-fab {
    right: 16px;
    bottom: 16px;
  }
}
