:root {
  --bg: #07110d;
  --bg-soft: #0b1711;
  --panel: rgba(17, 30, 24, 0.62);
  --panel-strong: rgba(19, 36, 28, 0.88);
  --line: rgba(151, 255, 196, 0.13);
  --text: #eefbf4;
  --muted: #9fbaa9;
  --primary: #69f0ae;
  --primary-2: #71b7ff;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 240, 174, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(113, 183, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #07110d 0%, #060c09 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.noise,
.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.bg-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 90%);
}

.bg-glow-1 {
  background: radial-gradient(circle at 20% 10%, rgba(105, 240, 174, 0.18), transparent 28%);
}

.bg-glow-2 {
  background: radial-gradient(circle at 80% 20%, rgba(113, 183, 255, 0.18), transparent 28%);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 30px rgba(105, 240, 174, 0.45);
}

.brand-text span,
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.nav a {
  transition: color 0.28s ease, transform 0.28s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button.primary {
  background: linear-gradient(135deg, rgba(105, 240, 174, 0.95), rgba(113, 183, 255, 0.95));
  color: #08110d;
  box-shadow: 0 10px 40px rgba(105, 240, 174, 0.25);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.section {
  padding: 96px 0 0;
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 42px;
  padding-top: 40px;
}

.eyebrow,
.section-tag,
.chip,
.version,
.cube-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #c8eed5;
  width: fit-content;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(105, 240, 174, 0.85);
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-desc,
.section-head p,
.plugin-card p,
.metric-card p,
.feature-panel p,
.structure-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.hero-cube {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.cube-layer,
.cube-core {
  position: absolute;
  border-radius: 32px;
}

.cube-layer {
  width: 72%;
  height: 72%;
  border: 1px solid var(--line);
  animation: floatRotate 12s ease-in-out infinite;
}

.layer-1 {
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(105, 240, 174, 0.14), transparent);
}

.layer-2 {
  width: 58%;
  height: 58%;
  transform: rotate(24deg);
  animation-duration: 8.5s;
  background: linear-gradient(135deg, rgba(113, 183, 255, 0.16), transparent);
}

.layer-3 {
  width: 88%;
  height: 88%;
  transform: rotate(65deg);
  animation-duration: 14s;
}

.cube-core {
  width: 50%;
  min-width: 280px;
  padding: 28px;
  text-align: center;
  animation: floatY 5s ease-in-out infinite;
}

.cube-core h3 {
  margin: 14px 0 8px;
  font-size: 2rem;
}

.cube-core p {
  color: var(--muted);
  margin: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.plugin-grid,
.metric-grid,
.feature-panels,
.command-layout,
.links-grid {
  display: grid;
  gap: 22px;
}

.plugin-grid,
.command-layout,
.feature-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plugin-card,
.feature-panel,
.metric-card,
.command-card,
.structure-card,
.link-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 26px;
}

.plugin-card::before,
.feature-panel::before,
.metric-card::before,
.command-card::before,
.structure-card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%, transparent 60%, rgba(105,240,174,0.06));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plugin-card:hover::before,
.feature-panel:hover::before,
.metric-card:hover::before,
.command-card:hover::before,
.structure-card:hover::before,
.link-card:hover::before {
  opacity: 1;
}

.plugin-card:hover,
.feature-panel:hover,
.metric-card:hover,
.command-card:hover,
.structure-card:hover,
.link-card:hover {
  transform: translateY(-4px);
  transition: transform 0.35s ease;
}

.plugin-topline,
.plugin-actions,
.footer-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-green { color: #cbffd6; }
.chip-blue { color: #d5e9ff; }
.version { color: var(--muted); }

.feature-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}

.timeline-item > span {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(105, 240, 174, 0.5);
}

.timeline-item h4,
.plugin-card h3,
.command-card h3,
.structure-card h3,
.feature-panel h3,
.metric-card strong,
.link-card h3 {
  margin: 0 0 8px;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.badge-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #d9fbe6;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.metric-card span {
  color: #cdecd8;
  display: block;
  margin-bottom: 12px;
}

.command-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.command-item:last-child {
  border-bottom: 0;
}

.command-item code {
  color: #d8fbe4;
}

.command-item span {
  color: var(--muted);
  text-align: right;
}

.structure-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.structure-card pre {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
}

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

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 180px;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.link-card a.inline-link {
  color: #d8fbe4;
}

.site-footer {
  margin-top: 90px;
  margin-bottom: 26px;
  padding: 22px 24px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-right {
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(.2,.8,.2,1),
    transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatRotate {
  0%, 100% { transform: rotate(45deg) translateY(0px); }
  50% { transform: rotate(53deg) translateY(-10px); }
}

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

@media (max-width: 1080px) {
  .hero,
  .plugin-grid,
  .feature-panels,
  .command-layout,
  .structure-card,
  .metric-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 26px;
    padding: 14px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: unset;
    padding-top: 56px;
  }

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

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 20px), var(--max));
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero h1 {
    line-height: 1.02;
  }

  .cube-core {
    min-width: 0;
    width: 78%;
  }

  .site-footer,
  .command-item,
  .plugin-topline,
  .plugin-actions,
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .command-item span {
    text-align: left;
  }
}
