/* ============================================
   toolz Landing — Design System
   ============================================ */

:root {
  /* Accent palette */
  --accent-900:     #513B7B;
  --accent-800:     #5D3E7D;
  --accent-600:     #7B5FA3;
  --accent-400:     #A799C0;
  --accent-200:     #D4CBE4;
  --accent-50:      #F0ECF5;

  /* Neutrals */
  --black:          #1A1A2E;
  --gray-700:       #4A4A5E;
  --gray-500:       #7A7A8E;
  --gray-300:       #C8C8D4;
  --gray-100:       #F4F4F8;
  --white:          #FFFFFF;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 7rem;

  /* Layout */
  --container: 1120px;
  --header-h:  64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(81, 59, 123, 0.08);
  --hairline: rgba(81, 59, 123, 0.1);

  /* Shadows — softer, more minimal */
  --shadow-sm:  0 1px 2px rgba(81, 59, 123, 0.04);
  --shadow-md:  0 4px 20px rgba(81, 59, 123, 0.06);
  --shadow-lg:  0 12px 40px rgba(81, 59, 123, 0.08);
  --shadow-xl:  0 20px 60px rgba(81, 59, 123, 0.1);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--gray-100);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

main {
  position: relative;
  z-index: 1;
}

.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

#hexCanvas {
  width: 100%;
  height: 100%;
}

/* ---- Header / Nav ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 101;
}

/* Brand logo */
.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-logo--footer {
  width: 32px;
  height: 32px;
  filter: brightness(2.5);
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--black);
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.nav__links a:not(.nav__cta):hover {
  color: var(--accent-900);
  background: rgba(81, 59, 123, 0.06);
}

.nav__cta {
  background: var(--accent-900);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease) !important;
}

.nav__cta:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease-out);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent-900);
  color: var(--white);
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--accent-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  color: var(--accent-900);
  border: 1.5px solid var(--accent-200);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent-400);
  background: var(--accent-50);
}

.btn--white {
  background: var(--white);
  color: var(--accent-900);
  font-weight: 600;
  padding: 0.85rem 2rem;
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-xl)) 0 0;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.hero__glow--primary {
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  top: 5%;
  left: 15%;
  background: radial-gradient(circle, rgba(167, 153, 192, 0.4) 0%, transparent 70%);
  animation: hero-glow-breathe 8s var(--ease) infinite;
}

.hero__glow--secondary {
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  top: 20%;
  right: 5%;
  background: radial-gradient(circle, rgba(81, 59, 123, 0.16) 0%, transparent 70%);
  animation: hero-glow-drift 12s var(--ease) infinite;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 244, 248, 0.15) 0%, transparent 40%, rgba(244, 244, 248, 0.7) 100%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(240, 236, 245, 0.85), transparent 65%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  padding-bottom: var(--space-xl);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__mark {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out) 0.1s forwards;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.75rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--black);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out) 0.22s forwards;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--gray-500);
  max-width: 34ch;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2xl);
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out) 0.36s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out) 0.5s forwards;
}

.hero__showcase {
  opacity: 0;
  animation: hero-rise 1s var(--ease-out) 0.35s forwards;
}

/* Hero slider */

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--hairline);
  aspect-ratio: 4 / 3;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0.55s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 2.5rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.85));
  color: var(--white);
  pointer-events: none;
}

.hero-slide__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-slide__note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero-slider__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent-900);
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.hero-slider__btn svg {
  width: 18px;
  height: 18px;
}

.hero-slider__btn:hover {
  border-color: var(--accent-400);
  background: var(--accent-50);
  transform: scale(1.05);
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-200);
  transition: width var(--duration) var(--ease-out),
              background var(--duration) var(--ease),
              border-radius var(--duration) var(--ease);
}

.hero-slider__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent-900);
}

/* Continuous image marquee */

.hero-marquee {
  position: relative;
  z-index: 1;
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0 var(--space-2xl);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hero-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-lg);
  animation: hero-marquee 38s linear infinite;
}

.hero-marquee__group {
  display: flex;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.hero-marquee__group img {
  width: 220px;
  height: 138px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  transition: transform var(--duration) var(--ease);
}

.hero-marquee:hover .hero-marquee__track {
  animation-play-state: paused;
}

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

@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, -16px); }
}

@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero Visual — Orbital Tool Hub */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 900px;
}

.orbit-stage {
  position: relative;
  width: 420px;
  height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.orbit-stage__glow {
  position: absolute;
  inset: 60px;
  background: radial-gradient(circle, rgba(167, 153, 192, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-breathe 5s ease-in-out infinite;
}

.orbit-stage__paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: paths-spin 60s linear infinite;
}

.orbit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 160px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.orbit-hub__card {
  position: absolute;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--accent-200);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.orbit-hub__card--back {
  width: 170px;
  height: 110px;
  top: 10px;
  left: 15px;
  transform: rotate(-8deg) translateZ(-30px);
  opacity: 0.7;
  animation: card-float-back 6s ease-in-out infinite;
}

.orbit-hub__card--mid {
  width: 150px;
  height: 90px;
  top: 30px;
  left: 30px;
  transform: rotate(4deg) translateZ(10px);
  opacity: 0.85;
  animation: card-float-mid 5s ease-in-out infinite 0.5s;
}

.orbit-hub__card--front {
  width: 185px;
  height: 120px;
  top: 45px;
  left: 5px;
  transform: rotate(-2deg) translateZ(40px);
  animation: card-float-front 4.5s ease-in-out infinite 1s;
}

/* Mini UI previews inside hub cards */
.mini-ui--code {
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  line-height: 1.55;
  color: var(--gray-700);
}

.mini-ui--code span { display: block; }
.mini-ui--code em { color: var(--accent-600); font-style: normal; }

.mini-ui--palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px;
  height: 100%;
}

.mini-ui--palette span {
  border-radius: 4px;
  min-height: 100%;
}

.mini-ui--chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 14px;
  height: 100%;
}

.mini-ui__bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent-900), var(--accent-400));
  border-radius: 3px 3px 0 0;
  animation: bar-grow 3s ease-in-out infinite alternate;
}

.mini-ui__bar:nth-child(2) { animation-delay: 0.3s; }
.mini-ui__bar:nth-child(3) { animation-delay: 0.6s; }
.mini-ui__bar:nth-child(4) { animation-delay: 0.9s; }

/* Orbiting tool satellites */
.orbit-ring {
  position: absolute;
  inset: 0;
  animation: ring-spin var(--spin-duration, 30s) linear infinite;
}

.orbit-ring--outer {
  --spin-duration: 36s;
}

.orbit-ring--inner {
  --spin-duration: -24s;
  inset: 50px;
}

.orbit-sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateX(155px) rotate(calc(-1 * var(--angle)));
}

.orbit-ring--inner .orbit-sat {
  transform: rotate(var(--angle)) translateX(115px) rotate(calc(-1 * var(--angle)));
}

.orbit-sat__body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background: var(--white);
  border: 1.5px solid var(--accent-200);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.orbit-sat__body svg {
  width: 20px;
  height: 20px;
  color: var(--accent-900);
}

.orbit-sat--sm .orbit-sat__body {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  background: var(--accent-50);
  border-color: transparent;
}

.orbit-sat--sm .orbit-sat__body svg {
  width: 16px;
  height: 16px;
}

.orbit-sat:hover .orbit-sat__body {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
  background: var(--accent-900);
}

.orbit-sat:hover .orbit-sat__body svg {
  color: var(--white);
}

.orbit-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--accent-600);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(123, 95, 163, 0.5);
  animation: hub-pulse 3s ease-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

@keyframes paths-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes card-float-back {
  0%, 100% { transform: rotate(-8deg) translateZ(-30px) translateY(0); }
  50%      { transform: rotate(-8deg) translateZ(-30px) translateY(-6px); }
}

@keyframes card-float-mid {
  0%, 100% { transform: rotate(4deg) translateZ(10px) translateY(0); }
  50%      { transform: rotate(4deg) translateZ(10px) translateY(-8px); }
}

@keyframes card-float-front {
  0%, 100% { transform: rotate(-2deg) translateZ(40px) translateY(0); }
  50%      { transform: rotate(-2deg) translateZ(40px) translateY(-10px); }
}

@keyframes bar-grow {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

@keyframes hub-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 95, 163, 0.45); }
  70%  { box-shadow: 0 0 0 20px rgba(123, 95, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 95, 163, 0); }
}

/* ---- Exstruct Section (Cinematic Palette) ---- */

.exstruct {
  --exstruct-cyan: #00f2ff;
  --exstruct-amethyst: #7c3aed;
  --exstruct-green: #00ff9d;
  --exstruct-red: #ff0055;
  --exstruct-bg: #0b0f1a;
  --exstruct-bg-mid: #12101f;
  --exstruct-surface: rgba(255, 255, 255, 0.06);

  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--exstruct-bg) 0%, var(--exstruct-bg-mid) 50%, #0d1520 100%);
  color: #e8eaef;
  overflow: hidden;
}

.exstruct::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 242, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 15% 75%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.exstruct__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.exstruct__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--exstruct-cyan);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 20px rgba(0, 242, 255, 0.45);
}

.exstruct__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--exstruct-cyan), var(--exstruct-amethyst));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.exstruct__desc {
  font-size: 1.05rem;
  color: #a8b0c0;
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

.exstruct__highlights {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.exstruct__highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: #c4cad6;
}

.exstruct__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--exstruct-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.55);
}

.btn--exstruct {
  background: linear-gradient(135deg, var(--exstruct-cyan), var(--exstruct-amethyst));
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0, 242, 255, 0.3);
}

.btn--exstruct:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 242, 255, 0.45);
}

/* Exstruct-scoped orbit visual overrides */
.exstruct .orbit-stage__glow {
  background: radial-gradient(circle, rgba(0, 242, 255, 0.22) 0%, transparent 70%);
}

.exstruct .orbit-hub__card {
  background: rgba(18, 16, 31, 0.88);
  border-color: rgba(0, 242, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 242, 255, 0.1);
}

.exstruct .mini-ui--code {
  color: #c4cad6;
}

.exstruct .mini-ui--code em {
  color: var(--exstruct-cyan);
}

.exstruct .mini-ui__bar:nth-child(1) {
  background: linear-gradient(to top, var(--exstruct-amethyst), var(--exstruct-cyan));
}

.exstruct .mini-ui__bar:nth-child(2) {
  background: linear-gradient(to top, #5b21b6, var(--exstruct-amethyst));
}

.exstruct .mini-ui__bar:nth-child(3) {
  background: linear-gradient(to top, #00cc7d, var(--exstruct-green));
}

.exstruct .mini-ui__bar:nth-child(4) {
  background: linear-gradient(to top, #cc0044, var(--exstruct-red));
}

.exstruct .orbit-sat__body {
  background: rgba(18, 16, 31, 0.9);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 242, 255, 0.12);
}

.exstruct .orbit-sat__body svg {
  color: var(--exstruct-cyan);
}

.exstruct .orbit-sat--sm .orbit-sat__body {
  background: rgba(11, 15, 26, 0.85);
  border-color: rgba(124, 58, 237, 0.35);
}

.exstruct .orbit-sat--sm .orbit-sat__body svg {
  color: var(--exstruct-amethyst);
}

.exstruct .orbit-sat:hover .orbit-sat__body {
  background: var(--exstruct-cyan);
  box-shadow: 0 8px 24px rgba(0, 242, 255, 0.35);
}

.exstruct .orbit-sat:hover .orbit-sat__body svg {
  color: var(--exstruct-bg);
}

.exstruct .orbit-pulse {
  background: var(--exstruct-green);
  box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.45);
  animation: exstruct-pulse 3s ease-out infinite;
}

@keyframes exstruct-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.45); }
  70%  { box-shadow: 0 0 0 20px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

/* ---- Code Red Section ---- */

.code-red {
  --code-red-primary: #B3263A;
  --code-red-dark: #972132;
  --code-red-light: #FCECEF;
  --code-red-border: #F0DDE1;
  --code-red-gradient: linear-gradient(135deg, #B3263A 0%, #D43B52 50%, #972132 100%);
  --code-red-glow: rgba(179, 38, 58, 0.25);
  --code-red-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --code-red-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--code-red-light) 0%, #FFF5F6 50%, var(--code-red-light) 100%);
  color: var(--code-red-dark);
  overflow: hidden;
}

.code-red::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 15% 50%, rgba(179, 38, 58, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 70%, rgba(151, 33, 50, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.code-red__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.code-red__visual {
  order: -1;
}

.code-red__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--code-red-primary);
  margin-bottom: var(--space-md);
}

.code-red__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--code-red-dark);
  margin-bottom: var(--space-lg);
}

.code-red__desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

.code-red__highlights {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.code-red__highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--code-red-dark);
}

.code-red__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--code-red-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(179, 38, 58, 0.35);
}

.btn--code-red {
  background: linear-gradient(135deg, var(--code-red-primary), var(--code-red-dark));
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(179, 38, 58, 0.25);
}

.btn--code-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(179, 38, 58, 0.35);
}

/* Code Red hero graphic */
.code-red .hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  z-index: 1;
  animation: code-red-fade-slide-up 1s var(--code-red-ease-out) 0.2s both;
}

.code-red .hero-visual {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 1;
  transition: transform 0.1s linear;
  will-change: transform;
}

.code-red .hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--code-red-border);
  animation: code-red-spin-slow 30s linear infinite;
}

.code-red .hero-ring:nth-child(2) {
  inset: 12%;
  border-style: solid;
  border-color: var(--code-red-light);
  animation-direction: reverse;
  animation-duration: 20s;
}

.code-red .hero-drop {
  position: absolute;
  inset: 22%;
  background: var(--code-red-gradient);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px var(--code-red-glow);
  animation: code-red-float-drop 5s var(--code-red-ease-smooth) infinite;
}

.code-red .hero-drop .blood-type {
  transform: rotate(45deg);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  transition: opacity 0.3s var(--code-red-ease-out), transform 0.3s var(--code-red-ease-out);
}

@keyframes code-red-fade-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes code-red-spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes code-red-float-drop {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-12px); }
}

/* ---- Elixer Series Section ---- */

.elixir-series {
  --elixir-primary: #F6D776;
  --elixir-secondary: #FFF9EC;
  --elixir-accent: #2F4858;
  --elixir-text: #232323;
  --elixir-border: #E8E3D8;

  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--elixir-secondary) 0%, #FFFCF5 50%, var(--elixir-secondary) 100%);
  color: var(--elixir-text);
  overflow: hidden;
}

.elixir-series::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 75% 45%, rgba(246, 215, 118, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(47, 72, 88, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.elixir-series__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.elixir-series__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--elixir-accent);
  margin-bottom: var(--space-md);
}

.elixir-series__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--elixir-accent);
  margin-bottom: var(--space-lg);
}

.elixir-series__desc {
  font-size: 1.05rem;
  color: var(--elixir-text);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
  opacity: 0.85;
}

.elixir-series__highlights {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.elixir-series__highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--elixir-text);
  opacity: 0.9;
}

.elixir-series__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--elixir-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(246, 215, 118, 0.5);
}

.btn--elixir {
  background: var(--elixir-primary);
  color: var(--elixir-accent);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(246, 215, 118, 0.35);
  border: 1px solid rgba(47, 72, 88, 0.08);
}

.btn--elixir:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 215, 118, 0.45);
  background: #f9e08a;
}

/* Elixer Series visual — flask constellation */
.elixir-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  width: 100%;
}

.elixir-visual__aura {
  position: absolute;
  width: min(420px, 95vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(246, 215, 118, 0.45) 60deg,
    transparent 120deg,
    rgba(47, 72, 88, 0.15) 180deg,
    transparent 240deg,
    rgba(246, 215, 118, 0.35) 300deg,
    transparent 360deg
  );
  filter: blur(28px);
  animation: elixir-aura-spin 12s linear infinite;
  pointer-events: none;
}

.elixir-visual__halo {
  position: absolute;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(246, 215, 118, 0.45);
  animation: elixir-halo-spin 24s linear infinite reverse;
  pointer-events: none;
}

.elixir-visual__halo::after {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(47, 72, 88, 0.12);
  animation: elixir-halo-spin 18s linear infinite;
}

.elixir-visual__stage {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 1;
  transition: transform 0.1s linear;
  will-change: transform;
  z-index: 1;
}

.elixir-visual__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.elixir-visual__link {
  stroke: url(#elixirLinkGrad);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease), stroke-width 0.5s var(--ease);
}

.elixir-visual__link--active {
  opacity: 1;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(246, 215, 118, 0.6));
}

.elixir-visual__spark {
  opacity: 0.9;
}

.elixir-flask {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  animation: elixir-flask-float 4s ease-in-out infinite;
}

.elixir-flask__glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  background: radial-gradient(circle, rgba(246, 215, 118, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  animation: elixir-flask-glow 3s ease-in-out infinite;
  pointer-events: none;
}

.elixir-flask__neck {
  width: 32px;
  height: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), var(--elixir-secondary));
  border: 2px solid var(--elixir-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 -4px 8px rgba(246, 215, 118, 0.2);
}

.elixir-flask__body {
  position: relative;
  width: 118px;
  height: 138px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--elixir-border);
  border-radius: 10px 10px 48px 48px;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(47, 72, 88, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 40px rgba(246, 215, 118, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elixir-flask__liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74%;
  background: linear-gradient(
    180deg,
    #fff0a8 0%,
    var(--elixir-primary) 35%,
    #e8c84e 70%,
    #d4b84a 100%
  );
  background-size: 100% 200%;
  border-radius: 0 0 46px 46px;
  animation: elixir-liquid-shimmer 3s ease-in-out infinite, elixir-liquid-sway 4s ease-in-out infinite;
  overflow: hidden;
}

.elixir-flask__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: elixir-bubble-rise 3s ease-in infinite;
}

.elixir-flask__bubble:nth-child(1) { width: 8px; height: 8px; left: 20%; bottom: 10%; animation-delay: 0s; }
.elixir-flask__bubble:nth-child(2) { width: 5px; height: 5px; left: 55%; bottom: 5%; animation-delay: 0.8s; }
.elixir-flask__bubble:nth-child(3) { width: 6px; height: 6px; left: 35%; bottom: 15%; animation-delay: 1.6s; }
.elixir-flask__bubble:nth-child(4) { width: 4px; height: 4px; left: 70%; bottom: 8%; animation-delay: 2.4s; }

.elixir-flask__liquid::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8%;
  right: 8%;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(1px);
}

.elixir-flask__shine {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 12px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), transparent);
  border-radius: 10px;
  z-index: 1;
}

.elixir-flask__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--elixir-accent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.elixir-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--elixir-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(47, 72, 88, 0.1);
  z-index: 3;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.elixir-node__ring {
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-md) + 4px);
  border: 2px solid transparent;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.elixir-node--active .elixir-node__ring {
  opacity: 1;
  border-color: var(--elixir-primary);
  animation: elixir-node-ring-pulse 2s ease-out infinite;
}

.elixir-node--active {
  border-color: var(--elixir-primary);
  box-shadow:
    0 12px 36px rgba(246, 215, 118, 0.4),
    0 0 0 1px rgba(246, 215, 118, 0.3);
  transform: scale(1.08);
  z-index: 5;
}

.elixir-node--active .elixir-node__icon {
  background: var(--elixir-primary);
  border-color: var(--elixir-primary);
  color: var(--elixir-accent);
  box-shadow: 0 4px 16px rgba(246, 215, 118, 0.5);
}

.elixir-node--tl { top: 2%; left: 0; animation: elixir-node-float 4.5s ease-in-out infinite; }
.elixir-node--tr { top: 2%; right: 0; animation: elixir-node-float 4.5s ease-in-out infinite 0.7s; }
.elixir-node--bl { bottom: 2%; left: 0; animation: elixir-node-float 4.5s ease-in-out infinite 1.4s; }
.elixir-node--br { bottom: 2%; right: 0; animation: elixir-node-float 4.5s ease-in-out infinite 2.1s; }

.elixir-node--active {
  animation-play-state: paused;
}

.elixir-node:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.06);
  border-color: var(--elixir-primary);
  box-shadow: 0 14px 36px rgba(246, 215, 118, 0.35);
}

.elixir-node__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elixir-secondary);
  border: 1.5px solid var(--elixir-border);
  border-radius: 12px;
  color: var(--elixir-accent);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

.elixir-node__icon svg {
  width: 22px;
  height: 22px;
}

.elixir-node__name {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--elixir-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@keyframes elixir-aura-spin {
  to { transform: rotate(360deg); }
}

@keyframes elixir-halo-spin {
  to { transform: rotate(360deg); }
}

@keyframes elixir-flask-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes elixir-liquid-shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes elixir-bubble-rise {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-80px) scale(0.3); opacity: 0; }
}

@keyframes elixir-node-ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(246, 215, 118, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(246, 215, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 215, 118, 0); }
}

@keyframes elixir-link-flow {
  to { stroke-dashoffset: -140; }
}

@keyframes elixir-flask-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes elixir-liquid-sway {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(-3deg); }
  75% { transform: skewX(3deg); }
}

@keyframes elixir-node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Elixer Series subpage */
.elixir-page {
  --elixir-primary: #F6D776;
  --elixir-secondary: #FFF9EC;
  --elixir-accent: #2F4858;
  --elixir-text: #232323;
  --elixir-border: #E8E3D8;
  --elixir-gold-deep: #B8923A;
  --elixir-gold-rich: #C9A227;
  --elixir-teal-mid: #4A6572;
  --elixir-teal-deep: #1E3A44;

  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-4xl);
  min-height: 60vh;
  background: linear-gradient(160deg, var(--elixir-secondary) 0%, #FFFCF5 45%, var(--elixir-secondary) 100%);
  overflow: hidden;
}

.elixir-page__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 80% 15%, rgba(246, 215, 118, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 10% 70%, rgba(47, 72, 88, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.elixir-page__header {
  position: relative;
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.elixir-page__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
  transition: color var(--duration) var(--ease);
}

.elixir-page__back:hover {
  color: var(--elixir-accent);
}

.elixir-page__back svg {
  width: 18px;
  height: 18px;
}

.elixir-page__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--elixir-accent);
  margin-bottom: var(--space-sm);
}

.elixir-page__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--elixir-accent);
  margin-bottom: var(--space-md);
}

.elixir-page__intro {
  font-size: 1.05rem;
  color: var(--elixir-text);
  line-height: 1.7;
  opacity: 0.85;
}

.elixir-page__nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--elixir-border);
  border-radius: 999px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.elixir-page__nav-link {
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--elixir-accent);
  border-radius: 999px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.elixir-page__nav-link:hover {
  background: var(--elixir-primary);
  box-shadow: 0 2px 10px rgba(246, 215, 118, 0.4);
}

.elixir-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.elixir-spotlight {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid var(--elixir-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 28px rgba(47, 72, 88, 0.06);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.elixir-spotlight:hover {
  border-color: rgba(246, 215, 118, 0.8);
  box-shadow: 0 12px 40px rgba(47, 72, 88, 0.1);
}

.elixir-spotlight--reverse {
  grid-template-columns: 1fr minmax(200px, 280px);
}

.elixir-spotlight--reverse .elixir-spotlight__visual {
  order: 2;
}

.elixir-spotlight--reverse .elixir-spotlight__content {
  order: 1;
}

.elixir-spotlight--featured {
  grid-template-columns: minmax(200px, 260px) 1fr;
  padding: var(--space-3xl) var(--space-2xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 249, 236, 0.95) 100%);
  border-color: rgba(246, 215, 118, 0.5);
}

.elixir-spotlight--featured.elixir-spotlight--reverse {
  grid-template-columns: 1fr minmax(200px, 260px);
}

.elixir-spotlight__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.elixir-spotlight__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
  user-select: none;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#qrelixir .elixir-spotlight__num {
  background-image: linear-gradient(135deg, var(--elixir-accent) 0%, var(--elixir-teal-mid) 100%);
}

#linkelixir .elixir-spotlight__num {
  background-image: linear-gradient(135deg, var(--elixir-gold-rich) 0%, var(--elixir-primary) 100%);
}

#docelixir .elixir-spotlight__num {
  background-image: linear-gradient(135deg, var(--elixir-teal-deep) 0%, var(--elixir-accent) 100%);
}

#neuralelixir .elixir-spotlight__num {
  background-image: linear-gradient(135deg, var(--elixir-accent) 0%, var(--elixir-gold-deep) 100%);
}

.elixir-spotlight__icon-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), var(--elixir-secondary));
  border: 2px solid var(--elixir-border);
  box-shadow:
    0 0 0 8px rgba(246, 215, 118, 0.15),
    0 8px 32px rgba(47, 72, 88, 0.08);
}

.elixir-spotlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--elixir-primary);
  border-radius: var(--radius-md);
  color: var(--elixir-accent);
  box-shadow: 0 4px 16px rgba(246, 215, 118, 0.45);
}

.elixir-spotlight__icon svg {
  width: 36px;
  height: 36px;
}

.elixir-spotlight__content {
  min-width: 0;
}

.elixir-spotlight__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--elixir-accent);
  background: rgba(246, 215, 118, 0.35);
  border: 1px solid rgba(246, 215, 118, 0.6);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}

.elixir-spotlight__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--elixir-accent);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.elixir-spotlight__desc {
  font-size: 1rem;
  color: var(--elixir-text);
  line-height: 1.8;
  opacity: 0.9;
}

.elixir-spotlight__desc + .elixir-spotlight__desc {
  margin-top: var(--space-md);
}

/* ---- Section Headers ---- */

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header--light .section-header__title {
  color: var(--white);
}

.section-header--light .section-header__desc {
  color: rgba(255, 255, 255, 0.7);
}

.section-header--light .section-header__eyebrow {
  color: var(--accent-200);
}

/* ---- Categories ---- */

.categories {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: var(--gray-100);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-900), var(--accent-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.cat-card:hover {
  border-color: var(--accent-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-card__hex {
  width: 48px;
  height: 48px;
  background: var(--accent-50);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background var(--duration) var(--ease);
}

.cat-card__hex svg {
  width: 22px;
  height: 22px;
  color: var(--accent-900);
}

.cat-card:hover .cat-card__hex {
  background: var(--accent-400);
}

.cat-card:hover .cat-card__hex svg {
  color: var(--white);
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--black);
}

.cat-card__desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.cat-card__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-600);
  letter-spacing: 0.02em;
}

/* ---- Tools Section ---- */

.tools {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--accent-900) 0%, #3D2B63 100%);
}

.tools__filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--duration) var(--ease);
}

.filter-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--white);
  color: var(--accent-900);
  border-color: var(--white);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.tool-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.tool-card.hidden {
  display: none;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(167, 153, 192, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-200);
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.tool-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  flex: 1;
}

.tool-card__link {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.tool-card__link svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.tool-card__link:hover {
  background: var(--white);
}

.tool-card__link:hover svg {
  color: var(--accent-900);
}

/* ---- About ---- */

.about {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: var(--white);
  border-top: 1px solid var(--hairline);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--space-sm);
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.about__desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.about__desc:last-of-type {
  margin-bottom: 0;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about__highlight {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.about__highlight:hover {
  border-color: var(--accent-200);
  background: var(--accent-50);
}

.about__highlight-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--accent-900);
}

.about__highlight-icon svg {
  width: 22px;
  height: 22px;
}

.about__highlight-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-xs);
}

.about__highlight-desc {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Features ---- */

.features {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  background: var(--gray-100);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature {
  display: block;
  text-align: left;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease-out);
}

.feature:hover {
  border-color: var(--accent-200);
  transform: translateY(-2px);
  background: var(--white);
}

.feature__hex {
  width: 40px;
  height: 40px;
  margin: 0 0 var(--space-lg);
  background: transparent;
  clip-path: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.feature__hex svg {
  width: 18px;
  height: 18px;
  color: var(--accent-900);
}

.feature:hover .feature__hex {
  background: var(--accent-900);
  border-color: var(--accent-900);
}

.feature:hover .feature__hex svg {
  color: var(--white);
}

.feature__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--black);
  letter-spacing: -0.01em;
}

.feature__desc {
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---- CTA ---- */

.cta {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.cta__inner {
  position: relative;
  background: linear-gradient(135deg, var(--accent-50) 0%, var(--white) 50%, var(--accent-50) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--accent-200);
}

.cta__hex-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%23513B7B' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-900);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta__desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--black);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-lg);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-600), transparent);
  opacity: 0.45;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 90vw);
  height: 200px;
  background: radial-gradient(ellipse, rgba(123, 95, 163, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.footer__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.6fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.footer__main--compact {
  grid-template-columns: minmax(220px, 1.2fr) 1fr;
}

.footer__brand-block {
  max-width: 320px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  transition: opacity var(--duration) var(--ease);
}

.footer__brand:hover {
  opacity: 0.85;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-500);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl) var(--space-2xl);
}

.footer__main--compact .footer__nav {
  grid-template-columns: repeat(2, 1fr);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--space-md);
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__col-list a {
  display: inline-block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease-out);
}

.footer__col-list a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: 0.78rem;
  color: var(--gray-500);
  transition: color var(--duration) var(--ease);
}

.footer__legal a:hover {
  color: var(--accent-400);
}

.footer__legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-500);
  opacity: 0.35;
  flex-shrink: 0;
}

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero-slider__viewport {
    max-width: 580px;
    margin: 0 auto;
  }

  .exstruct__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .exstruct__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .exstruct__highlights {
    align-items: center;
  }

  .exstruct__highlights li {
    text-align: left;
    max-width: 400px;
  }

  .exstruct .hero__visual {
    order: -1;
  }

  .code-red__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .code-red__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .code-red__highlights {
    align-items: center;
  }

  .code-red__highlights li {
    text-align: left;
    max-width: 400px;
  }

  .code-red__visual {
    order: -1;
  }

  .code-red .hero-graphic {
    min-height: 280px;
  }

  .elixir-series__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .elixir-series__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .elixir-series__highlights {
    align-items: center;
  }

  .elixir-series__highlights li {
    text-align: left;
    max-width: 400px;
  }

  .elixir-series .hero__visual {
    order: -1;
  }

  .elixir-spotlight,
  .elixir-spotlight--reverse,
  .elixir-spotlight--featured,
  .elixir-spotlight--featured.elixir-spotlight--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .elixir-spotlight--reverse .elixir-spotlight__visual,
  .elixir-spotlight--reverse .elixir-spotlight__content {
    order: unset;
  }

  .elixir-visual {
    min-height: 340px;
  }

  .elixir-visual__aura,
  .elixir-visual__halo {
    width: min(320px, 88vw);
  }

  .elixir-node__name {
    font-size: 0.65rem;
  }

  .orbit-stage {
    width: 320px;
    height: 320px;
  }

  .orbit-sat {
    transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle)));
  }

  .orbit-ring--inner .orbit-sat {
    transform: rotate(var(--angle)) translateX(88px) rotate(calc(-1 * var(--angle)));
  }

  .orbit-hub {
    width: 160px;
    height: 130px;
  }

  .orbit-hub__card--front {
    width: 150px;
    height: 100px;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__main,
  .footer__main--compact {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand-block {
    max-width: none;
  }

  .footer__nav,
  .footer__main--compact .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.2rem;
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }

  .tools__grid {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__nav,
  .footer__main--compact .footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--space-xl));
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__brand {
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__mark {
    width: 44px;
    height: 44px;
  }

  .hero-slider__viewport {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-marquee__group img {
    width: 180px;
    height: 112px;
  }

  .exstruct {
    padding: var(--space-3xl) 0;
  }

  .code-red {
    padding: var(--space-3xl) 0;
  }

  .elixir-series {
    padding: var(--space-3xl) 0;
  }

  .elixir-spotlight,
  .elixir-spotlight--reverse,
  .elixir-spotlight--featured,
  .elixir-spotlight--featured.elixir-spotlight--reverse {
    grid-template-columns: 1fr;
    padding: var(--space-xl);
    gap: var(--space-xl);
  }

  .elixir-spotlight--reverse .elixir-spotlight__visual,
  .elixir-spotlight--reverse .elixir-spotlight__content {
    order: unset;
  }

  .elixir-spotlight__visual {
    min-height: 160px;
  }

  .elixir-spotlight__icon-ring {
    width: 120px;
    height: 120px;
  }

  .elixir-page__nav {
    border-radius: var(--radius-lg);
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark,
  .hero__brand,
  .hero__tagline,
  .hero__actions,
  .hero__showcase,
  .hero__glow {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-marquee__track {
    animation: none !important;
  }

  .hero-slide {
    transition: none;
  }

  .orbit-ring,
  .orbit-stage__paths,
  .orbit-hub__card,
  .orbit-stage__glow,
  .orbit-pulse,
  .mini-ui__bar {
    animation: none !important;
  }

  .orbit-stage {
    transition: none;
  }

  .code-red .hero-graphic,
  .code-red .hero-ring,
  .code-red .hero-drop {
    animation: none !important;
  }

  .elixir-flask,
  .elixir-flask__liquid,
  .elixir-flask__glow,
  .elixir-flask__bubble,
  .elixir-node,
  .elixir-visual__link,
  .elixir-visual__aura,
  .elixir-visual__halo,
  .elixir-node__ring {
    animation: none !important;
  }

  .elixir-visual__spark {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 2rem 1rem 0.9rem;
  }

  .hero-marquee__group img {
    width: 150px;
    height: 94px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer__nav,
  .footer__main--compact .footer__nav {
    grid-template-columns: 1fr;
  }
}
