:root {
  --bg: #050815;
  --bg-soft: #0a1024;
  --panel: rgba(14, 21, 41, 0.74);
  --panel-strong: rgba(18, 27, 52, 0.9);
  --line: rgba(142, 169, 255, 0.18);
  --text: #eff5ff;
  --muted: #aeb9ce;
  --blue: #4d88ff;
  --cyan: #45ddff;
  --violet: #59bfff;
  --red: #ff2929;
  --accent: #45ddff;
  --accent-2: #7ff5ff;
  --accent-3: #4d88ff;
  --accent-rgb: 69, 221, 255;
  --green: #21e4a4;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

body.vyrex-theme {
  --accent: #ff2929;
  --accent-2: #ff6a6a;
  --accent-3: #8a1018;
  --accent-rgb: 255, 41, 41;
  --panel: rgba(25, 15, 24, 0.76);
  --line: rgba(255, 82, 82, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--accent-rgb), 0.22), transparent 31%),
    radial-gradient(circle at 80% 24%, rgba(77, 136, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(var(--accent-rgb), 0.1), transparent 36%),
    linear-gradient(180deg, #070b18 0%, #030510 100%);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.44;
  background-image:
    linear-gradient(32deg, transparent 0 46%, rgba(var(--accent-rgb), 0.13) 47% 48%, transparent 49% 100%),
    linear-gradient(148deg, transparent 0 50%, rgba(58, 219, 255, 0.08) 51% 52%, transparent 53% 100%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 340px 260px, 300px 240px, 46px 46px, 46px 46px;
  transform: translate3d(0, calc(var(--scroll, 0) * -0.08px), 0);
}

.shell {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.15);
}

.nav {
  display: flex;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.nav a {
  color: #cdd7eb;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 76px 0 108px;
  text-align: center;
}

.hero-inner {
  width: 100%;
  transform: translate3d(0, calc(var(--scroll, 0) * -0.04px), 0);
}

.status-pill,
.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(33, 228, 164, 0.3);
  border-radius: 999px;
  background: rgba(33, 228, 164, 0.1);
  color: #64f2c3;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
  box-shadow: 0 0 35px rgba(33, 228, 164, 0.09);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.floating-pill {
  position: absolute;
  border-color: rgba(126, 162, 255, 0.18);
  background: rgba(17, 24, 43, 0.65);
  color: #d9e4ff;
  font-size: 11px;
  padding: 8px 12px;
}

.floating-pill.one {
  right: 3%;
  top: 34%;
}

.floating-pill.two {
  left: 3%;
  bottom: 30%;
}

.hero h1,
.page-hero h1 {
  margin: 36px auto 16px;
  max-width: 1120px;
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-logo {
  width: min(210px, 44vw);
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 34px rgba(var(--accent-rgb), 0.34));
  transform: scale(1.85);
}

.hero h1 span,
.gradient-text {
  display: block;
  background: linear-gradient(90deg, var(--accent-3) 0%, var(--accent) 48%, var(--accent-2) 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  width: min(760px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.button.primary {
  border: 0;
  background: linear-gradient(100deg, var(--accent-3), var(--accent));
}

.button.red {
  border: 0;
  background: linear-gradient(100deg, #ff2929, #7b111c);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 28px;
  height: 28px;
  border-right: 3px solid rgba(255, 255, 255, 0.86);
  border-bottom: 3px solid rgba(255, 255, 255, 0.86);
  transform: translateX(-50%) rotate(45deg);
  animation: bob 1.7s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translate(-50%, 8px) rotate(45deg); }
}

.section {
  position: relative;
  padding: 94px 0 110px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 26, 0.08), rgba(10, 16, 32, 0.84) 24%, rgba(6, 9, 20, 0.92));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-text {
  max-width: 760px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), transparent 44%),
    radial-gradient(circle at top right, rgba(77, 136, 255, 0.16), transparent 38%);
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  box-shadow: 0 0 36px rgba(79, 141, 255, 0.28);
}

.card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.role {
  margin: 8px 0 0;
  color: #76f0cb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.card p {
  color: #c1ccde;
  font-size: 16px;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 8px 11px;
  border: 1px solid rgba(159, 184, 255, 0.18);
  border-radius: 999px;
  color: #dbe5ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.page-hero {
  padding: 112px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(54px, 8vw, 108px);
}

.project-card {
  min-height: 360px;
}

.project-logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 48px rgba(var(--accent-rgb), 0.22);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.project-top h3 {
  font-size: 42px;
}

.vyrex-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.vyrex-logo-large {
  width: min(100%, 420px);
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 0 70px rgba(var(--accent-rgb), 0.24);
}

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

.feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.email-link {
  display: inline-flex;
  margin-top: 22px;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 950;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer {
  padding: 30px 0 48px;
  color: #8995ad;
  text-align: center;
}

@media (max-width: 860px) {
  .topbar {
    position: relative;
    top: 0;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    border-radius: 18px;
  }

  .floating-pill {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 82px);
  }

  .team-grid,
  .project-grid,
  .vyrex-showcase,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: 68vw;
    max-width: 320px;
  }

  .brand {
    font-size: 18px;
  }

  .nav a {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .lead,
  .section-text {
    font-size: 16px;
    max-width: 100%;
  }

  .actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .page-hero {
    overflow: hidden;
  }

  .vyrex-logo-large {
    width: 100%;
  }

  .profile-row,
  .project-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
