:root {
  --bg: #060a11;
  --bg-deep: #04070d;
  --surface: rgba(10, 16, 28, 0.58);
  --surface-strong: rgba(9, 14, 24, 0.82);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.46);
  --blue-rgb: 70, 160, 255;
  --red-rgb: 255, 77, 103;
  --blue: #46a0ff;
  --red: #ff4d67;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--red-rgb), 0.12), transparent 0 28%),
    radial-gradient(circle at 84% 18%, rgba(var(--blue-rgb), 0.14), transparent 0 30%),
    radial-gradient(circle at 50% 75%, rgba(130, 0, 255, 0.06), transparent 0 22%),
    linear-gradient(180deg, #04070d 0%, #08111b 45%, #04070d 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

#particles-canvas,
#trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles-canvas {
  z-index: 0;
}

#trail-canvas {
  z-index: 1;
}

.mouse-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 240px at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(var(--blue-rgb), 0.10), transparent 60%),
    radial-gradient(circle 180px at calc(var(--mouse-x, 50%) - 4%) calc(var(--mouse-y, 30%) + 2%), rgba(var(--red-rgb), 0.08), transparent 62%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(80, 120, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 120, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.35));
  opacity: 0.34;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.2s linear;
}

.orb-blue {
  top: -40px;
  left: 6%;
  width: 400px;
  height: 400px;
  background: rgba(var(--blue-rgb), 0.72);
}

.orb-red {
  right: 6%;
  bottom: 4%;
  width: 340px;
  height: 340px;
  background: rgba(var(--red-rgb), 0.65);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.site-header.hidden {
  transform: translateY(-110%);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(70, 160, 255, 0.28));
  flex-shrink: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-subtitle,
.panel-label,
.footer-links span,
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-button {
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.16), rgba(var(--blue-rgb), 0.16));
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-button:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #ffffff;
  color: #05070c;
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section {
  padding: 110px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 30px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 60%);
}

.hero-grid,
.two-col {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.two-col {
  grid-template-columns: 0.95fr 1.05fr;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
  box-shadow: 0 0 14px rgba(var(--blue-rgb), 0.7);
}

.hero h1,
.section-heading h2,
.cta-box h2 {
  margin: 18px 0 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  max-width: 850px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #bfe8ff 45%, #ffd0d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.cta-box p,
.info-card p,
.mode-card p,
.feature-card p,
.team-card p,
.partner-card p,
.visual-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-text {
  max-width: 720px;
  font-size: 18px;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.stats,
.cards-grid,
.info-grid,
.footer-links {
  display: grid;
  gap: 18px;
}

.stats {
  margin-top: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.info-card,
.mode-card,
.feature-card,
.team-card,
.partner-card,
.visual-shell,
.visual-panel,
.cta-box {
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.66), rgba(9, 13, 22, 0.84));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.stat-card,
.info-card,
.feature-card,
.team-card,
.partner-card,
.visual-panel {
  border-radius: 28px;
  padding: 24px;
}

.stat-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(var(--blue-rgb), 0.08), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(var(--red-rgb), 0.08), transparent 35%);
  pointer-events: none;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--soft);
  font-size: clamp(0.72rem, 0.95vw, 0.94rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.35;
  max-width: 12ch;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  position: relative;
  z-index: 1;
}

.visual-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  border-radius: 34px;
  padding: 20px;
  overflow: hidden;
}

.visual-shell::before,
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(57, 168, 255, 0.14), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 77, 103, 0.12), transparent 30%);
  pointer-events: none;
}

.hero-logo-panel {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.hero-logo-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.hero-main-logo {
  width: min(320px, 78%);
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(57, 168, 255, 0.22));
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.visual-side {
  display: grid;
  gap: 18px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.cta-box h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-heading p,
.cta-box p {
  margin-top: 22px;
  max-width: 680px;
}

.info-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
}

.mode-card.scp::before {
  background: linear-gradient(
    135deg,
    rgba(255, 77, 103, 0.18),
    rgba(255, 77, 103, 0.02),
    transparent 65%
  );
}

.mode-card.cwrp::before {
  background: linear-gradient(
    135deg,
    rgba(57, 168, 255, 0.2),
    rgba(57, 168, 255, 0.02),
    transparent 65%
  );
}

.mode-card h3,
.info-card h3,
.feature-card h3,
.team-card h3,
.partner-card h3,
.visual-panel h3 {
  margin: 14px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.mode-card h4 {
  margin: 16px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.mode-card p {
  margin: 18px 0 0;
}

.mode-card .button {
  margin-top: 26px;
}

.mode-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.feature-card,
.team-card,
.partner-card,
.info-card,
.visual-panel,
.visual-shell,
.stat-card {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.feature-card:hover,
.team-card:hover,
.partner-card:hover,
.info-card:hover,
.visual-panel:hover,
.visual-shell:hover,
.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.mode-card.scp:hover {
  box-shadow: 0 0 80px rgba(255, 77, 103, 0.18);
}

.mode-card.cwrp:hover {
  box-shadow: 0 0 80px rgba(57, 168, 255, 0.18);
}

.cta-box {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-radius: 36px;
  padding: 40px;
  overflow: hidden;
}

.partners-section {
  padding-top: 30px;
}

.partner-card {
  max-width: 640px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 40px 0;
}

.footer-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-links div {
  display: grid;
  gap: 12px;
}

.footer-links a,
.site-footer p {
  color: var(--soft);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
  will-change: transform;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .visual-shell,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 82px;
  }

  .section {
    padding: 82px 0;
  }

  .container {
    width: min(1200px, calc(100% - 24px));
  }

  .stats,
  .modes-grid,
  .features-grid,
  .info-grid,
  .team-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-heading h2,
  .cta-box h2 {
    font-size: 2.3rem;
  }

  .cta-box,
  .mode-card,
  .visual-shell,
  .stat-card,
  .info-card,
  .feature-card,
  .team-card,
  .partner-card,
  .visual-panel {
    border-radius: 24px;
  }

  .nav {
    min-height: auto;
    padding: 14px 0;
  }

  .nav-button {
    display: none;
  }

  .mode-logo {
    width: 60px;
    height: 60px;
  }
}
