/* LearningStudio — style lab /educalia.app/styles */
:root {
  --ink: #0b1020;
  --ink-soft: #161d33;
  --paper: #f3f5f9;
  --paper-2: #e8ecf4;
  --text: #12172a;
  --muted: #5a6478;
  --line: rgba(18, 23, 42, 0.1);
  --brand: #6b5ce7;
  --brand-deep: #4f46c8;
  --glow: #8b7cf5;
  --accent: #1fa7a0;
  --accent-soft: #d8f3f1;
  --warn: #c97b2e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 16, 32, 0.14);
  --radius: 18px;
  --max: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82em;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Top bar —— */
.lab-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.lab-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.lab-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(139, 124, 245, 0.5);
}

.lab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.lab-links a.is-active {
  color: var(--glow);
}

.pill-link {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* —— Hero lab —— */
.lab-hero {
  position: relative;
  padding: 4rem 0 3rem;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(107, 92, 231, 0.38), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(31, 167, 160, 0.2), transparent 50%),
    linear-gradient(165deg, #070a14 0%, var(--ink) 50%, #1a2140 100%);
}

.lab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 15%, transparent 75%);
  pointer-events: none;
}

.lab-hero .container {
  position: relative;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lab-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
}

.lab-hero p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
}

/* —— Layout sections —— */
.lab-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.lab-section:nth-child(even) {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.lab-section.dark {
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(107, 92, 231, 0.2), transparent),
    linear-gradient(180deg, #12182c, var(--ink));
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lab-section.dark .muted {
  color: rgba(255, 255, 255, 0.65);
}

.lab-section.dark .swatch-card,
.lab-section.dark .demo-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 550;
}

.muted {
  color: var(--muted);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(11, 16, 32, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 220px;
}

.demo-card h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.demo-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.demo-card.dark .tag {
  color: var(--glow);
}

.demo-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(107, 92, 231, 0.12), transparent 50%),
    var(--paper-2);
  overflow: hidden;
  position: relative;
}

.demo-card.dark .demo-stage,
.lab-section.dark .demo-stage {
  background:
    radial-gradient(circle at 70% 30%, rgba(107, 92, 231, 0.28), transparent 45%),
    #0e1428;
}

.demo-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.lab-section.dark .demo-meta {
  color: rgba(255, 255, 255, 0.55);
}

/* —— Tokens —— */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.swatch {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.swatch .chip-color {
  height: 72px;
}

.swatch .info {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

.swatch strong {
  display: block;
}

.type-row {
  display: grid;
  gap: 1rem;
}

.type-sample .display {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.type-sample .body {
  margin: 0;
  font-size: 1.05rem;
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--glow), var(--brand-deep));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(107, 92, 231, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(31, 167, 160, 0.35);
}

.btn-glow:hover {
  box-shadow: 0 0 0 4px rgba(139, 124, 245, 0.25), 0 12px 36px rgba(107, 92, 231, 0.45);
}

/* —— Cards / surfaces —— */
.lift-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.badge {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(139, 124, 245, 0.18);
  color: var(--brand-deep);
}

.badge.teal {
  background: var(--accent-soft);
  color: #0f6e69;
}

.badge.dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* =========================
   ANIMATIONS — catalogue
   ========================= */

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

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

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

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 124, 245, 0.55), 0 0 24px rgba(107, 92, 231, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(139, 124, 245, 0), 0 0 40px rgba(107, 92, 231, 0.55);
  }
}

@keyframes dash-orbit {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes aurora {
  0%,
  100% {
    transform: translate(-8%, -4%) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(6%, 8%) scale(1.12);
    opacity: 0.9;
  }
}

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

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

@keyframes blink-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes count-up-hint {
  from {
    letter-spacing: 0.2em;
    opacity: 0.4;
  }
  to {
    letter-spacing: 0.02em;
    opacity: 1;
  }
}

.anim-rise {
  animation: rise 0.9s ease both;
}

.anim-float {
  animation: float 7s ease-in-out infinite;
}

.anim-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--glow), var(--brand-deep));
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.anim-breathe {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1c2342, #0b1020);
  border: 2px solid rgba(139, 124, 245, 0.5);
  animation: breathe 3.2s ease-in-out infinite;
}

.anim-shimmer {
  width: min(100%, 220px);
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0.08) 60%
  );
  background-size: 200% 100%;
  background-color: var(--brand);
  animation: shimmer 2.2s linear infinite;
}

/* —— Orbit system (landing) —— */
.orbit-demo {
  position: relative;
  width: 160px;
  height: 160px;
}

.orbit-demo .orb {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(31, 167, 160, 0.35), transparent 45%),
    linear-gradient(145deg, #1c2342, #0b1020);
  border: 2px solid rgba(139, 124, 245, 0.55);
  display: grid;
  place-items: center;
  z-index: 2;
}

.orbit-demo .orb img {
  width: 58%;
  border-radius: 50%;
}

.orbit-demo .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  animation: spin 28s linear infinite;
}

.orbit-demo.float {
  animation: float 7s ease-in-out infinite;
}

/* Multi dotted orbits */
.orbit-multi {
  position: relative;
  width: 180px;
  height: 180px;
}

.orbit-multi .core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c2342, #0b1020);
  border: 2px solid rgba(139, 124, 245, 0.65);
  box-shadow: 0 0 32px rgba(107, 92, 231, 0.4);
  display: grid;
  place-items: center;
  z-index: 3;
}

.orbit-multi .core img {
  width: 55%;
  border-radius: 50%;
}

.orbit-multi .path {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dotted rgba(255, 255, 255, 0.22);
  animation: spin 22s linear infinite;
}

.orbit-multi .path.mid {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(139, 124, 245, 0.35);
  animation: spin-rev 18s linear infinite;
}

.orbit-multi .path.inner {
  inset: 22%;
  border: 1px solid rgba(31, 167, 160, 0.35);
  animation: spin 14s linear infinite;
}

.orbit-multi .sat {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
  top: 0;
  left: 50%;
  margin-left: -5px;
  animation: blink-dot 1.6s ease-in-out infinite;
}

.orbit-multi .path.mid .sat {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* SVG dashed ring */
.svg-orbit {
  width: 150px;
  height: 150px;
}

.svg-orbit circle.track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.svg-orbit circle.dash {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 18;
  animation: dash-orbit 8s linear infinite;
}

.svg-orbit .hub {
  fill: url(#orbGrad);
}

/* Chips on spinning arm */
.orbit-chips {
  position: relative;
  width: 200px;
  height: 200px;
}

.orbit-chips .hub {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c2342, #0b1020);
  border: 2px solid rgba(139, 124, 245, 0.55);
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
}

.orbit-chips .arm {
  position: absolute;
  inset: 0;
  animation: spin 20s linear infinite;
}

.orbit-chips .arm .chip {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  animation: spin-rev 20s linear infinite; /* keep label upright */
}

.orbit-chips .arm.slow {
  animation-duration: 32s;
}

.orbit-chips .arm.slow .chip {
  animation-duration: 32s;
  top: auto;
  bottom: 6%;
}

/* Aurora blobs */
.aurora-stage {
  position: absolute;
  inset: 0;
}

.aurora-blob {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  filter: blur(28px);
  animation: aurora 9s ease-in-out infinite;
}

.aurora-blob.a {
  background: rgba(107, 92, 231, 0.55);
  top: 5%;
  left: 10%;
}

.aurora-blob.b {
  background: rgba(31, 167, 160, 0.4);
  bottom: 0;
  right: 5%;
  animation-delay: -3s;
}

/* Grid mask sample */
.grid-sample {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

/* Marquee */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Stagger rise demo */
.stagger span {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(107, 92, 231, 0.15);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 600;
  animation: rise 0.7s ease both;
}

.stagger span:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger span:nth-child(3) {
  animation-delay: 0.2s;
}
.stagger span:nth-child(4) {
  animation-delay: 0.3s;
}

.lab-section.dark .stagger span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Skeleton */
.skeleton {
  width: 85%;
  display: grid;
  gap: 0.55rem;
}

.skeleton i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(18, 23, 42, 0.08),
    rgba(18, 23, 42, 0.16),
    rgba(18, 23, 42, 0.08)
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.skeleton i:nth-child(1) {
  width: 70%;
}
.skeleton i:nth-child(2) {
  width: 100%;
}
.skeleton i:nth-child(3) {
  width: 55%;
}

.lab-section.dark .skeleton i {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.06)
  );
  background-size: 200% 100%;
}

/* Pricing mini */
.plan-mini {
  width: 100%;
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #171e36, var(--ink));
  color: var(--white);
  border: 1px solid rgba(139, 124, 245, 0.35);
}

.plan-mini.featured {
  box-shadow: 0 16px 40px rgba(107, 92, 231, 0.35);
}

.plan-mini .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0.35rem 0;
}

/* TOC sticky side on large */
.toc-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.toc-note a {
  color: var(--glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer.lab-foot {
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   PROPOSITIONS — alternatives modernes
   ========================= */

.prop-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(139, 124, 245, 0.12);
  border: 1px solid rgba(139, 124, 245, 0.28);
  font-size: 0.92rem;
}

.prop-banner strong {
  color: var(--glow);
}

.vote {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.vote button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.vote button:hover {
  border-color: var(--glow);
  color: var(--white);
}

.lab-section:not(.dark) .vote button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--text);
}

/* A — Border beam */
@keyframes border-spin {
  to {
    --angle: 360deg;
  }
}

.border-beam {
  position: relative;
  width: min(100%, 200px);
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #0e1428;
  color: var(--white);
  text-align: center;
  font-weight: 600;
  z-index: 0;
  isolation: isolate;
}

.border-beam::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent 40%, var(--glow), var(--accent), transparent 70%);
  animation: border-spin 3s linear infinite;
  z-index: -2;
}

.border-beam::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: #0e1428;
  z-index: -1;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* B — Spotlight card */
.spot-card {
  position: relative;
  width: 100%;
  min-height: 120px;
  border-radius: 16px;
  padding: 1.25rem;
  background: #101628;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: var(--white);
}

.spot-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 245, 0.45), transparent 70%);
  left: var(--mx, 50%);
  top: var(--my, 40%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s;
}

.spot-card span {
  position: relative;
  font-weight: 600;
}

/* C — Mesh gradient morph */
@keyframes mesh-shift {
  0%,
  100% {
    background-position: 0% 40%, 100% 60%, 50% 100%;
  }
  50% {
    background-position: 80% 20%, 20% 80%, 60% 30%;
  }
}

.mesh-blob {
  width: 100%;
  height: 120px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 124, 245, 0.85), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(31, 167, 160, 0.7), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(79, 70, 200, 0.65), transparent 45%),
    #0b1020;
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: mesh-shift 10s ease-in-out infinite;
  filter: saturate(1.1);
}

/* D — Clip-path reveal text */
@keyframes clip-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.clip-reveal {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
  color: var(--white);
  animation: clip-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-duration: 2.8s;
}

/* E — 3D tilt */
.tilt-wrap {
  perspective: 700px;
}

.tilt-card {
  width: 160px;
  height: 110px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1c2342, #0b1020);
  border: 1px solid rgba(139, 124, 245, 0.4);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transform: rotateX(12deg) rotateY(-16deg);
  transition: transform 0.35s ease;
  box-shadow: 18px 22px 40px rgba(0, 0, 0, 0.45);
}

.tilt-wrap:hover .tilt-card {
  transform: rotateX(0) rotateY(0);
}

/* F — Liquid CTA */
@keyframes liquid {
  0%,
  100% {
    border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%;
  }
  50% {
    border-radius: 45% 55% 40% 60% / 55% 40% 60% 45%;
  }
}

.liquid-btn {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--glow), var(--accent));
  animation: liquid 4s ease-in-out infinite;
  box-shadow: 0 12px 36px rgba(107, 92, 231, 0.4);
}

/* G — Conic loader / progress */
@keyframes conic-spin {
  to {
    transform: rotate(360deg);
  }
}

.conic-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--glow), var(--accent), transparent 65%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: conic-spin 1.1s linear infinite;
}

/* H — Noise film */
.noise-panel {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #12182c, #1a2140 50%, #0f3d3a);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 600;
}

.noise-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* I — Typewriter caret */
@keyframes caret-blink {
  50% {
    border-color: transparent;
  }
}

.typewriter {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  border-right: 2px solid var(--glow);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation:
    type-expand 3.5s steps(22) infinite alternate,
    caret-blink 0.8s step-end infinite;
}

@keyframes type-expand {
  0%,
  10% {
    width: 0;
  }
  60%,
  100% {
    width: 14.5ch;
  }
}

/* J — Stacked parallax layers */
.parallax-stack {
  position: relative;
  width: 140px;
  height: 110px;
}

.parallax-stack i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.parallax-stack i:nth-child(1) {
  background: rgba(31, 167, 160, 0.35);
  transform: translate(14px, 14px);
  animation: float 5s ease-in-out infinite;
}

.parallax-stack i:nth-child(2) {
  background: rgba(107, 92, 231, 0.45);
  transform: translate(7px, 7px);
  animation: float 5s ease-in-out 0.4s infinite;
}

.parallax-stack i:nth-child(3) {
  background: linear-gradient(145deg, #1c2342, #0b1020);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  animation: float 5s ease-in-out 0.8s infinite;
}

/* K — Magnetic pill row (CSS hover expand) */
.mag-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mag-row a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s;
}

.mag-row a:hover {
  transform: scale(1.12);
  background: rgba(139, 124, 245, 0.25);
  border-color: rgba(139, 124, 245, 0.55);
  color: var(--white);
}

/* L — Bento cell with spring */
@keyframes spring-in {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.04);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.spring-cell {
  width: 100%;
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(139, 124, 245, 0.2), rgba(31, 167, 160, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  animation: spring-in 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

/* M — Horizontal progress beam */
@keyframes beam {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(220%);
  }
}

.progress-line {
  position: relative;
  width: 85%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--glow), var(--accent), transparent);
  animation: beam 1.6s ease-in-out infinite;
}

/* N — Soft dual-tone wordmark */
.duo-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 550;
  background: linear-gradient(105deg, var(--white) 40%, var(--glow) 55%, var(--accent) 75%, var(--white) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* O — Radar sweep (alt to orbit) */
@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

.radar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle, transparent 55%, rgba(139, 124, 245, 0.08) 56%, transparent 70%),
    radial-gradient(circle, transparent 30%, rgba(255, 255, 255, 0.06) 31%, transparent 45%);
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(139, 124, 245, 0.55) 50deg, transparent 80deg);
  animation: radar 3.5s linear infinite;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 16px var(--glow);
}

/* P — Line draw icon */
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.line-draw {
  width: 100px;
  height: 100px;
}

.line-draw path {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 2.4s ease forwards infinite alternate;
}

@media (max-width: 720px) {
  .lab-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
