:root {
  --bg: #060913;
  --bg-2: #0c1120;
  --panel: rgba(13, 20, 38, 0.72);
  --panel-border: rgba(93, 195, 255, 0.18);
  --text: #f4f8ff;
  --muted: #93a3bc;
  --cyan: #00c7ff;
  --blue: #1478ff;
  --purple: #7f7cff;
  --gradient: linear-gradient(135deg, #00c7ff 0%, #1478ff 55%, #2d4cff 100%);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 34px rgba(0,199,255,.18);
  --radius: 18px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(20,120,255,.16), transparent 28%),
    radial-gradient(circle at left, rgba(0,199,255,.10), transparent 25%),
    linear-gradient(180deg, #05070f 0%, #09101d 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(92%, var(--container)); margin: 0 auto; }
.section { position: relative; padding: 96px 0; }
.section-alt { background: rgba(255,255,255,0.015); }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(0,199,255,.2);
  border-radius: 999px;
  color: #9fe8ff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
h1, h2, h3, h4 { margin: 0 0 16px; font-family: Sora, Inter, sans-serif; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
p { color: var(--muted); line-height: 1.7; margin: 0; }
.lead { font-size: 1.08rem; max-width: 58ch; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 8, 20, .5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-header.is-scrolled {
  background: rgba(3, 8, 20, .8);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display:flex; align-items:center; gap:12px; font-weight:800; }
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,199,255,.25));
}
.brand-text { font-size: 1.1rem; }
.nav { display:flex; gap: 22px; }
.nav a { color: #d8e7ff; font-weight: 500; opacity: .92; }
.nav a:hover { color: white; }
.nav-actions { display:flex; gap: 12px; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 199, 255, .22);
}
.btn-ghost {
  background: rgba(255,255,255,.03);
  color: #dcf6ff;
  border-color: rgba(255,255,255,.08);
}
.btn-lg { min-height: 52px; padding: 0 22px; }

.hero-grid {
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items:center;
}
.hero-copy { padding-top: 20px; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 14px; margin: 30px 0; }
.hero-points {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; list-style:none; padding:0; margin: 28px 0 0;
}
.hero-points li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  color: #dce9ff;
  font-size: .95rem;
}
.hero-panel { padding: 24px; }
.hero-card-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mini-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
}
.mini-tag {
  display:inline-block;
  margin-bottom: 12px;
  color:#9fe8ff;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.section-head { margin-bottom: 34px; text-align:center; }
.section-head-left { text-align:left; }

.project-grid,
.stats-grid,
.footer-grid {
  display:grid;
  gap: 24px;
}
.project-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

.project-card, .stat, .cta-box, .terminal, .point-card, .detail-card {
  padding: 24px;
}
.project-card:hover, .stat:hover, .point-card:hover, .detail-card:hover {
  transform: translateY(-6px);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0,199,255,.13);
}
.project-tag {
  display:inline-block; margin-bottom: 14px; font-size:.82rem; color:#9fe8ff;
}
.project-card a { display:inline-block; margin-top: 18px; color:#c6f3ff; font-weight:700; }

.infography-frame {
  overflow: hidden;
  padding: 14px;
}
.infography-frame img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  transition: transform .35s ease;
}
.infography-frame:hover img { transform: scale(1.015); }

.ecosystem-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}
.ecosystem-map {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  padding: 18px;
}
.ecosystem-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,199,255,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events: none;
}
.ecosystem-svg {
  width: 100%;
  height: 100%;
  min-height: 620px;
}
.connector {
  fill: none;
  stroke: url(#ecoGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: dashFlow 10s linear infinite;
  opacity: .78;
}
.core-ring circle {
  fill: none;
  stroke: rgba(0,199,255,.16);
}
.ring-1 circle { stroke-width: 3; animation: spinSlow 16s linear infinite; transform-origin: 460px 320px; }
.ring-2 circle { stroke-width: 2; stroke-dasharray: 8 12; animation: spinReverse 22s linear infinite; transform-origin: 460px 320px; }
.node-circle {
  fill: rgba(8,18,38,.9);
  stroke: #38d7ff;
  stroke-width: 2.6;
  filter: url(#ecoGlow);
  transition: transform .25s ease, fill .25s ease, stroke .25s ease;
  transform-origin: center;
}
.core-node {
  fill: rgba(10,20,40,.92);
  stroke: rgba(84,215,255,.9);
  stroke-width: 3;
}
.eco-node { cursor: pointer; }
.eco-node.active .node-circle,
.eco-node:hover .node-circle {
  transform: scale(1.08);
  fill: rgba(10,28,55,.98);
  stroke: #7be8ff;
}
.node-text, .core-label {
  fill: #eef8ff;
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.node-text { font-size: 16px; }
.core-label { font-size: 20px; }
.ecosystem-details {
  display: grid;
  gap: 16px;
  align-content: start;
}
.detail-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  border-color: rgba(93,195,255,.12);
}
.detail-card.active {
  border-color: rgba(103,214,255,.42);
  box-shadow: var(--shadow), var(--shadow-glow);
  background: linear-gradient(180deg, rgba(14,28,52,.88), rgba(8,16,32,.88));
}
.detail-card h3 { font-size: 1.15rem; }

.developer-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items:center;
}
.developer-grid-enhanced { align-items: start; }
.terminal pre {
  margin: 0;
  overflow:auto;
  color: #bff6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: .95rem;
  line-height: 1.7;
}

.mindset-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.mindset-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.point-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.stat { text-align:center; }
.counter {
  display:block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: Sora, sans-serif;
  margin-bottom: 10px;
  color: white;
}

.cta-box { text-align:center; padding: 36px; }

.site-footer {
  padding: 34px 0 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(2, 6, 16, .5);
}
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.site-footer h4 { margin-bottom: 12px; font-size: 1rem; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: var(--muted);
}

.menu-toggle {
  display:none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 0 10px;
}
.menu-toggle span {
  display:block; width:100%; height:2px; background:white; margin:6px 0;
}

@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -240; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@media (max-width: 1180px) {
  .hero-grid, .ecosystem-layout, .developer-grid, .mindset-grid { grid-template-columns: 1fr; }
  .project-grid, .stats-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-points { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .menu-toggle { display:block; }
  .nav, .nav-actions { display:none; }
  .nav.is-open, .nav-actions.is-open {
    display:flex;
    position:absolute;
    left: 4%;
    right: 4%;
    background: rgba(4,9,20,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { top: 84px; flex-direction: column; gap: 16px; }
  .nav-actions.is-open { top: calc(84px + 286px); justify-content: stretch; flex-direction: column; }
  .nav-actions.is-open .btn { width: 100%; }
  .project-grid, .stats-grid, .footer-grid, .hero-card-grid, .mindset-points { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .ecosystem-map { min-height: 520px; padding: 8px; }
  .ecosystem-svg { min-height: 480px; }
  .node-text { font-size: 14px; }
  .core-label { font-size: 16px; }
}
