:root {
  --bg-void: #030712;
  --bg-chamber: #0b1424;
  --bg-scrim: rgba(3, 7, 18, 0.72);
  --bg-scrim-strong: rgba(3, 7, 18, 0.88);
  --text-primary: rgba(248, 250, 252, 0.96);
  --text-secondary: rgba(226, 232, 240, 0.78);
  --text-muted: rgba(148, 163, 184, 0.75);
  --accent-cyan: #5bd8ff;
  --accent-violet: #a78bfa;
  --accent-warm: #f7f2ea;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 12px 40px rgba(2, 6, 23, 0.45);
  --shadow-elevated: 0 18px 50px rgba(2, 6, 23, 0.65);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --space-1: clamp(8px, 1.2vw, 12px);
  --space-2: clamp(12px, 1.8vw, 18px);
  --space-3: clamp(16px, 2.4vw, 26px);
  --space-4: clamp(24px, 4vw, 40px);
  --space-5: clamp(32px, 6vw, 64px);
  --focus-ring: 0 0 0 2px rgba(94, 234, 212, 0.6),
    0 0 0 4px rgba(59, 130, 246, 0.45);
  --cyclotron-bg: var(--bg-void);
  --cyclotron-vignette: rgba(0, 0, 0, 0.7);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background: var(--bg-void);
  color: var(--text-secondary);
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #8ae7ff;
  text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: var(--focus-ring);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 72vh, 880px);
  background: linear-gradient(120deg, rgba(8, 16, 32, 0.9), rgba(3, 7, 18, 0.45));
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 12% 20%, rgba(8, 18, 40, 0.88), transparent 65%),
    radial-gradient(75% 65% at 88% 50%, rgba(10, 22, 42, 0.32), transparent 70%),
    linear-gradient(90deg, var(--bg-scrim-strong) 0%, rgba(3, 7, 18, 0.55) 45%, rgba(3, 7, 18, 0.15) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 40%, rgba(91, 216, 255, 0.18), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.12), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  padding-top: clamp(54px, 8vh, 130px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: minmax(340px, 1.1fr) minmax(260px, 0.9fr);
  }

  .hero__content {
    padding-right: clamp(8px, 3vw, 40px);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 560px;
}

.hero__phase {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero__phase--energy {
  display: none;
}

.hero__title {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.hero__eyebrow {
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__support {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.74);
  margin: 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.hero__cta .btn {
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-lab-primary {
  background: linear-gradient(135deg, rgba(91, 216, 255, 0.95), rgba(91, 216, 255, 0.7));
  border: 1px solid rgba(91, 216, 255, 0.4);
  color: #031424;
  box-shadow: 0 12px 30px rgba(15, 118, 156, 0.35);
}

.btn-lab-primary:hover,
.btn-lab-primary:focus {
  color: #020a14;
  background: linear-gradient(135deg, #7de2ff, #5bd8ff);
}

.btn-lab-secondary {
  color: var(--text-primary);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-weight: 500;
  position: relative;
}

.btn-lab-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 216, 255, 0.7), rgba(167, 139, 250, 0.35));
  opacity: 0.7;
}

.hero__bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(226, 232, 240, 0.7);
}

.hero__bullets li {
  margin: 8px 0;
}

.hero__visual {
  position: relative;
  min-height: clamp(220px, 38vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual::before {
  content: none;
}

.hero__visual::after {
  content: none;
}

.hero__brand {
  position: absolute;
  top: 6%;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__brand img {
  width: 32px;
  height: auto;
  filter: grayscale(0.2) brightness(1.1);
}

.hero__energy-band {
  width: 100%;
  min-height: 160px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 216, 255, 0.3);
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.85), rgba(10, 22, 42, 0.5));
  box-shadow: inset 0 0 40px rgba(91, 216, 255, 0.12);
}

.hero__energy-label {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.cyclotron-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--cyclotron-bg);
  opacity: 0.22;
}

.cyclotron-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translate(66%, -10%) scale(1.2);
  transform-origin: top right;
}

.page-home .cyclotron-bg {
  opacity: 0.82;
}

.page-home .cyclotron-bg canvas {
  transform: translate(60%, -10%) scale(1.5);
}

.page-content,
main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.6), 0 12px 30px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(8px);
}

.site-header .navbar {
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header .navbar-brand,
.site-header .nav-link {
  color: rgba(248, 250, 252, 0.88) !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #ffffff !important;
}

.site-header .navbar-toggler {
  border-color: rgba(148, 163, 184, 0.5);
}

.site-header .navbar-toggler-icon {
  filter: invert(1);
}

.footer {
  background: rgba(3, 7, 18, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer,
.footer a,
.text-muted {
  color: rgba(226, 232, 240, 0.75) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

.container {
  color: inherit;
}

.section-heading {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.section-lead {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.lab-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.lab-card h3 {
  font-size: clamp(17px, 1.5vw, 20px);
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.0), rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.0));
  margin: var(--space-4) 0;
}

@media (prefers-reduced-motion: reduce) {
  .cyclotron-bg {
    opacity: 0.18;
  }

  .page-home .cyclotron-bg {
    opacity: 0.4;
  }
}

@media (max-width: 980px) {
  .cyclotron-bg canvas {
    transform: translate(30%, 6%) scale(0.96);
  }

  .page-home .cyclotron-bg canvas {
    transform: translate(22%, 4%) scale(1.06);
  }
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: clamp(38px, 7vh, 90px);
  }

  .hero__phase--energy {
    display: block;
  }

  .hero__visual {
    min-height: 200px;
  }

  .hero__brand {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__energy-band {
    min-height: 180px;
  }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}
