:root {
  --bg: #07040f;
  --bg-soft: #11081f;
  --panel: rgba(17, 9, 33, 0.72);
  --panel-border: rgba(110, 70, 255, 0.28);
  --text: #f4f7ff;
  --muted: #9ca6c7;
  --pink: #ff3dbf;
  --cyan: #2ef2ff;
  --violet: #8457ff;
  --lime: #c7ff47;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(132, 87, 255, 0.28), transparent 32%),
    radial-gradient(circle at 80% 16%, rgba(46, 242, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(255, 61, 191, 0.16), transparent 34%),
    linear-gradient(180deg, #06030d 0%, #0a0614 38%, #09040f 100%);
  font-family: "Space Grotesk", sans-serif;
}

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

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

.noise {
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.grid {
  background-image:
    linear-gradient(rgba(46, 242, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
}

.orb {
  filter: blur(80px);
}

.orb-a {
  background: radial-gradient(circle, rgba(255, 61, 191, 0.35), transparent 58%);
  transform: translate(-12%, -10%);
  animation: drift-a 16s ease-in-out infinite;
}

.orb-b {
  background: radial-gradient(circle, rgba(46, 242, 255, 0.28), transparent 54%);
  transform: translate(40%, 24%);
  animation: drift-b 18s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.eyebrow,
.section-kicker,
.card-label,
.card-status,
.card-host,
.signal-strip span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 0.82rem;
}

.hero h1,
.section-head h2,
.card-title {
  font-family: "Orbitron", sans-serif;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.93;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(132, 87, 255, 0.24);
  animation: rise-in 0.9s ease-out both;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
  animation: rise-in 1.1s ease-out both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise-in 1.25s ease-out both;
}

.primary-button,
.ghost-button,
.card-link {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-button,
.ghost-button {
  padding: 14px 22px;
  font-weight: 700;
}

.primary-button {
  color: #0a0711;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 30px rgba(46, 242, 255, 0.25);
}

.ghost-button {
  border: 1px solid rgba(244, 247, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.primary-button:hover,
.ghost-button:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.signal-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(46, 242, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 7, 18, 0.45);
  color: rgba(244, 247, 255, 0.82);
  font-size: 0.72rem;
}

.projects-section {
  padding-top: 40px;
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateY(32px);
  opacity: 0;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(46, 242, 255, 0.22), transparent 42%, rgba(255, 61, 191, 0.22));
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 242, 255, 0.5);
  box-shadow: 0 34px 90px rgba(20, 10, 43, 0.8);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.revealed {
  animation: card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-topline,
.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.card-label,
.card-host {
  color: var(--muted);
  font-size: 0.78rem;
}

.card-status {
  color: var(--lime);
  font-size: 0.76rem;
}

.card-title {
  position: relative;
  z-index: 1;
  margin: 22px 0 12px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1;
}

.card-description {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  position: relative;
  z-index: 1;
  padding: 11px 16px;
  color: #0a0711;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    min-height: auto;
    padding: 72px 0 32px;
  }

  .project-card {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(-12%, -10%) scale(1);
  }
  50% {
    transform: translate(2%, 8%) scale(1.1);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(40%, 24%) scale(1);
  }
  50% {
    transform: translate(28%, 8%) scale(1.14);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
