:root {
  color-scheme: dark;
  --bg: #020612;
  --bg-2: #071220;
  --panel: rgba(8, 20, 36, 0.72);
  --panel-strong: rgba(7, 17, 31, 0.94);
  --text: #f7fbff;
  --muted: #a9bed2;
  --line: rgba(95, 209, 255, 0.22);
  --cyan: #00d9ff;
  --blue: #006dff;
  --navy: #071a2f;
  --green: #63ffc7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body.light-theme {
  color-scheme: light;
  --bg: #f7fbff;
  --bg-2: #eef7ff;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #071a2f;
  --muted: #496174;
  --line: rgba(0, 109, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 94, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 217, 255, 0.18), transparent 36rem),
    radial-gradient(circle at 10% 30%, rgba(0, 109, 255, 0.16), transparent 30rem),
    linear-gradient(145deg, #020612 0%, #071220 48%, #020612 100%);
}

body.light-theme {
  background:
    radial-gradient(circle at 50% -12%, rgba(0, 217, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 8% 36%, rgba(0, 109, 255, 0.12), transparent 30rem),
    linear-gradient(145deg, #ffffff 0%, #f4fbff 52%, #eaf6ff 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sav-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 217, 255, 0.24), transparent 18rem),
    #020612;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.sav-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.loader-mark img {
  position: relative;
  z-index: 2;
  width: 142px;
  filter: drop-shadow(0 0 34px rgba(0, 217, 255, 0.72));
  animation: logoIgnite 1.6s cubic-bezier(.2,.8,.2,1) both;
}

.sav-loader strong {
  position: absolute;
  top: calc(50% + 112px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.28em;
  white-space: nowrap;
  color: #dff8ff;
  animation: fadeUp 1s ease 0.35s both;
}

.loader-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

.loader-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}

.loader-orbit span:nth-child(1) { top: -4px; left: 50%; }
.loader-orbit span:nth-child(2) { right: 18px; bottom: 44px; background: var(--blue); }
.loader-orbit span:nth-child(3) { left: 18px; bottom: 44px; background: var(--green); }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  width: min(1180px, calc(100% - 28px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(124, 222, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 9, 19, 0.66);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(0, 109, 255, 0.16);
  box-shadow: 0 18px 55px rgba(0, 94, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a,
.command-actions a {
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.command-actions a:hover {
  color: var(--text);
  background: rgba(0, 217, 255, 0.12);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link,
.account-link,
.primary-btn,
.secondary-btn,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(0, 217, 255, 0.26);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle {
  position: relative;
  width: 58px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.theme-toggle span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.55);
  transform: translateX(-10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

body.light-theme .theme-toggle span {
  background: linear-gradient(135deg, #ffb24a, #ffffff);
  box-shadow: 0 0 20px rgba(255, 178, 74, 0.55);
  transform: translateX(10px);
}

.icon-link {
  width: 42px;
  color: var(--cyan);
  background: rgba(0, 217, 255, 0.08);
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.account-link,
.primary-btn {
  padding: 0 18px;
  color: #00131d;
  background: linear-gradient(135deg, var(--cyan), #72f1ff 44%, var(--blue));
  box-shadow: 0 10px 34px rgba(0, 157, 255, 0.22);
}

.secondary-btn {
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.icon-link:hover,
.account-link:hover,
.primary-btn:hover,
.secondary-btn:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
}

.account-pop {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(310px, calc(100vw - 30px));
  padding: 16px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  background: var(--panel-strong);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.account-pop strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.account-link:hover .account-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 40px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 44vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.72), transparent);
  filter: blur(0.2px);
  animation: beamDrift 7s ease-in-out infinite;
}

body.light-theme .beam {
  background: linear-gradient(90deg, transparent, rgba(0, 109, 255, 0.46), transparent);
}

.beam-a { top: 28%; left: -8%; transform: rotate(-18deg); }
.beam-b { right: -8%; bottom: 24%; transform: rotate(20deg); animation-delay: -2s; }

.grid {
  position: absolute;
  inset: 12% 0 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 64% 46%, black, transparent 68%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.auth-visual h1,
.feed-composer h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead,
.auth-visual p,
.feed-composer p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ecosystem-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.connector {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 318px;
  height: 5px;
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(0, 217, 255, 0), rgba(0, 217, 255, 0.68), rgba(99, 255, 199, 0)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.48));
  overflow: hidden;
}

.connector::before {
  content: "";
  position: absolute;
  inset: -12px 12%;
  background: radial-gradient(ellipse, rgba(0, 217, 255, 0.22), transparent 68%);
}

.connector span {
  position: absolute;
  top: -3px;
  left: -18px;
  width: 34px;
  height: 11px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.9), 0 0 42px rgba(99, 255, 199, 0.65);
  animation: energyRun 2.2s linear infinite;
}

.connector-ia {
  transform: rotate(270deg);
}

.connector-university {
  transform: rotate(212deg);
}

.connector-cloud {
  transform: rotate(328deg);
}

.connector-flow {
  transform: rotate(148deg);
}

.connector-erp {
  transform: rotate(32deg);
}

.connector-cloud span,
.connector-flow span,
.connector-university span {
  animation-delay: -0.75s;
}

.connector-erp span {
  animation-delay: -1.25s;
}

.stage-rings,
.stage-rings span,
.core-pulse {
  position: absolute;
  border-radius: 50%;
}

.stage-rings {
  width: min(620px, 88vw);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 217, 255, 0.18);
  animation: spin 30s linear infinite;
}

.stage-rings span {
  inset: 10%;
  border: 1px dashed rgba(114, 241, 255, 0.2);
}

.stage-rings span:nth-child(2) { inset: 25%; animation: spin 20s linear reverse infinite; }
.stage-rings span:nth-child(3) { inset: 40%; border-style: solid; }

.core-system {
  position: relative;
  z-index: 4;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 217, 255, 0.2), transparent 56%),
    rgba(6, 17, 31, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 0 90px rgba(0, 217, 255, 0.3),
    0 0 160px rgba(0, 109, 255, 0.16),
    inset 0 0 44px rgba(0, 217, 255, 0.14);
  animation: floatCore 5.8s ease-in-out infinite;
}

body.light-theme .core-system {
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 217, 255, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.74);
}

.core-system img {
  width: 138px;
  filter: drop-shadow(0 0 28px rgba(0, 217, 255, 0.55));
}

.core-pulse {
  inset: -84px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.18), transparent 66%);
  animation: pulse 2.4s ease-in-out infinite;
}

.system-node {
  position: absolute;
  z-index: 6;
  width: 176px;
  min-height: 168px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid rgba(141, 226, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(5, 15, 29, 0.48);
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.light-theme .system-node {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(0, 109, 255, 0.16);
}

.system-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.56), transparent 40%, rgba(99, 255, 199, 0.38));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.system-node img,
.node-icon {
  width: 92px;
  height: 62px;
}

.system-node img {
  object-fit: contain;
}

.node-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 217, 255, 0.24), transparent 60%),
    rgba(255, 255, 255, 0.06);
}

.node-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.5));
}

.system-node strong {
  font-size: 22px;
  line-height: 1;
}

.system-node > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.system-node:hover {
  transform: translateY(-12px) scale(1.04);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 28px 90px rgba(0, 157, 255, 0.24);
}

.system-node:hover::before {
  opacity: 1;
}

.node-hover {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 292px;
  padding: 18px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  background: var(--panel-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  transition: 0.22s ease;
}

.node-hover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(0, 217, 255, 0.2);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  background: var(--panel-strong);
  transform: translateX(-50%) rotate(45deg);
}

.node-hover b {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
}

.system-node:hover .node-hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.node-university .node-hover,
.node-flow .node-hover {
  left: 0;
  transform: translateY(10px) scale(0.96);
}

.node-university:hover .node-hover,
.node-flow:hover .node-hover {
  transform: translateY(0) scale(1);
}

.node-cloud .node-hover,
.node-erp .node-hover {
  left: auto;
  right: 0;
  transform: translateY(10px) scale(0.96);
}

.node-cloud:hover .node-hover,
.node-erp:hover .node-hover {
  transform: translateY(0) scale(1);
}

.node-ia { top: 18px; left: calc(50% - 88px); }
.node-university { top: 164px; left: 0; }
.node-cloud { top: 164px; right: 0; }
.node-flow { bottom: 42px; left: 10%; }
.node-erp { bottom: 42px; right: 10%; }

.command-band,
.solutions,
.status-strip,
.auth-shell,
.feed-shell,
.portal-feed-preview {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.portal-feed-preview {
  padding: 18px 0 52px;
}

.feed-preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.feed-preview-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.feed-preview-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.feature-post {
  min-height: 190px;
}

.post-actions,
.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.insight-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.insight-actions button:hover,
.insight-actions button.is-active {
  color: var(--text);
  border-color: rgba(0, 217, 255, 0.5);
  background: rgba(0, 217, 255, 0.14);
  transform: translateY(-1px);
}

.comment-box {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.comment-box.is-open {
  display: grid;
}

.comment-box input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  padding: 0 12px;
}

.comment-box button {
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: #00131d;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #72f1ff 44%, var(--blue));
  padding: 0 14px;
}

.comment-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.insights-shell {
  width: min(1280px, calc(100% - 40px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  margin: 0 auto;
  padding: 130px 0 70px;
}

.insights-sidebar,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow);
}

.insights-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 28px;
}

.insights-sidebar h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.insights-sidebar p {
  color: var(--muted);
  line-height: 1.7;
}

.source-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.source-stack a,
.source-stack div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.source-stack a:hover,
.source-stack div:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.48);
}

.source-stack span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.insights-center {
  display: grid;
  gap: 16px;
}

.insights-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 4px;
}

.insights-toolbar h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.insight-filters button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.insight-filters button.is-active,
.insight-filters button:hover {
  color: #00131d;
  border-color: rgba(0, 217, 255, 0.55);
  background: linear-gradient(135deg, var(--cyan), #72f1ff 44%, var(--blue));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 0;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-insight {
  min-height: 300px;
  grid-template-columns: 1fr;
  align-items: end;
}

.social-card,
.insight-post {
  overflow: hidden;
}

.social-card > :not(.insight-media),
.insight-post > :not(.insight-media) {
  margin-left: 24px;
  margin-right: 24px;
}

.social-card > div:not(.insight-media),
.insight-post > div:not(.insight-media) {
  padding-top: 4px;
}

.social-card > :last-child,
.insight-post > :last-child {
  margin-bottom: 24px;
}

.insight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 217, 255, 0.2), transparent 40%),
    rgba(255, 255, 255, 0.05);
}

.hero-insight .insight-media {
  aspect-ratio: 16 / 6.2;
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.insight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(2, 6, 18, 0.34)),
    radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.18), transparent 38%);
  pointer-events: none;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #00131d;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.portal-feed-preview .insight-post {
  display: block;
  padding: 0;
}

.portal-feed-preview .insight-post .avatar {
  margin-top: 18px;
}

.insight-source {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card h3 {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.05;
}

.insight-grid .insight-card h3 {
  font-size: 24px;
  line-height: 1.12;
}

.insight-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
}

.insight-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-footer a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 217, 255, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.05);
  background-size: 100% 34px;
}

.chart-bars span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.24);
  animation: barRise 2.8s ease-in-out infinite;
}

.chart-bars span:nth-child(1) { height: 46%; }
.chart-bars span:nth-child(2) { height: 72%; animation-delay: -0.4s; }
.chart-bars span:nth-child(3) { height: 58%; animation-delay: -0.8s; }
.chart-bars span:nth-child(4) { height: 88%; animation-delay: -1.2s; }

.insight-card.is-hidden {
  display: none;
}

.social-card {
  cursor: pointer;
}

.social-card:hover .insight-media img {
  transform: scale(1.05);
  transition: transform 0.45s ease;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 18, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.article-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.article-modal-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.article-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal-body {
  padding: 34px;
}

.article-modal-body h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.article-lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.article-sections {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.article-sections section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.article-sections h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-sections p,
.article-sections li {
  color: var(--muted);
  line-height: 1.75;
}

.article-sections ul {
  margin: 0;
  padding-left: 20px;
}

.command-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.command-band h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 60px 0;
}

.solutions article,
.auth-panel,
.feed-composer,
.post {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.solutions article {
  padding: 26px;
}

.solution-icon {
  width: 72px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 217, 255, 0.18), transparent 64%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 22px rgba(0, 217, 255, 0.08);
}

.solution-icon img {
  max-width: 56px;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 157, 255, 0.18));
}

.solutions span {
  color: var(--cyan);
  font-weight: 900;
}

.solutions h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.solutions p,
.status-strip span,
.form-note,
.post p {
  color: var(--muted);
  line-height: 1.7;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding-bottom: 70px;
}

.status-strip div {
  padding: 18px;
  border: 1px solid rgba(99, 255, 199, 0.2);
  border-radius: 8px;
  background: rgba(99, 255, 199, 0.06);
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip span {
  margin-top: 6px;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.auth-shell,
.feed-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 36px;
  padding: 130px 0 60px;
}

.auth-visual,
.feed-composer {
  position: relative;
}

.mini-orbit {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(0, 217, 255, 0.2);
  animation: floatCore 5s ease-in-out infinite;
}

.mini-orbit img {
  width: 82px;
}

.auth-panel,
.feed-composer {
  padding: 28px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tabs button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: #00131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: var(--panel);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    var(--panel);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.google-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.google-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.5);
}

.google-btn.is-confirmed {
  color: #00131d;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.feed-composer label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.auth-form input,
.feed-composer textarea {
  width: 100%;
  border: 1px solid rgba(124, 222, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.auth-form input {
  height: 52px;
  padding: 0 14px;
}

.auth-form input:focus,
.feed-composer textarea:focus {
  border-color: rgba(0, 217, 255, 0.7);
}

.full {
  width: 100%;
}

.primary-btn.is-confirmed {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.feed-shell {
  align-items: start;
}

.feed-composer {
  position: sticky;
  top: 110px;
}

.feed-composer form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feed-composer textarea {
  min-height: 150px;
  resize: vertical;
  padding: 16px;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.post {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
}

.post.is-new {
  animation: fadeUp 0.35s ease both;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #00131d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.post header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.post header span {
  color: var(--muted);
  font-size: 13px;
}

.post p {
  margin: 10px 0 0;
}

@keyframes logoIgnite {
  0% { opacity: 0; transform: scale(0.72) rotate(-10deg); filter: blur(14px); }
  55% { opacity: 1; transform: scale(1.08) rotate(3deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes floatCore {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes beamDrift {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes energyRun {
  0% { left: -22px; opacity: 0; transform: scaleX(0.7); }
  14% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: scaleX(1.45); }
}

@keyframes barRise {
  0%, 100% { transform: scaleY(0.84); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .auth-shell,
  .feed-shell,
  .insights-shell {
    grid-template-columns: 1fr;
  }

  .insights-sidebar {
    position: relative;
    top: auto;
  }

  .insights-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-filters {
    justify-content: flex-start;
  }

  .hero-insight,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .ecosystem-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0 0;
  }

  .connector,
  .stage-rings {
    display: none;
  }

  .node-ia,
  .node-university,
  .node-cloud,
  .node-flow,
  .node-erp {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .node-ia,
  .node-university,
  .node-cloud,
  .node-flow,
  .node-erp,
  .core-system {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .core-system {
    order: -1;
    margin-bottom: 8px;
  }

  .system-node {
    width: min(100%, 520px);
    min-height: auto;
    grid-template-columns: 96px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: 18px;
  }

  .system-node img,
  .node-icon {
    grid-row: span 3;
  }

  .node-hover,
  .node-university .node-hover,
  .node-cloud .node-hover,
  .node-flow .node-hover,
  .node-erp .node-hover {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .node-hover::before {
    display: none;
  }

  .system-node:hover {
    transform: translateY(-6px);
  }

  .core-system {
    width: 180px;
    height: 180px;
  }

  .command-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-strip,
  .feed-preview-grid {
    grid-template-columns: 1fr;
  }

  .solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-composer {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: auto;
    align-items: center;
    padding: 10px;
  }

  .brand span {
    display: none;
  }

  .hero,
  .command-band,
  .solutions,
  .status-strip,
  .auth-shell,
  .feed-shell,
  .insights-shell,
  .portal-feed-preview,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero h1,
  .auth-visual h1,
  .feed-composer h1 {
    font-size: 38px;
  }

  .hero-actions,
  .header-actions {
    gap: 8px;
  }

  .account-link,
  .primary-btn,
  .secondary-btn {
    padding: 0 12px;
    font-size: 14px;
  }

  .system-node {
    width: 100%;
    grid-template-columns: 72px 1fr;
  }

  .system-node img,
  .node-icon {
    width: 64px;
    height: 52px;
  }

  .solutions {
    grid-template-columns: 1fr;
  }

  .node-hover {
    width: 100%;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .insights-shell {
    padding-top: 110px;
  }

  .insights-sidebar {
    padding: 20px;
  }

  .insight-card {
    padding: 0;
  }

  .chart-bars {
    height: 140px;
  }

  .article-modal {
    padding: 12px;
  }

  .article-modal-body {
    padding: 22px;
  }

  .article-modal-media {
    aspect-ratio: 16 / 10;
  }

  .site-footer {
    flex-direction: column;
  }
}
