/* ============================================================================
   SIXEDGE — Brand System
   Official palette: Electric Purple #462668 · Deep Space Black #000000 ·
   Optic White #FFFFFF
   Typography: Michroma (brand/headings) · Inter (body) · JetBrains Mono (telemetry)
   ========================================================================== */

:root {
  /* --- Official brand colours --------------------------------------- */
  --purple: #462668;
  --black: #000000;
  --white: #ffffff;

  /* Tints derived from Electric Purple (hue preserved, luminance lifted)
     so the 50% purple weighting reads on a black ground. */
  --purple-lift: #6d3ba3;
  --purple-bright: #9a6ad0;
  --purple-haze: #c3a6e6;

  --purple-a08: rgba(70, 38, 104, 0.08);
  --purple-a15: rgba(70, 38, 104, 0.15);
  --purple-a25: rgba(70, 38, 104, 0.25);
  --purple-a40: rgba(70, 38, 104, 0.4);
  --purple-a60: rgba(70, 38, 104, 0.6);

  --lift-a20: rgba(109, 59, 163, 0.2);
  --lift-a35: rgba(109, 59, 163, 0.35);
  --lift-a55: rgba(109, 59, 163, 0.55);

  /* Text ramp — Optic White at descending opacity keeps the white
     weighting honest without introducing off-brand greys. */
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.42);

  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-hot: rgba(154, 106, 208, 0.38);

  --glass: rgba(255, 255, 255, 0.022);
  --glass-hi: rgba(255, 255, 255, 0.045);

  --font-brand: "Michroma", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--purple-a60);
  color: var(--white);
}

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

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

/* ============================================================ typography */

h1,
h2,
h3,
h4,
.brand-type {
  font-family: var(--font-brand);
  font-weight: 400; /* Michroma ships a single weight */
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* ====================================================== layout primitives */

.shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: 112px;
}

.section-tight {
  padding-block: 88px;
}

.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--lift-a35) 20%,
    var(--purple-bright) 50%,
    var(--lift-a35) 80%,
    transparent
  );
  opacity: 0.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

/* ================================================== atmospheric backdrop */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

/* Cybernetic grid — purple, masked so it fades into the void */
.ambient-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(154, 106, 208, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 106, 208, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 58% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 58% at 50% 0%, #000 12%, transparent 78%);
}

/* Multi-layered Electric Purple aura — the dominant 50% brand weight */
.aura {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
}

.aura-crown {
  top: -30rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(86rem, 140vw);
  height: 44rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(109, 59, 163, 0.38), transparent 60%),
    radial-gradient(circle at 34% 58%, rgba(70, 38, 104, 0.46), transparent 66%);
}

.aura-left {
  top: 52%;
  left: -26rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(70, 38, 104, 0.38), transparent 68%);
}

.aura-right {
  bottom: -20rem;
  right: -20rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(109, 59, 163, 0.24), transparent 68%);
}

/* Scanlines — very low contrast, purely textural */
.ambient-scan {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.5;
}

/* A single slow sweep of light down the page */
.ambient-sweep {
  position: absolute;
  inset-inline: 0;
  height: 42vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(154, 106, 208, 0.055),
    transparent
  );
  animation: sweep 14s linear infinite;
}

@keyframes sweep {
  0% {
    transform: translateY(-50vh);
  }
  100% {
    transform: translateY(150vh);
  }
}

.hairline-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--purple-bright),
    transparent
  );
  opacity: 0.45;
}

/* ============================================================== nav bar */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--lift-a55), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* --- Logo lockup.
   Brand rule: the mark is free-standing, 100% opacity, no colour filters
   and no drop shadow applied to the mark itself. The glow below is cast
   *behind* the logo by a separate element and never touches it. --- */
.lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* The glyph is transparent and free-standing: no plate, no crop, no filter. */
.logo-mark {
  display: block;
  height: 34px;
  width: 34px;
  flex-shrink: 0;
  opacity: 1;
}

.lockup-word {
  font-family: var(--font-brand);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 34px;
  font-size: 13.5px;
  color: var(--text-dim);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  padding-block: 4px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--purple-bright);
  box-shadow: 0 0 10px var(--purple-bright);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================================================================ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding-inline: 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn svg {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
}

.btn-sm {
  height: 38px;
  padding-inline: 18px;
  font-size: 13px;
}

/* Optic White primary — the "glowing button" */
.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(255, 255, 255, 0.26),
    0 0 52px var(--purple-a40);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px #fff,
    0 0 30px rgba(255, 255, 255, 0.42),
    0 0 74px rgba(109, 59, 163, 0.65);
}

/* Purple-glass secondary */
.btn-ghost {
  background: var(--purple-a15);
  border-color: var(--hairline-hot);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(70, 38, 104, 0.4);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--purple-a25);
  border-color: var(--purple-bright);
  box-shadow:
    0 0 30px rgba(70, 38, 104, 0.75),
    inset 0 0 22px rgba(109, 59, 163, 0.28);
}

.btn .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ================================================================= badges */

.badge {
  display: inline-flex;
  max-width: 100%;
  text-align: center;
  align-items: center;
  gap: 10px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-hot);
  background: var(--purple-a15);
  padding: 7px 16px;
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(70, 38, 104, 0.4);
}

.pulse {
  position: relative;
  display: inline-flex;
  height: 6px;
  width: 6px;
  flex-shrink: 0;
}

.pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--purple-bright);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse::after {
  content: "";
  position: relative;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: var(--purple-haze);
  box-shadow: 0 0 10px var(--purple-bright);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Section eyebrow */
.eyebrow {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--hairline-hot);
  background: var(--purple-a15);
  padding: 6px 15px;
  font-family: var(--font-brand);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-haze);
  box-shadow: 0 0 20px rgba(70, 38, 104, 0.35);
}

/* ==================================================================== hero */

.hero {
  position: relative;
  padding-block: 104px 96px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 132px 112px;
  }
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero logo — free-standing, generous clear space, no overlapping shapes.
   The aura sits behind as a separate layer so the mark stays untouched. */
.hero-logo {
  position: relative;
  margin-bottom: 40px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Atmospheric aura cast BEHIND the mark as its own layer. The logo itself
   carries no drop shadow or filter, per brand rules. */
.hero-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 128%;
  height: 320%;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse,
    rgba(109, 59, 163, 0.5),
    rgba(70, 38, 104, 0.28) 45%,
    transparent 70%
  );
  filter: blur(54px);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

.hero-logo img {
  position: relative;
  width: clamp(250px, 56vw, 468px);
  height: auto;
  opacity: 1; /* brand rule: 100% opacity, never tinted */
}

.hero-title {
  margin-top: 34px;
  font-size: clamp(1.5rem, 4.3vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 0 0 34px rgba(109, 59, 163, 0.45);
}

.hero-title-lead {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-shadow: none;
  margin-bottom: 0.95em;
}

.hero-title .accent {
  color: var(--white);
  text-shadow:
    0 0 26px rgba(154, 106, 208, 0.85),
    0 0 64px rgba(109, 59, 163, 0.6);
}

.hero-lede {
  margin-top: 28px;
  max-width: 660px;
  font-size: clamp(1rem, 2.1vw, 1.1875rem);
  line-height: 1.68;
  color: var(--text-dim);
}

.hero-sub {
  margin-top: 20px;
  max-width: 560px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--text-faint);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
    max-width: none;
    align-items: center;
  }
}

/* ======================================================= terminal console */

.console {
  margin-top: 68px;
  width: 100%;
  max-width: 520px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--hairline-hot);
  background: rgba(0, 0, 0, 0.82);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 25px rgba(70, 38, 104, 0.4),
    0 0 90px rgba(70, 38, 104, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--purple-a08);
}

.console-dot {
  height: 9px;
  width: 9px;
  border-radius: 9999px;
  background: var(--purple-a60);
  border: 1px solid var(--lift-a35);
}

.console-dot:nth-child(3) {
  background: var(--lift-a55);
  box-shadow: 0 0 8px var(--purple-lift);
}

.console-name {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.console-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.75px;
  line-height: 1.85;
  color: var(--text-dim);
}

.console-cmd-line {
  margin-bottom: 4px;
}

.console-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.console-row .val {
  text-align: right;
  white-space: nowrap;
}

.console-foot {
  margin-top: 18px;
}

.console-body .ok {
  color: var(--purple-haze);
  text-shadow: 0 0 9px rgba(154, 106, 208, 0.75);
}

.console-body .val {
  color: var(--white);
}

.console-body .arrow-tok {
  color: var(--purple-bright);
}

/* Pulsing telemetry cursor */
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--purple-haze);
  box-shadow: 0 0 10px var(--purple-bright);
  animation: blink 1.15s steps(2, start) infinite;
}

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

/* ================================================================== stats */

.stats {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline-hot);
  background: rgba(13, 7, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(70, 38, 104, 0.45), 0 0 60px rgba(70, 38, 104, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  gap: 0;
  align-items: stretch;
}

.slider-pill,
.stats-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109, 59, 163, 0.45) 0%, rgba(70, 38, 104, 0.35) 100%);
  border: 1px solid rgba(154, 106, 208, 0.6);
  box-shadow: 0 0 24px rgba(109, 59, 163, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.stats[data-active="0"] .slider-pill,
.stats[data-active="0"] .stats-indicator {
  transform: translate3d(0, 0, 0);
}

.stats[data-active="1"] .slider-pill,
.stats[data-active="1"] .stats-indicator {
  transform: translate3d(100%, 0, 0);
}

.stat {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
  transition: opacity 0.3s ease, background 0.25s ease;
}

.stat:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: -2px;
}

.stat-figure {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(109, 59, 163, 0.6);
  transition: text-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: clamp(9px, 1.4vw, 11px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.stat.is-active .stat-figure {
  text-shadow: 0 0 25px rgba(154, 106, 208, 0.85);
  transform: translateY(-1px);
}

.stat.is-active .stat-label {
  color: var(--white);
}

.stat:not(.is-active) {
  opacity: 0.65;
}

.stat:not(.is-active):hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.02);
}

.stats-ticker {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(154, 106, 208, 0.18);
  background: rgba(0, 0, 0, 0.45);
}

.stats-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 8px var(--purple-bright);
  flex-shrink: 0;
  animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px var(--purple-bright);
  }
}

.stats-ticker-text {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.8vw, 13px);
  letter-spacing: 0.08em;
  color: var(--purple-haze);
  text-shadow: 0 0 12px rgba(154, 106, 208, 0.45);
  text-align: center;
  min-height: 1.5em;
  display: inline-block;
}

@media (max-width: 640px) {
  .stats {
    border-radius: 14px;
  }

  .stats-track {
    padding: 4px;
  }

  .slider-pill,
  .stats-indicator {
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    border-radius: 10px;
  }

  .stat {
    padding: 18px 10px;
  }

  .stat-figure {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 9px;
    margin-top: 6px;
    letter-spacing: 0.15em;
  }

  .stats-ticker {
    padding: 10px 14px;
    gap: 8px;
  }

  .stats-ticker-text {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-pill,
  .stats-indicator {
    transition: none;
  }

  .stats-ticker-dot {
    animation: none;
  }
}

/* ================================================================== cards */

.section-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin-top: 20px;
  font-size: clamp(1.4rem, 3.4vw, 2.125rem);
  color: var(--white);
  text-shadow: 0 0 34px rgba(109, 59, 163, 0.45);
}

.section-lede {
  margin-top: 20px;
  font-size: 0.9875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extended goals sit inside the narrow philosophy column: stack them as
   compact rows instead of squeezing three cards side by side. */
.grid-ext {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) and (max-width: 999px) {
  .grid-ext {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-ext .card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
}

.grid-ext .card-icon {
  flex-shrink: 0;
}

.grid-ext .card-title {
  margin-top: 0;
}

.grid-ext .card-body {
  margin-top: 6px;
}

@media (min-width: 640px) and (max-width: 999px) {
  .grid-ext .card {
    display: block;
  }
  .grid-ext .card-title {
    margin-top: 18px;
  }
}

/* Dark glass card with refined glowing purple border */
.card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: linear-gradient(
    180deg,
    rgba(70, 38, 104, 0.16),
    rgba(0, 0, 0, 0.55)
  );
  padding: 26px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

/* Top edge light — ignites on hover */
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--purple-bright), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-hot);
  box-shadow:
    0 0 25px rgba(70, 38, 104, 0.4),
    0 22px 50px -24px rgba(0, 0, 0, 0.95);
}

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

.card-icon {
  display: inline-flex;
  height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--hairline-hot);
  background: var(--purple-a25);
  color: var(--purple-haze);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.card-icon svg {
  height: 19px;
  width: 19px;
}

.card:hover .card-icon {
  background: var(--purple-a60);
  color: var(--white);
  box-shadow: 0 0 20px rgba(109, 59, 163, 0.7);
}

.card-title {
  margin-top: 20px;
  font-size: 0.9375rem;
  letter-spacing: 0.035em;
  color: var(--white);
}

.card-body {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--text-dim);
}

/* ============================================================= philosophy */

.band {
  position: relative;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(
    180deg,
    rgba(70, 38, 104, 0.1),
    rgba(0, 0, 0, 0) 60%
  );
}

.philosophy-grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1000px) {
  .philosophy-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 76px;
  }

  .philosophy-aside {
    position: sticky;
    top: 104px;
    align-self: start;
  }
}

.note {
  margin-top: 34px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline-hot);
  background: var(--purple-a15);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(70, 38, 104, 0.4);
}

.note p {
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--text-dim);
}

.note strong {
  color: var(--white);
  font-weight: 600;
}

.subhead {
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-haze);
}

.goals {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.goal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(70, 38, 104, 0.1);
  padding: 16px 18px;
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.goal:hover {
  border-color: var(--hairline-hot);
  background: var(--purple-a25);
  box-shadow: 0 0 25px rgba(70, 38, 104, 0.4);
}

.goal-check {
  display: inline-flex;
  height: 23px;
  width: 23px;
  flex-shrink: 0;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--hairline-hot);
  background: var(--purple-a40);
  color: var(--purple-haze);
  transition: box-shadow 0.28s ease, color 0.28s ease;
}

.goal-check svg {
  height: 12px;
  width: 12px;
}

.goal:hover .goal-check {
  color: var(--white);
  box-shadow: 0 0 14px rgba(109, 59, 163, 0.85);
}

.goal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.goal-body {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-faint);
}

.stack-xl {
  display: grid;
  gap: 44px;
}

/* =================================================================== team */

.team-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: inline-flex;
  height: 50px;
  width: 50px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--hairline-hot);
  background: linear-gradient(145deg, rgba(70, 38, 104, 0.85), rgba(0, 0, 0, 0.6));
  font-family: var(--font-brand);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: box-shadow 0.3s ease;
}

.card:hover .avatar {
  box-shadow: 0 0 22px rgba(109, 59, 163, 0.7);
}

.avatar-ai {
  background: linear-gradient(145deg, rgba(109, 59, 163, 0.9), rgba(70, 38, 104, 0.5));
  color: var(--purple-haze);
  box-shadow: 0 0 16px rgba(109, 59, 163, 0.5);
}

.avatar-ai svg {
  height: 21px;
  width: 21px;
}

.person-name {
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-role {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: var(--purple-a15);
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.card:hover .tag {
  border-color: var(--hairline-hot);
  color: var(--white);
}

/* ================================================================ contact */

.contact {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--hairline-hot);
  background: linear-gradient(180deg, rgba(70, 38, 104, 0.3), rgba(0, 0, 0, 0.8));
  padding: 68px 32px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 25px rgba(70, 38, 104, 0.4),
    0 0 110px rgba(70, 38, 104, 0.3);
}

.contact::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--purple-haze), transparent);
}

.contact::after {
  content: "";
  position: absolute;
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44rem;
  height: 26rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(109, 59, 163, 0.45), transparent 66%);
  filter: blur(90px);
  pointer-events: none;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.contact-lede {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 500px;
  font-size: 0.9875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.contact-actions {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

@media (min-width: 560px) {
  .contact-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* ================================================================= footer */

.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(70, 38, 104, 0.14));
}

.footer-grid {
  display: grid;
  gap: 48px;
  padding-block: 68px;
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.15fr 1fr 0.75fr;
  }
}

.footer-note {
  margin-top: 22px;
  max-width: 400px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-meta {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-faint);
}

.legal {
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.legal-row {
  display: grid;
  grid-template-columns: 8.75rem 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 420px) {
  .legal-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.legal-key {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.legal-val {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--white);
}

.footer-nav {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-nav a {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-nav a:hover {
  color: var(--white);
  text-shadow: 0 0 12px rgba(154, 106, 208, 0.8);
}

.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--text-faint);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bar-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-bar-links a {
  transition: color 0.25s ease;
}

.footer-bar-links a:hover {
  color: var(--white);
}

/* ====================================================== entrance motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered variant, toggled by the small inline observer */
.on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================== scrollbar */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-lift);
  border-radius: 9999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-bright);
  background-clip: content-box;
}

/* ======================================================== accessibility */

:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .ambient,
  .nav {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* Language Toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--white);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle .active-lang {
  font-weight: 700;
  color: var(--white);
}

.lang-toggle .inactive-lang {
  opacity: 0.5;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

/* Mobile CTA Label Toggles & Nav Spacing */
.cta-label-mobile {
  display: none;
}

@media (max-width: 600px) {
  .cta-label-full {
    display: none;
  }
  .cta-label-mobile {
    display: inline;
  }
  .nav-inner {
    gap: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .lang-toggle {
    padding: 4px 8px;
    font-size: 11px;
    gap: 6px;
  }
  .nav .btn-sm {
    padding-inline: 12px;
    height: 34px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .lockup {
    gap: 8px;
  }
  .lockup-word {
    font-size: 13px;
  }
}
