/* ============================================================
   XERES LANDING PAGE — Design System & Styles
   
   Colors:
     Void:         #000000
     Bone:         #ffffff
     Ash:          #bdbdbd
     Smoke:        #9a9a9a
     Plum Voltage: #8052ff
     Amber Spark:  #ffb829
     Lichen:       #15846e

   Typography: Space Grotesk (Display) & Inter (Body)
   Weights: 200, 400, 600, 700
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@200;400;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --color-void: #000000;
  --color-bone: #ffffff;
  --color-ash: #d4d4d8;
  /* Brighter, premium neutral gray */
  --color-smoke: #a1a1aa;
  /* Clean secondary gray */
  --color-plum-voltage: #8052ff;
  --color-amber-spark: #ffb829;
  --color-lichen: #15846e;

  --font-primary: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);

  --fw-extralight: 200;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  --page-max-width: 1200px;
  --section-gap: clamp(80px, 8vw, 130px);
  /* Responsive fluid spacing */
  --card-padding: 24px;
  --element-gap: 15px;
  --radius: 24px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  background-color: var(--color-void);
  color: var(--color-bone);
  line-height: 1.5;
  letter-spacing: 0.025em;
  overflow-x: hidden;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

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

em {
  font-style: italic;
}

/* ── Particle Canvas ── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  max-width: calc(var(--page-max-width) - 32px);
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Explicit properties only — transition:all forces the browser to watch every animatable property */
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.header--scrolled {
  background-color: rgba(0, 0, 0, 0.75);
  border-color: rgba(128, 82, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(4px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.header__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.header__logo-text {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.021em;
  color: var(--color-bone);
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.015em;
  color: var(--color-smoke);
  transition: color 0.25s ease;
}

.nav__link:hover {
  color: var(--color-bone);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 14px 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-plum-voltage);
  color: #ffffff;
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
  justify-content: center;
  z-index: 101;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-bone);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
  /* Offset for fixed header when anchor-scrolling */
  scroll-margin-top: 80px;
}

/* ── HERO ── */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: clamp(140px, 12vw, 180px);
  padding-bottom: clamp(60px, 6vw, 100px);
}

.hero__content {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero__text {
  max-width: 580px;
}

.eyebrow {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-spark);
  margin-bottom: 20px;
}

.hero__headline {
  margin-bottom: 32px;
  font-family: var(--font-display);
}

.hero__headline-line {
  display: inline-block;
  font-size: clamp(20px, 3.5vw, 40px);
  font-weight: var(--fw-extralight);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--color-bone) 30%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__headline-line--bold {
  font-weight: var(--fw-semibold);
  background: linear-gradient(135deg, var(--color-bone) 40%, var(--color-plum-voltage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__body {
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--color-smoke);
  max-width: 500px;
  margin-bottom: 40px;
}

/* ── Introduction ── */
.section--intro {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-bone) 45%, var(--color-smoke) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.section__title--large {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: var(--fw-semibold);
  line-height: 1.0;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-bone) 30%, var(--color-smoke) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.section__body {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--color-smoke);
  max-width: 65ch;
  margin: 0 auto;
}

.section__body--centered {
  margin: 0 auto 48px;
  text-align: center;
}

/* ── Manifesto ── */
.section--manifesto {
  padding-top: var(--section-gap);
  padding-bottom: 0; /* wrapper handles vertical space on desktop */
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.manifesto__block {
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto__block:hover {
  border-color: rgba(128, 82, 255, 0.3);
  /* plum voltage accent */
  background: rgba(128, 82, 255, 0.03);
  transform: translateY(-6px);
}

.manifesto__text {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: var(--fw-regular);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-bone);
}

/* ── Split sections ── */
.section--spark,
.section--better {
  padding-top: calc(var(--section-gap) * 1.5);
  padding-bottom: calc(var(--section-gap) * 1.5);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.section__split {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.section__split--reverse {
  flex-direction: row-reverse;
}

.section__split-text {
  flex: 1;
  min-width: 0;
}

.section__split-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.section__body-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Icon Mark */
.icon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  position: relative;
}

.icon-mark svg {
  animation: icon-rotate 20s linear infinite;
}

@keyframes icon-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Team Section ── */
.section--team {
  padding-top: calc(var(--section-gap) * 1.5);
  padding-bottom: var(--section-gap);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
  margin-bottom: 60px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card__image-wrapper {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card__image {
  transform: scale(1.04);
}

.team-card:hover .team-card__image-wrapper {
  border-color: rgba(128, 82, 255, 0.4);
  /* Plum Voltage glow border */
  box-shadow: 0 12px 36px rgba(128, 82, 255, 0.1);
}

.team-card__role {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-plum-voltage);
  margin-top: 4px;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-bone);
}

/* Build With Us */
.build-with-us {
  margin-top: 80px;
  max-width: 600px;
}

.build-with-us__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.text-link {
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--color-plum-voltage);
}

/* ── Investors ── */
.section--investors {
  padding-top: calc(var(--section-gap) * 1.5);
  padding-bottom: var(--section-gap);
  text-align: center;
}

.investors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-top: 48px;
  text-align: left;
}

.investor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}

.investor-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.investor-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.investor-card__name {
  display: block;
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.investor-card__subtitle {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: var(--color-smoke);
  margin-top: 2px;
}

/* ── Footer CTA ── */
.section--footer-cta {
  padding-top: calc(var(--section-gap) * 1.5);
  padding-bottom: calc(var(--section-gap) * 1.5);
  position: relative;
  overflow: hidden;
}

.footer-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-bone) 30%, var(--color-smoke) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer__logo-text {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.021em;
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-smoke);
  letter-spacing: 0.025em;
}

.footer__copyright span {
  display: inline;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-smoke);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-bone);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  color: var(--color-smoke);
  transition: color 0.2s ease;
}

.footer__social-link:hover {
  color: var(--color-bone);
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .manifesto__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section__split,
  .section__split--reverse {
    flex-direction: column;
    gap: 48px;
  }

  .section__split-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .nav__link {
    font-size: 15px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    color: var(--color-smoke);
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.25s ease, padding-left 0.25s ease;
  }

  .nav__list li:last-child .nav__link {
    border-bottom: none;
  }

  .nav__link:hover {
    color: var(--color-plum-voltage);
    padding-left: 6px;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .hero__headline-line {
    font-size: clamp(18px, 4.5vw, 32px);
  }

  .section__title--large {
    font-size: clamp(40px, 12vw, 80px);
  }
}

@media (max-width: 480px) {
  .header__inner {
    padding: 16px 20px;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__headline-line {
    font-size: clamp(16px, 5.5vw, 24px);
  }
}

/* ============================================================
   PREMIUM INTERACTIVE & 3D STYLES (Added by Antigravity)
   ============================================================ */

/* ── 3D Tilt & Spotlight ── */
.tilt-container {
  perspective: 1200px;
}

.tilt-element {
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle 180px at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(128, 82, 255, 0.15), transparent 85%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* ── Hero Split Layout for 3D visual ── */
@media (min-width: 1025px) {
  .section--hero {
    display: flex;
    align-items: center;
    gap: 60px;
  }

  .hero__content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }

  .hero__visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 520px;
  }
}

@media (max-width: 1024px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }

  .hero__text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .hero__visual-container {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-top: 20px;
  }
}

/* ── Hero 3D Device Mockup ── */
.hero-mockup {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.5;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  transform-style: preserve-3d;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.hero-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hero-mockup__dot:nth-child(1) {
  background: #ff5f56;
}

.hero-mockup__dot:nth-child(2) {
  background: #ffbd2e;
}

.hero-mockup__dot:nth-child(3) {
  background: #27c93f;
}

.hero-mockup__search-bar {
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--color-smoke);
  font-size: 13px;
  gap: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-mockup__search-bar svg {
  color: var(--color-smoke);
  flex-shrink: 0;
}

.hero-mockup__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-mockup__line {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.hero-mockup__line--short {
  width: 65%;
}

.hero-mockup__line--medium {
  width: 85%;
}

.hero-mockup__floater {
  position: absolute;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-bone);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateZ(50px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hero-mockup__floater:hover {
  transform: translateZ(70px) scale(1.05);
}

.hero-mockup__floater--slack {
  top: -24px;
  left: -32px;
  border-color: rgba(128, 82, 255, 0.3);
  box-shadow: 0 20px 40px rgba(128, 82, 255, 0.1);
}

.hero-mockup__floater--drive {
  bottom: -20px;
  right: -24px;
  border-color: rgba(21, 132, 110, 0.3);
  box-shadow: 0 20px 40px rgba(21, 132, 110, 0.1);
}

.hero-mockup__floater--notion {
  top: 70px;
  right: -36px;
  border-color: rgba(255, 184, 41, 0.3);
  box-shadow: 0 20px 40px rgba(255, 184, 41, 0.1);
}

.hero-mockup__floater-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 3D Manifesto Scroll-driven Stack ── */
.manifesto-stack-wrapper {
  position: relative;
  width: 100%;
  margin-top: 60px;
}

@media (min-width: 1025px) {
  /* Tall wrapper gives the sticky inner room to animate while scrolling */
  .manifesto-stack-wrapper {
    min-height: 280vh;
  }

  /* Sticky container pins in viewport while scroll passes through the wrapper */
  .manifesto-stack-container {
    position: sticky;
    top: 120px;
    height: 680px;
    width: 100%;
    perspective: 1400px;
    overflow: visible;
  }

  .manifesto-3d-card {
    position: absolute;
    /* Cards start stacked at centre; JS offsets them via transform */
    top: 50%;
    left: 50%;
    width: 420px;
    min-height: 240px;
    padding: 36px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(12px);  /* Reduced: 20px → 12px for compositor perf */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    /* JS drives transform directly; only opacity and border accent need CSS transition */
    transition:
      opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.3s ease,
      box-shadow 0.3s ease;
    /* Start hidden at centre — JS will spread them as progress increases */
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform, opacity;
  }

  .manifesto-3d-card:hover {
    border-color: rgba(128, 82, 255, 0.45);
    box-shadow: 0 30px 80px rgba(128, 82, 255, 0.2);
  }

  .manifesto-3d-card__number {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: rgba(128, 82, 255, 0.22);
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.35s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left center;
  }

  .manifesto-3d-card:hover .manifesto-3d-card__number {
    color: var(--color-plum-voltage);
    transform: translateZ(30px) scale(1.05);
  }

  .manifesto-3d-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: var(--fw-semibold);
    color: var(--color-bone);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-bone) 70%, var(--color-smoke) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .manifesto-3d-card:hover .manifesto-3d-card__title {
    transform: translateZ(15px);
  }

  .manifesto-3d-card__text {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-bone);
  }
}

@media (max-width: 1024px) {
  .manifesto-stack-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manifesto-3d-card {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
  }

  .manifesto-3d-card__number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-plum-voltage);
    margin-bottom: 12px;
  }

  .manifesto-3d-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--color-bone);
    margin-bottom: 8px;
  }

  .manifesto-3d-card__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-bone);
  }
}

/* ── Interactive Pipeline Playground ── */
:root {
  --color-plum-voltage: #8b5cf6;
  --color-bg-dark: #0f172a;
  --color-border: #334155;
  --color-text-muted: #94a3b8;
}

.section--playground {
  padding-top: calc(var(--section-gap) * 0.8);
  padding-bottom: calc(var(--section-gap) * 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.playground-container {
  width: 100%;
  max-width: 860px;
  background: radial-gradient(100% 100% at 50% 0%, rgba(128, 82, 255, 0.06) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.playground-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: var(--color-plum-voltage);
  opacity: 0.12;
  filter: blur(90px);
  pointer-events: none;
}

.playground-header {
  text-align: center;
  margin-bottom: 32px;
}

.playground-header__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-plum-voltage);
  margin-bottom: 10px;
  opacity: 0.85;
}

.playground-header h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-bone) 50%, var(--color-smoke) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.playground-header p {
  color: var(--color-smoke);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Progress bar */
.playground-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}

.playground-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-plum-voltage), #c084fc);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.7);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.playground-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.playground-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--color-smoke);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.playground-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-bone);
  transform: translateY(-2px);
}

.playground-chip.active {
  background: rgba(128, 82, 255, 0.1);
  border-color: rgba(128, 82, 255, 0.3);
  color: var(--color-bone);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(128, 82, 255, 0.15);
}

/* Layout Box Configuration */
.playground-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  min-height: 280px;
}

/* Node Positioning Rules */
#node-scope   { grid-column: 1; grid-row: 1; justify-self: start; }
#node-context { grid-column: 1; grid-row: 2; justify-self: start; }
#node-xeres   { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; }
#node-prompt  { grid-column: 3; grid-row: 1; justify-self: end; }
#node-eval    { grid-column: 3; grid-row: 2; justify-self: end; }

/* Interactive Node Elements */
.playground-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #1e293b;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  z-index: 2;
}

.playground-node svg {
  transition: transform 0.3s ease;
}

/* Active Node State Graphic Enhancements */
.playground-node.active, .playground-node:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--color-plum-voltage);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
}

.playground-node.active svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.7));
}

/* Pulse Animation Ring For Trigger Transitions */
.node-pulse-ring {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--color-plum-voltage);
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
}

.playground-node.animating .node-pulse-ring {
  animation: nodePulseEffect 0.6s ease-out;
}

@keyframes nodePulseEffect {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* The Orchestration Central Core Node Styling */
.playground-node--center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border: 2px solid var(--color-plum-voltage);
  color: #c084fc;
}


.playground-node__label {
  position: absolute;
  bottom: -24px;
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--color-text-muted);
}

.playground-node__label-core {
  position: absolute;
  bottom: -28px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
  color: #c084fc;
}

/* Connected Overlay Lines SVG System */
.playground-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.playground-connection-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 2;
  transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.playground-connection-line.active-path {
  stroke: var(--color-plum-voltage);
  stroke-dasharray: 8 4;
  /* filter:drop-shadow removed — SVG filter on animated elements forces recomposite every frame */
  animation: flowParticle 20s linear infinite;
}

@keyframes flowParticle {
  to { stroke-dashoffset: -1000; }
}

/* Console Logs & Live Metrics Layout */
.playground-telemetry {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.tel-metric {
  flex: 1;
  background: #1e293b;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tel-label {
  display: block;
  font-size: 9px;
  font-family: monospace;
  color: var(--color-text-muted);
}

.tel-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
  color: #f1f5f9;
  margin-top: 2px;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.computing {
  background: #f59e0b;
  animation: pulseGrad 1s ease infinite alternate;
}

@keyframes pulseGrad {
  from { opacity: 0.4; } to { opacity: 1; }
}

/* Result panel */
.playground-result {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 20px;
}

.playground-result__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
}

.playground-result__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-plum-voltage);
  display: flex;
  align-items: center;
  gap: 8px;
}

.playground-result__source {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-smoke);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.playground-result__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-bone);
  margin-bottom: 16px;
}

/* Terminal-style simulation output */
.playground-terminal {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #a3e6c8;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(163, 230, 200, 0.1);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  white-space: pre-wrap;
  overflow: hidden;
  min-height: 120px;
  position: relative;
  /* Subtle scanline overlay */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

.playground-terminal::after {
  content: '▌';
  display: inline-block;
  color: #a3e6c8;
  animation: termCursor 1s step-end infinite;
  opacity: 0;
}

@keyframes termCursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Responsive adjustments for Playground node visuals */
@media (max-width: 768px) {
  .playground-container {
    padding: 30px 20px;
  }

  .playground-flow {
    padding: 0;
    gap: 20px;
  }

  .playground-node {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .playground-node--center {
    width: 64px;
    height: 64px;
  }

  .playground-node svg {
    width: 18px;
    height: 18px;
  }

  .playground-node--center svg {
    width: 28px;
    height: 28px;
  }

  .playground-node__label, .playground-node__label-core {
    display: none; /* Hide node labels on mobile to save space */
  }
}

/* ── Interactive Connectors animation for Spark Section ── */
.spark-visual-container {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-center-node {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(135deg, rgba(21, 132, 110, 0.25) 0%, rgba(21, 132, 110, 0.02) 100%);
  border: 1.5px solid var(--color-lichen);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(21, 132, 110, 0.2);
  z-index: 2;
  position: relative;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.spark-center-node.active {
  border-color: var(--color-plum-voltage);
  box-shadow: 0 0 45px rgba(128, 82, 255, 0.45);
  transform: scale(1.05);
}

.spark-center-node svg {
  color: var(--color-lichen);
  animation: pulse-slow 4s infinite ease-in-out alternate;
}

@keyframes pulse-slow {
  /* filter:drop-shadow removed from keyframe — animating filter forces recomposite on every frame.
     Using opacity on a ::after pseudo-element glow achieves the same visual via compositor. */
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.spark-orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  animation: float-node 6s infinite ease-in-out;
  cursor: pointer;
  transition: background-color 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.spark-orbit-node:hover {
  transform: scale(1.15) translateY(-5px);
  background: #1e1b4b;
  border-color: var(--color-plum-voltage);
  box-shadow: 0 12px 24px rgba(128, 82, 255, 0.35);
  z-index: 10;
}

.spark-orbit-node--1 {
  top: 30px;
  left: 15%;
  animation-delay: 0s;
}

.spark-orbit-node--2 {
  bottom: 20px;
  left: 20%;
  animation-delay: 1.5s;
}

.spark-orbit-node--3 {
  top: 20px;
  right: 15%;
  animation-delay: 3s;
}

.spark-orbit-node--4 {
  bottom: 30px;
  right: 20%;
  animation-delay: 4.5s;
}

@keyframes float-node {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(3deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.spark-orbit-node svg {
  width: 20px;
  height: 20px;
  color: var(--color-smoke);
  transition: color 0.3s ease;
}

.spark-orbit-node:hover svg {
  color: var(--color-bone);
}

/* Tooltip System */
.spark-tooltip {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(128, 82, 255, 0.4);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(128, 82, 255, 0.15);
  z-index: 12;
}

.spark-orbit-node:hover .spark-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spark-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.spark-connection-line {
  stroke: rgba(21, 132, 110, 0.15);
  stroke-width: 1.5;
  fill: none;
  /* Transition only compositable properties — 'filter' in transition forces paint on every frame */
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.spark-connection-line.highlighted {
  stroke: var(--color-plum-voltage);
  stroke-width: 3.5;
  /* filter:drop-shadow removed from highlighted SVG line — use stroke color accent only */
}

.spark-connection-line-active {
  stroke: var(--color-lichen);
  stroke-dasharray: 6 6;
  animation: pulse-stream 8s linear infinite;
  /* filter removed from active SVG line — causes recomposite on every animated frame */
}

@keyframes pulse-stream {
  to {
    stroke-dashoffset: -100px;
  }
}

/* Override existing team-card styling for mouse spotlights */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  transform-style: preserve-3d;
}

.team-card__image-wrapper {
  margin-bottom: 8px;
}

.team-card:hover {
  border-color: rgba(128, 82, 255, 0.35);
  box-shadow: 0 12px 36px rgba(128, 82, 255, 0.12);
  transform: translateY(-4px);
}

/* ── Responsible AI Principles Section ── */
.section--principles {
  padding-top: calc(var(--section-gap) * 1.2);
  padding-bottom: calc(var(--section-gap) * 1.2);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.principle-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.principle-card:hover {
  border-color: rgba(128, 82, 255, 0.3);
  box-shadow: 0 20px 40px rgba(128, 82, 255, 0.1);
  transform: translateY(-6px);
}

.principle-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.principle-card:hover .principle-card__icon {
  background: rgba(128, 82, 255, 0.1);
  border-color: rgba(128, 82, 255, 0.3);
  transform: scale(1.1) translateZ(20px);
}

.principle-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-smoke);
  transition: color 0.3s ease;
}

.principle-card:hover .principle-card__icon svg {
  color: var(--color-bone);
}

.principle-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-semibold);
  color: var(--color-bone);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.principle-card:hover .principle-card__title {
  transform: translateZ(15px);
}

.principle-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-smoke);
  transition: color 0.3s ease, transform 0.3s ease;
}

.principle-card:hover .principle-card__text {
  color: var(--color-ash);
  transform: translateZ(10px);
}

/* Color thematic overrides for AI Principle Cards */
.principle-card--amber:hover {
  border-color: rgba(255, 184, 41, 0.35);
  box-shadow: 0 20px 40px rgba(255, 184, 41, 0.1);
}

.principle-card--amber:hover .principle-card__icon {
  background: rgba(255, 184, 41, 0.1);
  border-color: rgba(255, 184, 41, 0.3);
}

.principle-card--amber:hover .principle-card__icon svg {
  color: var(--color-amber-spark);
}

.principle-card--lichen:hover {
  border-color: rgba(21, 132, 110, 0.35);
  box-shadow: 0 20px 40px rgba(21, 132, 110, 0.1);
}

.principle-card--lichen:hover .principle-card__icon {
  background: rgba(21, 132, 110, 0.1);
  border-color: rgba(21, 132, 110, 0.3);
}

.principle-card--lichen:hover .principle-card__icon svg {
  color: var(--color-lichen);
}

.principle-card--plum:hover .principle-card__icon svg {
  color: var(--color-plum-voltage);
}

/* Responsiveness for AI principles */
@media (max-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Droid Viewport (Hero 3D Visual) ── */
.droid-viewport {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#droid-canvas {
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
  will-change: transform;
}

#droid-canvas:active {
  cursor: grabbing;
}

.droid-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(128, 82, 255, 0.3);
  box-shadow: 0 0 15px rgba(128, 82, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11px;
  color: var(--color-plum-voltage);
  letter-spacing: 0.1em;
  pointer-events: none;
  animation: hud-flicker 4s infinite alternate;
}

@keyframes hud-flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 0.9;
  }

  20%,
  24%,
  55% {
    opacity: 0.4;
  }
}

/* ── Hero Staggered Feature Cards (AI Services) ── */
.hero-feature-cards-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  transform-style: preserve-3d;
}

.hero-glowing-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(128, 82, 255, 0.22) 0%, rgba(21, 132, 110, 0.06) 55%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  pointer-events: none;
  z-index: 1;
  animation: core-pulse 4s infinite alternate ease-in-out;
}

@keyframes core-pulse {
  /* opacity-only animation stays on compositor — scale removed from filter layer */
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-feature-card {
  position: absolute;
  width: 320px;
  padding: 24px;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  backdrop-filter: blur(10px);  /* Reduced: 16px → 10px for compositor perf */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: all;
  transform-style: preserve-3d;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-feature-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-feature-card:hover .hero-feature-card__icon,
.hero-feature-card.hero-feature-card--active .hero-feature-card__icon {
  background: rgba(128, 82, 255, 0.1);
  border-color: rgba(128, 82, 255, 0.3);
  transform: translateZ(10px);
}

.hero-feature-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-smoke);
  transition: color 0.3s ease;
}

.hero-feature-card:hover .hero-feature-card__icon svg,
.hero-feature-card.hero-feature-card--active .hero-feature-card__icon svg {
  color: var(--color-bone);
}

.hero-feature-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-bone);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-feature-card__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-smoke);
  margin-top: 12px;
  transition: color 0.3s ease;
}

.hero-feature-card:hover .hero-feature-card__text,
.hero-feature-card.hero-feature-card--active .hero-feature-card__text {
  color: var(--color-ash);
}

.hero-feature-card__summary {
  display: block;
}

.hero-feature-card__details {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.4s ease;
}

.hero-feature-card:hover .hero-feature-card__details,
.hero-feature-card.hero-feature-card--active .hero-feature-card__details {
  max-height: 380px;
  opacity: 1;
  margin-top: 16px;
}

/* Card positioning on Desktop (Alternating Left/Right Stack) */
.hero-feature-card--c1 {
  top: -40px;
  left: -140px;
  z-index: 5;
}

.hero-feature-card--c2 {
  top: 90px;
  right: -140px;
  z-index: 5;
}

.hero-feature-card--c3 {
  bottom: 90px;
  left: -150px;
  z-index: 4;
}

.hero-feature-card--c4 {
  bottom: -40px;
  right: -150px;
  z-index: 6;
}

/* Color thematic hover and active classes */
.hero-feature-card:hover,
.hero-feature-card.hero-feature-card--active {
  z-index: 100 !important;
}

.hero-feature-card--c1:hover,
.hero-feature-card--c1.hero-feature-card--active {
  border-color: rgba(128, 82, 255, 0.7);
  box-shadow: 0 0 30px rgba(128, 82, 255, 0.4), 0 20px 45px rgba(0, 0, 0, 0.65);
}

.hero-feature-card--c1:hover .hero-feature-card__icon,
.hero-feature-card--c1.hero-feature-card--active .hero-feature-card__icon {
  background: rgba(128, 82, 255, 0.12);
  border-color: rgba(128, 82, 255, 0.4);
}

.hero-feature-card--c1:hover .hero-feature-card__icon svg,
.hero-feature-card--c1.hero-feature-card--active .hero-feature-card__icon svg {
  color: var(--color-plum-voltage);
}

.hero-feature-card--c2:hover,
.hero-feature-card--c2.hero-feature-card--active {
  border-color: rgba(21, 132, 110, 0.7);
  box-shadow: 0 0 30px rgba(21, 132, 110, 0.4), 0 20px 45px rgba(0, 0, 0, 0.65);
}

.hero-feature-card--c2:hover .hero-feature-card__icon,
.hero-feature-card--c2.hero-feature-card--active .hero-feature-card__icon {
  background: rgba(21, 132, 110, 0.12);
  border-color: rgba(21, 132, 110, 0.4);
}

.hero-feature-card--c2:hover .hero-feature-card__icon svg,
.hero-feature-card--c2.hero-feature-card--active .hero-feature-card__icon svg {
  color: var(--color-lichen);
}

.hero-feature-card--c3:hover,
.hero-feature-card--c3.hero-feature-card--active {
  border-color: rgba(255, 184, 41, 0.75);
  box-shadow: 0 0 30px rgba(255, 184, 41, 0.35), 0 20px 45px rgba(0, 0, 0, 0.65);
}

.hero-feature-card--c3:hover .hero-feature-card__icon,
.hero-feature-card--c3.hero-feature-card--active .hero-feature-card__icon {
  background: rgba(255, 184, 41, 0.12);
  border-color: rgba(255, 184, 41, 0.4);
}

.hero-feature-card--c3:hover .hero-feature-card__icon svg,
.hero-feature-card--c3.hero-feature-card--active .hero-feature-card__icon svg {
  color: var(--color-amber-spark);
}

.hero-feature-card--c4:hover,
.hero-feature-card--c4.hero-feature-card--active {
  border-color: rgba(128, 82, 255, 0.7);
  box-shadow: 0 0 30px rgba(128, 82, 255, 0.4), 0 20px 45px rgba(0, 0, 0, 0.65);
}

.hero-feature-card--c4:hover .hero-feature-card__icon,
.hero-feature-card--c4.hero-feature-card--active .hero-feature-card__icon {
  background: rgba(128, 82, 255, 0.12);
  border-color: rgba(128, 82, 255, 0.4);
}

.hero-feature-card--c4:hover .hero-feature-card__icon svg,
.hero-feature-card--c4.hero-feature-card--active .hero-feature-card__icon svg {
  color: var(--color-plum-voltage);
}

/* ── Responsive Refactoring ── */
@media (max-width: 1024px) {
  .hero__visual-container {
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    width: 100%;
    align-items: center;
  }

  .hero-glowing-core {
    display: none;
  }

  .droid-viewport {
    width: 300px;
    aspect-ratio: 1.0;
  }

  .hero-feature-cards-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    pointer-events: auto;
    inset: auto;
    transform: none;
  }

  .hero-feature-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .hero-feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
}

/* ── Floating AI Chatbot Widget ── */
.ai-chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-sans);
}

/* FAB Open Button */
.ai-agent-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.7);
  border: 1px solid rgba(128, 82, 255, 0.3);
  color: var(--color-bone);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(128, 82, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  position: relative;
}

.ai-agent-fab:hover {
  transform: scale(1.08) rotate(5deg);
  background: rgba(128, 82, 255, 0.15);
  box-shadow: 0 8px 32px rgba(128, 82, 255, 0.3), 0 0 25px rgba(128, 82, 255, 0.4);
}

.ai-agent-fab:active {
  transform: scale(0.95);
}

.ai-agent-fab__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Pulsing aura */
.ai-agent-fab::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(128, 82, 255, 0.85);
  box-shadow: 0 0 15px rgba(128, 82, 255, 0.5);
  opacity: 0;
  animation: fab-pulsing 2.2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

@keyframes fab-pulsing {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }

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

.ai-agent-fab__tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--color-bone);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-agent-fab:hover .ai-agent-fab__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Chat Window Container */
.ai-chatbot-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  height: 520px;
  background: rgba(12, 12, 12, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    visibility 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  pointer-events: none;
}

.ai-chatbot-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: all;
  border-color: rgba(128, 82, 255, 0.65);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 25px rgba(128, 82, 255, 0.25);
}

/* Chat Header */
.ai-chatbot-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.ai-chatbot-window__header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chatbot-window__status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-lichen);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-lichen);
  animation: status-pulse 1.8s infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 132, 110, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(21, 132, 110, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(21, 132, 110, 0);
  }
}

.ai-chatbot-window__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bone);
  margin: 0;
}

.ai-chatbot-window__subtitle {
  font-size: 11px;
  color: var(--color-smoke);
  margin: 0;
}

.ai-chatbot-window__close {
  background: transparent;
  border: none;
  color: var(--color-smoke);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ai-chatbot-window__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-bone);
}

/* Message Feed */
.ai-chatbot-window__messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ai-chatbot-window__messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chatbot-window__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.ai-chatbot-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.ai-chatbot-message--system {
  align-self: flex-start;
}

.ai-chatbot-message--user {
  align-self: flex-end;
}

.ai-chatbot-message__bubble {
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.45;
  border-radius: 16px;
}

.ai-chatbot-message--system .ai-chatbot-message__bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--color-bone);
  border-bottom-left-radius: 4px;
}

.ai-chatbot-message--user .ai-chatbot-message__bubble {
  background: rgba(128, 82, 255, 0.15);
  border: 1px solid rgba(128, 82, 255, 0.3);
  color: var(--color-bone);
  border-bottom-right-radius: 4px;
}

.ai-chatbot-message__time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  padding: 0 4px;
}

.ai-chatbot-message--user .ai-chatbot-message__time {
  align-self: flex-end;
}

/* Suggestion Chips */
.ai-chatbot-window__chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 14px 20px;
}

.ai-chatbot-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-smoke);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ai-chatbot-chip:hover {
  background: rgba(128, 82, 255, 0.08);
  border-color: rgba(128, 82, 255, 0.25);
  color: var(--color-bone);
}

/* Input Area */
.ai-chatbot-window__input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.ai-chatbot-window__input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-bone);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12.5px;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chatbot-window__input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(128, 82, 255, 0.3);
  box-shadow: 0 0 10px rgba(128, 82, 255, 0.1);
}

.ai-chatbot-window__send {
  background: rgba(128, 82, 255, 0.15);
  border: 1px solid rgba(128, 82, 255, 0.3);
  color: var(--color-bone);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.ai-chatbot-window__send:hover {
  background: rgba(128, 82, 255, 0.25);
  border-color: rgba(128, 82, 255, 0.5);
  box-shadow: 0 0 15px rgba(128, 82, 255, 0.2);
}

/* Typing Indicator */
.ai-chatbot-message--typing .ai-chatbot-message__bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-smoke);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Responsiveness for Chatbot */
@media (max-width: 640px) {
  .ai-chatbot-container {
    bottom: 16px;
    right: 16px;
  }

  .ai-chatbot-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    border-radius: 0;
    border: none;
  }
}

/* ============================================================
   SERVICES SECTION — Bento Box Grid Design
   ============================================================ */

/* ── Section Wrapper ── */
.section--services {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--section-gap) * 1.5);
  padding-bottom: calc(var(--section-gap) * 1.5);
}

#services-particles, #footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* ── Section-level Header ── */
.services-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 96px;
}

.services-header__eyebrow {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-plum-voltage);
  margin-bottom: 18px;
}

.services-header__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: var(--fw-semibold);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-bone) 40%, var(--color-smoke) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.services-header__subtext {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--color-smoke);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Service Category Block ── */
.service-category {
  position: relative;
  z-index: 2;
  margin-bottom: 96px;
}

.service-category:last-child {
  margin-bottom: 0;
}

/* Category label row (e.g., "01 · Digital Engineering") */
.service-category__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-category__number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-amber-spark);
  line-height: 1;
}

.service-category__eyebrow {
  font-size: 28px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-plum-voltage);
}

/* Category header — headline + subtext + CTA */
.service-category__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
  margin-bottom: 40px;
}

.service-category--reverse .service-category__header {
  grid-template-columns: 1fr 1fr;
}

.service-category__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--color-bone) 55%, var(--color-ash) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.service-category__subtext {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--color-smoke);
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-plum-voltage);
  border-bottom: 1px solid rgba(128, 82, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  cursor: pointer;
  width: fit-content;
}

.service-cta-link:hover {
  color: var(--color-bone);
  border-color: rgba(255, 255, 255, 0.4);
  gap: 12px;
}

/* ── Bento Grids ── */
.service-bento-grid {
  display: grid;
  gap: 20px;
}

/* Three-column equal grid */
.service-bento-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Asymmetric: wide card on left, two stacked on right */
.service-bento-grid--asymmetric {
  grid-template-columns: 1.55fr 1fr 1fr;
}

/* ── Bento Card Base ── */
.service-bento-card {
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-bento-card:hover {
  border-color: rgba(128, 82, 255, 0.25);
  background: rgba(18, 10, 30, 0.85);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(128, 82, 255, 0.08) inset;
  transform: translateY(-4px);
}

/* Accent card variant — slightly brighter background */
.service-bento-card--accent {
  background: radial-gradient(100% 100% at 0% 0%, rgba(128, 82, 255, 0.06) 0%, rgba(10, 10, 12, 0.85) 80%);
  border-color: rgba(128, 82, 255, 0.1);
}

.service-bento-card--accent:hover {
  background: radial-gradient(100% 100% at 0% 0%, rgba(128, 82, 255, 0.1) 0%, rgba(18, 10, 30, 0.9) 80%);
}

/* Wide card for asymmetric grid */
.service-bento-card--wide {
  grid-row: span 2;
}

/* ── Bento Card Internal Elements ── */
.service-bento-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-bento-card__icon-wrap--plum {
  background: rgba(128, 82, 255, 0.12);
  border: 1px solid rgba(128, 82, 255, 0.2);
  color: var(--color-plum-voltage);
}

.service-bento-card__icon-wrap--amber {
  background: rgba(255, 184, 41, 0.1);
  border: 1px solid rgba(255, 184, 41, 0.2);
  color: var(--color-amber-spark);
}

.service-bento-card__icon-wrap--lichen {
  background: rgba(21, 132, 110, 0.1);
  border: 1px solid rgba(21, 132, 110, 0.2);
  color: var(--color-lichen);
}

.service-bento-card__title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-bone);
}

.service-bento-card__text {
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.68;
  color: var(--color-smoke);
  flex-grow: 1;
}

/* Tech tag badge */
.service-bento-card__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: auto;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.service-bento-card:hover .service-bento-card__tag {
  color: rgba(128, 82, 255, 0.8);
  border-color: rgba(128, 82, 255, 0.2);
}

/* Stat row for wide card */
.service-bento-card__stat-row {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-bento-card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.04em;
  color: var(--color-amber-spark);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--color-smoke);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1100px) {
  .service-category__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-category__subtext {
    grid-column: 1;
    grid-row: 2;
  }

  .service-cta-link {
    grid-column: 1;
    grid-row: 3;
  }

  .service-bento-grid--asymmetric {
    grid-template-columns: 1fr 1fr;
  }

  .service-bento-card--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .service-bento-grid--three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services-header {
    margin-bottom: 60px;
  }

  .service-category {
    margin-bottom: 64px;
  }

  .service-bento-grid--three,
  .service-bento-grid--asymmetric {
    grid-template-columns: 1fr;
  }

  .service-bento-card--wide {
    grid-column: span 1;
  }

  .service-bento-card__stat-row {
    gap: 20px;
  }
}

/* ── Hover glow for category label border ── */
.service-category:hover .service-category__label {
  border-bottom-color: rgba(128, 82, 255, 0.15);
  transition: border-color 0.4s ease;
}

/* ── Global Accessibility Focus Indicators ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-plum-voltage);
  outline-offset: 4px;
}

/* ── Scroll-Driven Entry Animations for Hero Cards ── */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes slide-in-left {
      from {
        transform: translateX(-150px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    @keyframes slide-in-right {
      from {
        transform: translateX(150px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .hero-feature-card--left:not(.hero-feature-card--active):not(:hover) {
      animation: slide-in-left auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
    .hero-feature-card--right:not(.hero-feature-card--active):not(:hover) {
      animation: slide-in-right auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
  }
}

/* ============================================================
   LIGHT THEME STYLES (Added by Antigravity)
   ============================================================ */

/* ── Layout & Theme Toggle Styles ── */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 101;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-smoke);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover {
  color: var(--color-bone);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.05);
}

/* Toggle transitions for Sun / Moon icons */
.theme-toggle__sun,
.theme-toggle__sun-beams {
  opacity: 0;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode state for the button */
[data-theme="light"] .theme-toggle__sun,
[data-theme="light"] .theme-toggle__sun-beams {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: var(--color-smoke);
}

[data-theme="light"] .theme-toggle:hover {
  color: var(--color-bone);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.05);
}

/* ── Light Mode Color Overrides ── */
[data-theme="light"] {
  --color-void: #f7f6f2; /* Beautiful warm sand/bone off-white bg */
  --color-bone: #0a0a0c; /* Near black charcoal */
  --color-ash: #27272a;
  --color-smoke: #52525b;
  --color-plum-voltage: #6d28d9; /* Deep violet for premium contrast */
  --color-amber-spark: #b45309; /* Deeper amber */
  --color-lichen: #0d9488; /* Deeper teal */
}

/* Glassmorphism components in Light Mode */
[data-theme="light"] .header {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .header--scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(109, 40, 217, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
}

/* Bento and Feature Cards */
[data-theme="light"] .hero-feature-card,
[data-theme="light"] .manifesto-3d-card,
[data-theme="light"] .team__card,
[data-theme="light"] .investors__card,
[data-theme="light"] .responsible-card,
[data-theme="light"] .playground-container,
[data-theme="light"] .playground-result,
[data-theme="light"] .ai-chatbot-window {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .hero-feature-card:hover,
[data-theme="light"] .manifesto-3d-card:hover,
[data-theme="light"] .team__card:hover,
[data-theme="light"] .investors__card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(109, 40, 217, 0.25);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.05);
}

[data-theme="light"] .manifesto-3d-card__number {
  color: rgba(109, 40, 217, 0.15);
}

[data-theme="light"] .manifesto-3d-card:hover .manifesto-3d-card__number {
  color: var(--color-plum-voltage);
}

[data-theme="light"] .manifesto-3d-card__text {
  color: var(--color-smoke);
}

/* Service Bento Cards (Refined for Prominence and Google Design Best Practices) */
[data-theme="light"] .service-bento-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .service-bento-card:hover {
  background: #ffffff;
  border-color: var(--color-plum-voltage);
  box-shadow: 
    0 16px 36px rgba(109, 40, 217, 0.05),
    0 0 0 1px rgba(109, 40, 217, 0.08) inset;
  transform: translateY(-4px);
}

[data-theme="light"] .service-bento-card--accent {
  background: radial-gradient(100% 100% at 0% 0%, rgba(109, 40, 217, 0.03) 0%, #ffffff 80%);
  border-color: rgba(109, 40, 217, 0.15);
}

[data-theme="light"] .service-bento-card--accent:hover {
  background: radial-gradient(100% 100% at 0% 0%, rgba(109, 40, 217, 0.06) 0%, #ffffff 80%);
}

[data-theme="light"] .service-bento-card__tag {
  color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .service-bento-card:hover .service-bento-card__tag {
  color: var(--color-plum-voltage);
  border-color: rgba(109, 40, 217, 0.2);
  background: rgba(109, 40, 217, 0.04);
}

[data-theme="light"] .service-bento-card__stat-row {
  border-top-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Header CTA alignment adjustment inside actions container */
@media (max-width: 768px) {
  .header__actions {
    gap: 12px;
  }
}

/* Specific inner element adjustments for Light Mode */
[data-theme="light"] .playground-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--color-smoke);
}

[data-theme="light"] .playground-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-bone);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .playground-chip.active {
  background: rgba(109, 40, 217, 0.12);
  border-color: rgba(109, 40, 217, 0.30);
  color: var(--color-plum-voltage);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.12);
}

[data-theme="light"] .playground-node {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .playground-node.active,
[data-theme="light"] .playground-node:hover {
  color: var(--color-plum-voltage);
  background: rgba(109, 40, 217, 0.08);
  border-color: var(--color-plum-voltage);
  box-shadow: 0 0 20px rgba(109, 40, 217, 0.15);
}

[data-theme="light"] .playground-node.active svg {
  filter: drop-shadow(0 0 6px rgba(109, 40, 217, 0.25));
}

[data-theme="light"] .playground-node__label {
  color: var(--color-smoke);
}

[data-theme="light"] .playground-node.active .playground-node__label {
  color: var(--color-bone);
  font-weight: 700;
}

[data-theme="light"] .playground-node__label-core {
  color: var(--color-plum-voltage);
}

[data-theme="light"] .playground-node--center {
  background: linear-gradient(135deg, #f3e8ff 0%, #fae8ff 100%);
  border-color: var(--color-plum-voltage);
  color: var(--color-plum-voltage);
}

[data-theme="light"] .playground-terminal {
  background-color: #ffffff;
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.1);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 4px
  );
}

[data-theme="light"] .playground-terminal::after {
  color: #1e293b;
}

[data-theme="light"] .tel-metric {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tel-value {
  color: var(--color-bone);
}

/* Chatbot overrides */
[data-theme="light"] .ai-agent-fab {
  background: var(--color-plum-voltage);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.25);
}

[data-theme="light"] .ai-agent-fab__icon {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .ai-chatbot-message--system .ai-chatbot-message__bubble {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--color-bone);
}

[data-theme="light"] .ai-chatbot-message--user .ai-chatbot-message__bubble {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.2);
  color: var(--color-bone);
}

[data-theme="light"] .ai-chatbot-window__input-area {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .ai-chatbot-window__input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-bone);
}

[data-theme="light"] .ai-chatbot-message__time {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .ai-chatbot-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--color-smoke);
}

[data-theme="light"] .ai-chatbot-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-bone);
}

/* Gradient headline text colors on light background */
[data-theme="light"] .hero__headline,
[data-theme="light"] .section__title,
[data-theme="light"] .section__title--large {
  background: linear-gradient(180deg, var(--color-bone) 30%, rgba(10, 10, 12, 0.65) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Footer & other dark assets */
[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Spark Visual Section Overrides in Light Mode */
[data-theme="light"] .spark-center-node {
  background: radial-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.02) 100%);
  border-color: var(--color-lichen);
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.1);
}

[data-theme="light"] .spark-orbit-node {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .spark-orbit-node:hover {
  background: rgba(109, 40, 217, 0.05);
  border-color: var(--color-plum-voltage);
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.12);
}

[data-theme="light"] .spark-orbit-node svg {
  color: var(--color-smoke);
}

[data-theme="light"] .spark-orbit-node:hover svg {
  color: var(--color-plum-voltage);
}

[data-theme="light"] .spark-tooltip {
  background: #ffffff;
  border-color: var(--color-plum-voltage);
  color: var(--color-bone);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.08);
}

[data-theme="light"] .spark-connection-line {
  stroke: rgba(13, 148, 136, 0.25);
}

[data-theme="light"] .service-cta-link:hover {
  border-color: rgba(10, 10, 12, 0.4);
}

/* Distinct color-coded icons for playground chips */
#chip-ingest svg {
  color: var(--color-lichen);
}
#chip-synthesize svg {
  color: var(--color-amber-spark);
}
#chip-retrieve svg {
  color: var(--color-plum-voltage);
}
#chip-guard svg {
  color: #ef4444;
}

[data-theme="light"] #chip-guard svg {
  color: #dc2626;
}

/* GPU Hardware Layer Promotion to reduce paint lag */
.manifesto-3d-card,
.service-bento-card,
.playground-container,
.hero-feature-card {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Header CTA Tooltip Styles */
.cta-wrapper {
  position: relative;
  display: inline-flex;
}

.cta-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid var(--color-plum-voltage);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.cta-wrapper:hover .cta-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light mode support for the tooltip */
[data-theme="light"] .cta-tooltip {
  background: #ffffff;
  border-color: var(--color-plum-voltage);
  color: var(--color-bone);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}