:root {
  color-scheme: dark;
  --bg: #03070f;
  --bg-soft: #0a1730;
  --surface: rgba(10, 24, 54, 0.42);
  --surface-strong: rgba(7, 19, 42, 0.68);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(132, 184, 255, 0.24);
  --line-strong: rgba(194, 223, 255, 0.3);
  --text: #eef5ff;
  --muted: #c3d3eb;
  --primary: #7ec0ff;
  --primary-strong: #4d8fff;
  --accent: #cfe6ff;
  --accent-deep: #2354c7;
  --button-text: #03111f;
  --shadow: 0 24px 60px rgba(2, 8, 18, 0.34);
  --shadow-soft: 0 18px 40px rgba(4, 10, 24, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100% - 2rem));
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #edf5ff;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.76);
    --surface-soft: rgba(45, 106, 221, 0.08);
    --line: rgba(53, 110, 214, 0.16);
    --line-strong: rgba(53, 110, 214, 0.22);
    --text: #10233f;
    --muted: #566b8e;
    --primary: #2f78f2;
    --primary-strong: #75b1ff;
    --accent: #1e5fd0;
    --accent-deep: #1546a1;
    --button-text: #ffffff;
    --shadow: 0 20px 50px rgba(28, 73, 148, 0.14);
    --shadow-soft: 0 14px 34px rgba(28, 73, 148, 0.09);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(126, 192, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 20%, rgba(77, 143, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 56% 84%, rgba(100, 156, 255, 0.12), transparent 24rem),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 54%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(22px);
  z-index: -2;
}

body::before {
  top: 6rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(126, 192, 255, 0.14);
}

body::after {
  bottom: 8rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(77, 143, 255, 0.14);
}

.page-shell {
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

body.scroll-settle .page-shell {
  animation: page-bounce 520ms cubic-bezier(0.22, 0.85, 0.2, 1);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, black 28%, transparent 86%);
  z-index: -3;
}

.page-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(34px);
  opacity: 0.3;
}

.page-glow--one {
  top: 10%;
  left: -8rem;
  background: radial-gradient(circle, rgba(126, 192, 255, 0.5) 0%, transparent 70%);
}

.page-glow--two {
  right: -10rem;
  bottom: 18%;
  background: radial-gradient(circle, rgba(77, 143, 255, 0.38) 0%, transparent 72%);
}

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

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

p {
  margin: 0;
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.06;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.glass-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 34%, rgba(126, 192, 255, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 24%, transparent 65%, rgba(126, 192, 255, 0.14)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 36%);
  opacity: 0.56;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.brand__dot {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  box-shadow: 0 0 18px rgba(126, 192, 255, 0.58);
}

.nav__links {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nav__links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.18rem auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

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

.hero {
  padding: 4.6rem 0 4.3rem;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 255, 208, 0.84));
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  text-wrap: balance;
}

.hero__text,
.section-heading p,
.split-layout__content p,
.info-card p,
.quote-card__lead,
.portrait-card__body p,
.video-card__meta p,
.site-footer p {
  color: var(--muted);
}

.hero__text {
  max-width: 62ch;
  margin-top: 1.45rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--button-text);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 36px rgba(77, 143, 255, 0.24);
}

.button--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero__stats li {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.hero__stats strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.5rem;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  min-height: 39rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
}

.hero-card__tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card__mascot {
  position: absolute;
  right: -8%;
  top: 7%;
  width: min(31rem, 112%);
  transform: translateZ(34px);
  filter: drop-shadow(0 28px 40px rgba(3, 14, 10, 0.28));
  animation: float 5.4s ease-in-out infinite;
}

.hero-card__panel {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.hero-card__label {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 2rem 0 4.8rem;
}

.section--contrast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(126, 192, 255, 0.05), rgba(255, 255, 255, 0.02));
  z-index: -1;
}

.section--contrast {
  position: relative;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.split-layout__content h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  text-wrap: balance;
}

.cards-grid,
.team-grid,
.videos-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.portrait-card,
.video-card,
.quote-card {
  border-radius: var(--radius-lg);
}

.info-card {
  padding: 1.4rem;
}

.info-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(126, 192, 255, 0.28), rgba(77, 143, 255, 0.16));
  color: var(--accent);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
}

.info-card h3,
.portrait-card__body h3,
.video-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.32rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1.25rem;
  align-items: start;
}

.split-layout__content p + p {
  margin-top: 1rem;
}

.quote-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(126, 192, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--surface-strong);
}

.quote-card__lead {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--text);
}

.quote-card__list {
  margin-top: 1.3rem;
}

.quote-card__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.quote-card__list li + li {
  margin-top: 0.75rem;
}

.quote-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
}

.portrait-card {
  padding: 1.2rem;
  text-align: center;
  transform-style: preserve-3d;
}

.portrait-card__orb {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(180deg, var(--portrait-top), var(--portrait-bottom));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 28px rgba(5, 18, 13, 0.18);
}

.portrait-card__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(2, 12, 9, 0.12), transparent 42%);
  pointer-events: none;
}

.portrait-card__ring {
  position: absolute;
  inset: 0.95rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.portrait-card__image {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--portrait-width);
  height: 88%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.03) contrast(1.03);
  transform: translateX(-50%) translateY(var(--portrait-shift)) scale(var(--portrait-scale));
}

.portrait-card__body {
  position: relative;
  z-index: 1;
}

.portrait-card--timeo {
  --portrait-top: #b4d9ff;
  --portrait-bottom: #1d4dba;
  --portrait-scale: 1.08;
  --portrait-shift: 2%;
  --portrait-width: 92%;
}

.portrait-card--timeo .portrait-card__image {
  object-position: center bottom;
}

.portrait-card--dani {
  --portrait-top: #c8e3ff;
  --portrait-bottom: #2f78f2;
  --portrait-scale: 1.18;
  --portrait-shift: 8%;
  --portrait-width: 92%;
}

.portrait-card--alexander {
  --portrait-top: #d7ebff;
  --portrait-bottom: #214cae;
  --portrait-scale: 1.02;
  --portrait-shift: 5%;
  --portrait-width: 76%;
}

.pill {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.videos-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.video-card {
  padding: 1rem;
  transform-style: preserve-3d;
}

.video-card__meta {
  padding: 0.5rem 0.35rem 1rem;
}

.video-card__frame {
  position: relative;
  width: min(100%, 21rem);
  margin: 0 auto;
  padding: 0.72rem;
  border-radius: 2rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 15, 31, 0.84);
  box-shadow: var(--shadow-soft);
}

.video-card__frame::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 35%;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.video-card video {
  width: 100%;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #040d1a;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 34px);
  }
  50% {
    transform: translate3d(0, -10px, 34px);
  }
}

@keyframes page-bounce {
  0% {
    transform: translateY(0);
  }
  38% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero__layout,
  .split-layout,
  .cards-grid,
  .team-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    min-height: 32rem;
  }

  .hero-card__mascot {
    width: min(27rem, 106%);
  }
}

@media (max-width: 840px) {
  .site-header {
    padding-top: 0.8rem;
  }

  .nav {
    flex-wrap: wrap;
    border-radius: 1.6rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav__links {
    display: grid;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    gap: 0.45rem;
    transition:
      max-height 260ms ease,
      opacity 180ms ease,
      padding-top 180ms ease;
  }

  .nav__links.is-open {
    max-height: 18rem;
    opacity: 1;
    padding-top: 0.75rem;
  }

  .nav__links a {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    padding-top: 4.1rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .video-card__frame {
    width: min(100%, 19rem);
  }
}

@media (max-width: 640px) {
  .hero__actions,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-card {
    min-height: 28.5rem;
  }

  .hero-card__mascot {
    right: -10%;
    top: 10%;
  }

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