:root {
  --indigo: rgb(50,34,166);
  --green: rgb(54,227,68);
  --coral: rgb(255,59,59);
  --text: #f0eeff;
  --white: #fff;
  --mono: 'B612 Mono', monospace;
  --syne: 'Syne', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--indigo);
  font-family: var(--syne);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.9s ease both;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-350 {
  animation-delay: 0.35s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-0 {
  transition-delay: 0s;
}

.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-120 {
  transition-delay: 0.12s;
}

.reveal-delay-150 {
  transition-delay: 0.15s;
}

.reveal-delay-240 {
  transition-delay: 0.24s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(54,227,68,0.25);
  border-radius: 3px;
}

.rule {
  height: 1px;
  background: var(--green);
}

.rule-15 {
  opacity: 0.15;
}

.rule-08 {
  opacity: 0.08;
}

.rule-06 {
  opacity: 0.06;
}

.text-green {
  color: var(--green);
}

.nav-inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav-inner.is-scrolled {
  background: rgba(50,34,166,0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(54,227,68,0.13);
}

.nav-brand {
  font-family: var(--syne);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-symbol {
  opacity: 0.55;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text);
  opacity: 0.5;
}

.nav-link {
  color: inherit;
  text-decoration: none;
}

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 64px 180px;
}

.diag-slash {
  position: absolute;
  width: 520px;
  height: 520px;
  background: linear-gradient(var(--indigo) 0%, var(--coral) 100%);
  transform: matrix(0.824,-0.566,0.566,0.824,0,0);
  pointer-events: none;
}

.diag-slash-hero {
  right: -320px;
  top: 30%;
  opacity: 0.7;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: left;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.18em;
  margin-bottom: 32px;
  opacity: 0.65;
}

.hero-h1 {
  font-family: var(--syne);
  font-weight: 600;
  font-size: clamp(58px, 6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 36px;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--green);
  opacity: 0.75;
  max-width: 500px;
  margin-bottom: 64px;
}

.hero-stamp-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-stamp-line {
  width: 40px;
  height: 1px;
  background: var(--green);
  opacity: 0.8;
}

.hero-stamp-text {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.15em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 64px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  opacity: 0.35;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.stats-band {
  border-top: 1px solid rgba(54,227,68,0.15);
  border-bottom: 1px solid rgba(54,227,68,0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-cell {
  padding: 36px 64px;
}

.stats-cell:not(:last-child) {
  border-right: 1px solid rgba(54,227,68,0.13);
}

.stats-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text);
  opacity: 0.45;
  margin-bottom: 10px;
}

.stats-value {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 22px;
  color: var(--green);
  letter-spacing: -0.01em;
}

.regime-section {
  padding: 80px 64px;
}

.regime-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.regime-kicker {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  letter-spacing: 0.16em;
  opacity: 0.45;
  margin-bottom: 12px;
}

.regime-title {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  line-height: 1.1;
}

.regime-note {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  opacity: 0.35;
  letter-spacing: 0.1em;
}

.regime-header-row {
  display: grid;
  grid-template-columns: 130px 110px 100px 50px 180px 80px;
  gap: 0 24px;
  padding: 14px 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  opacity: 0.38;
  letter-spacing: 0.12em;
}

.regime-data-row {
  display: grid;
  grid-template-columns: 130px 110px 100px 50px 180px 80px;
  gap: 0 24px;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0.8;
  align-items: center;
}

.bar-cell {
  display: flex;
  align-items: center;
  gap: 3px;
}

.bar-solid,
.bar-dashed {
  height: 6px;
  flex-shrink: 0;
}

.bar-solid {
  background: var(--green);
}

.bar-dashed {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(54,227,68,0.27) 0px,
    rgba(54,227,68,0.27) 2px,
    transparent 2px,
    transparent 5px
  );
}

.pct-42 .bar-solid {
  width: 36.96px;
}

.pct-42 .bar-dashed {
  width: 51.04px;
}

.pct-55 .bar-solid {
  width: 48.4px;
}

.pct-55 .bar-dashed {
  width: 39.6px;
}

.pct-18 .bar-solid {
  width: 15.84px;
}

.pct-18 .bar-dashed {
  width: 72.16px;
}

.pct-default .bar-solid,
.pct-default .bar-dashed {
  width: 44px;
}

.strategy-section,
.team-section {
  padding: 80px 64px 100px;
  border-top: 1px solid rgba(54,227,68,0.13);
}

.section-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  letter-spacing: 0.16em;
  opacity: 0.4;
  margin-bottom: 60px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
}

.strategy-meta-row {
  font-family: var(--mono);
  font-size: 9px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strategy-id {
  color: var(--text);
  opacity: 0.3;
}

.strategy-divider {
  flex: 1;
  height: 1px;
  background: var(--text);
  opacity: 0.12;
}

.strategy-title {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.strategy-body {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.8;
}

.team-row {
  display: flex;
  gap: 0;
  max-width: 1100px;
}

.team-member {
  flex: 1;
}

.team-member:not(:last-child) {
  padding-right: 56px;
  border-right: 1px solid rgba(54,227,68,0.09);
}

.team-member:not(:first-child) {
  padding-left: 56px;
}

.team-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(54,227,68,0.31);
  background: rgba(54,227,68,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.team-name {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 6px;
}

.team-role {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.team-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.75;
}

.footer-inner {
  padding: 28px 64px;
  border-top: 1px solid rgba(54,227,68,0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  opacity: 0.8;
  letter-spacing: 0.12em;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-line {
  width: 24px;
  height: 1px;
  background: var(--green);
  opacity: 0.3;
}

.footer-version {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  opacity: 0.8;
  letter-spacing: 0.12em;
}

.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 300px;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  border: 0.5px solid rgba(255,255,255,0.6);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: #1a1730;
  overflow: hidden;
}

.tweaks-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweaks-title {
  font-size: 12px;
  font-weight: 600;
}

.tweaks-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  line-height: 1;
}

.tweaks-body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweaks-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(41,38,27,0.45);
  margin-bottom: 8px;
}

.tweaks-label-sm {
  font-size: 10px;
}

.tweaks-label-md {
  font-size: 11px;
}

.tweaks-input,
.tweaks-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 7px;
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  outline: none;
}

.tweaks-input {
  font-size: 12px;
}

.tweaks-textarea {
  font-size: 11px;
  resize: vertical;
  line-height: 1.6;
}

.tweaks-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweaks-switch-label {
  font-size: 11px;
  font-weight: 500;
}

.tweaks-toggle {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  border: none;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}

.tweaks-toggle.is-on {
  background: rgb(54,227,68);
}

.tweaks-toggle.is-off {
  background: rgba(0,0,0,0.15);
}

.tweaks-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left 0.15s;
}

.tweaks-toggle.is-on .tweaks-toggle-knob {
  left: 16px;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 0 24px 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-h1 {
    font-size: clamp(42px, 11vw, 64px);
  }

  .hero-sub {
    max-width: 100%;
    font-size: 11px;
  }

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

  .stats-cell {
    padding: 24px 24px;
  }

  .regime-header-row {
    display: none;
  }

  .regime-data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px 0;
  }

  .regime-section {
    padding: 48px 24px;
  }

  .regime-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .strategy-section {
    padding: 48px 24px 60px;
  }

  .team-row {
    flex-direction: column;
    gap: 40px;
  }

  .team-member,
  .team-member:not(:last-child),
  .team-member:not(:first-child) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

  .team-member {
    border-bottom: 1px solid rgba(54,227,68,0.12);
    padding-bottom: 40px;
  }

  .team-member:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .team-section {
    padding: 48px 24px 60px;
  }

  .footer-inner {
    padding: 20px 24px;
  }
}
