* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #020816;
  color: #eef4fb;
  font-family: Arial, Helvetica, sans-serif;
}

.collective-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(110,193,255,.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255,92,184,.12), transparent 26%),
    radial-gradient(circle at 55% 82%, rgba(255,196,64,.08), transparent 28%),
    linear-gradient(180deg, #061225 0%, #020816 100%);
}

#collective-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .8;
}

.collective-nav {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.collective-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eef4fb;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dcecff, #6ec1ff);
  color: #061120;
  box-shadow: 0 0 26px rgba(110,193,255,.3);
}

.collective-nav nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.collective-nav nav a {
  color: #b9c4d4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.collective-nav nav a:hover {
  color: white;
}

.collective-main {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 90px;
}

.collective-hero {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.eyebrow {
  width: max-content;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #b9c4d4;
  background: rgba(255,255,255,.045);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
}

.collective-hero h1 {
  margin: 22px 0 0;
  max-width: 980px;
  font-size: clamp(62px, 10vw, 146px);
  line-height: .86;
  letter-spacing: -6px;
}

.hero-copy {
  margin-top: 28px;
  max-width: 760px;
  color: #b9c4d4;
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-btn,
.secondary-btn,
.collective-cta a,
.card-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 900;
  transition: .25s ease;
}

.primary-btn,
.collective-cta a {
  padding: 15px 20px;
  color: #061120;
  background: linear-gradient(90deg, #dcecff, #6ec1ff);
  box-shadow: 0 12px 32px rgba(110,193,255,.22);
}

.secondary-btn {
  padding: 15px 20px;
  color: #eef4fb;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.primary-btn:hover,
.secondary-btn:hover,
.collective-cta a:hover,
.card-footer a:hover {
  transform: translateY(-3px);
}

.hero-orbit {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(110,193,255,.12);
  opacity: .75;
  animation: rotateOrbit 18s linear infinite;
}

.hero-orbit span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #6ec1ff;
  box-shadow: 0 0 24px rgba(110,193,255,.8);
}

.hero-orbit span:nth-child(1) {
  left: 50%;
  top: -8px;
}

.hero-orbit span:nth-child(2) {
  right: 18px;
  bottom: 70px;
  background: #ff7a59;
}

.hero-orbit span:nth-child(3) {
  left: 24px;
  bottom: 88px;
  background: #ffd84d;
}

@keyframes rotateOrbit {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

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

.company-card {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.36);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 26%);
  pointer-events: none;
}

.company-card > * {
  position: relative;
  z-index: 2;
}

.card-glow {
  position: absolute;
  inset: auto -18% -20% auto;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .38;
  z-index: 1;
}

.tech-card {
  background:
    radial-gradient(circle at 80% 12%, rgba(110,193,255,.28), transparent 34%),
    linear-gradient(180deg, rgba(14,70,128,.94), rgba(1,17,52,.98));
}

.tech-card .card-glow {
  background: #6ec1ff;
}

.gaming-card {
  background:
    radial-gradient(circle at 20% 12%, rgba(24,100,181,.42), transparent 35%),
    linear-gradient(180deg, rgba(8,52,95,.96), rgba(0,17,52,.98));
}

.gaming-card .card-glow {
  background: #1864b5;
}

.honey-card {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,120,180,.36), transparent 35%),
    radial-gradient(circle at 70% 18%, rgba(255,210,90,.26), transparent 30%),
    linear-gradient(180deg, rgba(255,94,170,.94), rgba(255,145,88,.96));
}

.honey-card .card-glow {
  background: #ffd84d;
}

.chaos-card {
  background:
    radial-gradient(circle at 80% 10%, rgba(163,98,255,.34), transparent 34%),
    radial-gradient(circle at 25% 18%, rgba(103,195,255,.2), transparent 28%),
    linear-gradient(180deg, rgba(42,22,96,.96), rgba(6,12,44,.98));
}

.chaos-card .card-glow {
  background: #a362ff;
}

.company-card:hover {
  border-color: rgba(110,193,255,.55);
  box-shadow: 0 38px 110px rgba(0,0,0,.55);
}

.card-top,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.company-status {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}

.company-number {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255,255,255,.42);
}

.company-card h2 {
  margin: 0 0 18px;
  max-width: 620px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: .9;
  letter-spacing: -3px;
}

.company-card p {
  max-width: 600px;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  font-size: 17px;
}

.card-footer a {
  padding: 13px 16px;
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
}

.card-footer span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.collective-system,
.collective-cta {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.collective-system {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.collective-system h2,
.collective-cta h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -3px;
}

.collective-system p,
.collective-cta p {
  color: #b9c4d4;
  line-height: 1.85;
  font-size: 17px;
}

.collective-cta {
  text-align: center;
}

.collective-cta p {
  max-width: 740px;
  margin: 18px auto 24px;
}

.system-trigger {
  position: relative;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.system-trigger i {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: #061120;
  animation: triggerPulse 1.4s infinite;
}

@keyframes triggerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6,17,32,.45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(6,17,32,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6,17,32,0);
  }
}

.system-flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(110,193,255,.18), transparent 32%),
    rgba(2,8,22,.78);
}

.system-flash.active {
  animation: flashLayer 1.15s ease forwards;
}

.flash-ring {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid rgba(110,193,255,.75);
  box-shadow:
    0 0 24px rgba(110,193,255,.6),
    inset 0 0 24px rgba(110,193,255,.28);
  animation: ringOpen 1.15s ease forwards;
}

.flash-text {
  position: absolute;
  margin-top: 160px;
  color: #dcecff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: 0;
  animation: flashText .9s ease forwards;
}

@keyframes flashLayer {
  0% { opacity: 0; }
  16% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ringOpen {
  0% {
    transform: scale(.25);
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  100% {
    transform: scale(18);
    opacity: 0;
  }
}

@keyframes flashText {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  30% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.collective-page.system-warping .collective-hero {
  animation: heroWarpOut 1.15s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes heroWarpOut {
  0% {
    transform: scale(1);
    filter: blur(0);
  }

  45% {
    transform: scale(1.035);
    filter: blur(1px);
  }

  100% {
    transform: scale(.96) translateY(-36px);
    filter: blur(8px);
    opacity: .18;
  }
}

.collective-page.system-warping #collective-canvas {
  animation: canvasSurge 1.15s ease forwards;
}

@keyframes canvasSurge {
  0% {
    opacity: .8;
    filter: blur(0);
  }

  45% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: .35;
    filter: blur(5px);
  }
}

.system-flash::before,
.system-flash::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  border: 1px solid rgba(110,193,255,.28);
  box-shadow:
    0 0 40px rgba(110,193,255,.32),
    inset 0 0 40px rgba(110,193,255,.18);
  opacity: 0;
}

.system-flash.active::before {
  animation: portalSpinA 1.15s ease forwards;
}

.system-flash.active::after {
  animation: portalSpinB 1.15s ease forwards;
}

@keyframes portalSpinA {
  0% {
    transform: scale(.2) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: scale(2.4) rotate(220deg);
    opacity: 0;
  }
}

@keyframes portalSpinB {
  0% {
    transform: scale(.15) rotate(0deg);
    opacity: 0;
  }

  25% {
    opacity: .9;
  }

  100% {
    transform: scale(1.8) rotate(-260deg);
    opacity: 0;
  }
}

.company-grid.system-entering {
  position: relative;
}

.company-grid.system-entering::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 44px;
  background:
    radial-gradient(circle at center, rgba(110,193,255,.22), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: gridArrivalGlow 1.2s ease forwards;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridArrivalGlow {
  0% {
    opacity: 0;
    transform: scale(.88);
    filter: blur(20px);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(36px);
  }
}

.company-grid.system-entering .company-card {
  animation: cardSystemReveal .95s cubic-bezier(.16,1,.3,1) both, cardCharge 1.4s ease both;
}

.company-grid.system-entering .company-card:nth-child(1) {
  animation-delay: .05s;
}

.company-grid.system-entering .company-card:nth-child(2) {
  animation-delay: .16s;
}

.company-grid.system-entering .company-card:nth-child(3) {
  animation-delay: .27s;
}

.company-grid.system-entering .company-card:nth-child(4) {
  animation-delay: .38s;
}

@keyframes cardSystemReveal {
  0% {
    opacity: 0;
    transform: translateY(46px) scale(.94);
    filter: blur(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardCharge {
  0% {
    box-shadow: 0 0 0 rgba(110,193,255,0);
  }

  35% {
    box-shadow:
      0 0 30px rgba(110,193,255,.26),
      0 34px 90px rgba(0,0,0,.5);
  }

  100% {
    box-shadow: 0 26px 70px rgba(0,0,0,.36);
  }
}

@media (max-width: 980px) {
  .collective-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-orbit {
    opacity: .25;
    right: -120px;
  }

  .company-grid,
  .collective-system {
    grid-template-columns: 1fr;
  }

  .company-card {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .collective-main {
    padding: 20px 16px 70px;
  }

  .collective-hero h1 {
    font-size: clamp(48px, 18vw, 76px);
    letter-spacing: -3px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .company-card {
    padding: 22px;
  }

  .company-card h2 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .collective-system,
  .collective-cta {
    padding: 22px;
  }
}