/* Assopiscine Moderna — immersive water + shadcn glass */

:root {
  --color-abyss: #020b12;
  --color-depth: #0a3a52;
  --color-bio: #2ee6d6;
  --color-bio-dim: #1aa89c;
  --color-foam: #e8fffc;
  --color-muted: #8aaab0;
  --color-glass: rgba(232, 255, 252, 0.06);
  --color-stroke: rgba(232, 255, 252, 0.12);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-sans: "Open Sans", system-ui, sans-serif;

  --wrap: min(1160px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Dark shadcn/ui tokens — abyss / bio */
  --ui-radius: 0.85rem;
  --ui-font: var(--font-sans);
  --ui-font-display: var(--font-display);
  --ui-bg: var(--color-abyss);
  --ui-fg: var(--color-foam);
  --ui-muted: rgba(232, 255, 252, 0.08);
  --ui-muted-fg: var(--color-muted);
  --ui-border: rgba(255, 255, 255, 0.12);
  --ui-card: rgba(232, 255, 252, 0.06);
  --ui-card-fg: var(--color-foam);
  --ui-primary: var(--color-bio);
  --ui-primary-fg: var(--color-abyss);
  --ui-secondary: rgba(232, 255, 252, 0.1);
  --ui-secondary-fg: var(--color-foam);
  --ui-accent: var(--color-bio);
  --ui-accent-fg: var(--color-abyss);
  --ui-destructive: #f87171;
  --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --ui-shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
  --ui-ring: 0 0 0 3px color-mix(in srgb, var(--color-bio) 35%, transparent);
  --card-spacing: 1.25rem;
}

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

html { scroll-behavior: smooth; }

.x-body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-abyss);
  color: var(--color-foam);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-bio);
  outline-offset: 3px;
}

.x-wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.x-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.028;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Header */
.x-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 1rem 0;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.x-header.is-scrolled {
  background: rgba(2, 11, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--color-stroke);
}

.x-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.x-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.x-logo__img {
  display: block;
  height: 44px;
  width: auto;
}

@keyframes x-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.x-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.x-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.x-nav a:hover { color: var(--color-foam); }

.x-nav__cta {
  border-radius: 999px;
}

.x-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-stroke);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.x-nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--color-foam);
}

/* Hero */
.x-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.x-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.x-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.x-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  will-change: transform;
}

.x-orb--1 {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(46, 230, 214, 0.55), transparent 70%);
  top: 8%;
  right: 5%;
  animation: x-float-a 14s ease-in-out infinite;
}

.x-orb--2 {
  width: 30vw;
  height: 30vw;
  max-width: 360px;
  max-height: 360px;
  background: radial-gradient(circle, rgba(10, 58, 82, 0.9), transparent 70%);
  bottom: 15%;
  left: 8%;
  animation: x-float-b 18s ease-in-out infinite;
}

.x-orb--3 {
  width: 18vw;
  height: 18vw;
  max-width: 220px;
  max-height: 220px;
  background: radial-gradient(circle, rgba(46, 230, 214, 0.35), transparent 70%);
  top: 40%;
  left: 40%;
  animation: x-float-c 11s ease-in-out infinite;
}

.x-orb--4 {
  width: 14vw;
  height: 14vw;
  max-width: 180px;
  max-height: 180px;
  background: radial-gradient(circle, rgba(232, 255, 252, 0.2), transparent 70%);
  top: 22%;
  left: 18%;
  animation: x-float-a 16s ease-in-out infinite reverse;
}

.x-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 230, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 214, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.x-hero__constellation {
  position: absolute;
  right: 6%;
  top: 14%;
  width: min(28vw, 280px);
  z-index: 1;
  color: var(--color-bio);
  opacity: 0.55;
  animation: x-float-b 12s ease-in-out infinite;
  pointer-events: none;
}

.x-hero__rings {
  position: absolute;
  left: 42%;
  bottom: 12%;
  width: min(36vw, 360px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
}

.x-hero__rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 214, 0.22);
  animation: x-ring 6.5s ease-out infinite;
}

.x-hero__rings span:nth-child(2) { animation-delay: 1.2s; inset: 14%; }
.x-hero__rings span:nth-child(3) { animation-delay: 2.4s; inset: 28%; }

@keyframes x-ring {
  0% { transform: scale(0.7); opacity: 0.65; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes x-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 6%) scale(1.08); }
}

@keyframes x-float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6%, -8%); }
}

@keyframes x-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, 4%) scale(1.2); }
}

.x-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.x-hero__content {
  padding-bottom: 0.5rem;
  max-width: 920px;
}

.x-brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.5rem;
}

.x-brand-lockup__logo {
  display: block;
  height: clamp(48px, 7vw, 70px);
  width: auto;
}

.x-brand-lockup,
.x-hero__lede,
.x-hero__actions,
.x-hero__proof {
  animation: x-fade-up 0.9s var(--ease-out) 0.35s both;
}

.x-hero__lede { animation-delay: 0.5s; }
.x-hero__actions { animation-delay: 0.65s; }
.x-hero__proof { animation-delay: 0.8s; }

@keyframes x-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.x-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bio);
  font-weight: 600;
}

.x-kicker--light { color: var(--color-bio); }

.x-kicker__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-bio);
  box-shadow: 0 0 12px var(--color-bio);
  animation: x-pulse 2s ease-in-out infinite;
}

.x-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 10ch;
  text-shadow: 0 0 40px rgba(2, 11, 18, 0.55);
}

.x-line {
  display: block;
  overflow: hidden;
}

.x-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: x-rise 1s var(--ease) forwards;
}

.x-line:nth-child(2) .x-word { animation-delay: 0.12s; }
.x-line:nth-child(3) .x-word { animation-delay: 0.24s; }

@keyframes x-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.x-word--accent {
  background: linear-gradient(120deg, var(--color-foam) 20%, var(--color-bio) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.x-hero__lede {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: var(--color-muted);
  font-size: 1.08rem;
  font-weight: 300;
}

.x-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.x-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.x-hero__side {
  display: grid;
  gap: 1rem;
  align-content: center;
  animation: x-fade-up 1s var(--ease-out) 0.55s both;
}

.x-hero__alert-card {
  backdrop-filter: blur(12px);
  background: rgba(2, 11, 18, 0.55) !important;
  border-color: rgba(46, 230, 214, 0.28) !important;
}

.x-hero__mini {
  transform: translateX(8%);
}

.x-hero__stat {
  justify-self: end;
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(46, 230, 214, 0.25);
  border-radius: 999px;
  background: rgba(46, 230, 214, 0.08);
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  font-family: var(--font-display);
}

.x-hero__stat strong {
  color: var(--color-bio);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.x-hero__stat span {
  color: var(--color-foam);
  font-size: 0.95rem;
  font-weight: 700;
}

.x-hero__actions .ui-btn--outline {
  border-color: var(--color-stroke);
  color: var(--color-foam);
  border-radius: 999px;
}

.x-hero__actions .ui-btn--outline:hover {
  border-color: rgba(46, 230, 214, 0.45);
  background: var(--color-glass);
}

.x-btn-glow {
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.4);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}

.x-btn-glow:hover {
  box-shadow: 0 0 32px rgba(46, 230, 214, 0.45);
  filter: none;
}

.x-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.x-hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--color-stroke);
  position: relative;
  overflow: hidden;
}

.x-hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bio);
  animation: x-scroll-dash 1.8s ease-in-out infinite;
}

@keyframes x-scroll-dash {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Buttons (legacy kept for soft transitions; prefer ui-btn) */
.x-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.x-btn--glow {
  background: var(--color-bio);
  color: var(--color-abyss);
  box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.4);
}

.x-btn--glow:hover {
  box-shadow: 0 0 32px rgba(46, 230, 214, 0.45);
}

.x-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-120%);
  animation: x-shine 4.5s ease-in-out infinite;
}

@keyframes x-shine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.x-btn--ghost {
  border: 1px solid var(--color-stroke);
  color: var(--color-foam);
  background: transparent;
}

.x-btn--ghost:hover {
  border-color: rgba(46, 230, 214, 0.45);
  background: var(--color-glass);
}

.x-btn--lg {
  padding: 1.1rem 1.7rem;
  font-size: 1rem;
}

.x-textlink {
  color: var(--color-bio);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.x-textlink:hover { text-decoration: underline; }

/* Marquee */
.x-marquee {
  border-block: 1px solid var(--color-stroke);
  background: color-mix(in srgb, var(--color-depth) 35%, var(--color-abyss));
  overflow: hidden;
  padding: 1rem 0;
}

.x-marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--color-foam) 55%, transparent);
  animation: x-marquee 32s linear infinite;
}

.x-marquee__track span:nth-child(odd) {
  color: var(--color-foam);
}

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

/* Sections */
.x-section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}

.x-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.x-h2--light { color: var(--color-foam); }

.x-section__head {
  margin-bottom: 3rem;
}

.x-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.x-section__head .x-h2 { margin-top: 0.5rem; }

.x-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.x-about__sticky {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.x-lead {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.55;
}

.x-about__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.x-about .ui-avatar {
  background: color-mix(in srgb, var(--color-depth) 70%, var(--color-bio));
  color: var(--color-foam);
  border-color: var(--color-abyss);
}

.x-tabs .ui-tabs__list {
  background: rgba(232, 255, 252, 0.06);
  border-color: var(--color-stroke);
  flex-wrap: wrap;
}

.x-tabs .ui-tabs__trigger[aria-selected="true"] {
  background: rgba(46, 230, 214, 0.14);
  color: var(--color-foam);
  box-shadow: none;
}

.x-tabs__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-bio);
}

.x-tabs .ui-tabs__panel p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 300;
}

/* Glass cards */
.x-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.x-glass-card {
  backdrop-filter: blur(12px);
  background:
    linear-gradient(160deg, rgba(46, 230, 214, 0.08), transparent 45%),
    var(--ui-card);
  border-color: var(--color-stroke);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
  transform-style: preserve-3d;
}

.x-glass-card:hover {
  border-color: rgba(46, 230, 214, 0.4);
  box-shadow: var(--ui-shadow-md);
}

.x-glass-card .ui-card__footer {
  background: rgba(2, 11, 18, 0.25);
  border-top-color: var(--color-stroke);
}

.x-glass-card .ui-btn--link {
  color: var(--color-bio);
}

.x-safety__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.x-safety__lede {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-weight: 300;
  max-width: 36ch;
}

.x-glass-acc {
  backdrop-filter: blur(12px);
  background: var(--ui-card);
  border-color: var(--color-stroke);
}

.x-glass-acc .ui-acc__trigger {
  color: var(--color-foam);
}

.x-glass-acc .ui-acc__item + .ui-acc__item {
  border-top-color: var(--color-stroke);
}

/* Spotlight */
.x-spotlight {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.x-spotlight__bg {
  position: absolute;
  inset: -10% 0;
  background:
    linear-gradient(180deg, rgba(2, 11, 18, 0.55), rgba(2, 11, 18, 0.82)),
    url("https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.x-spotlight__content {
  padding: 5rem 0;
  max-width: 36rem;
}

.x-spotlight__content p:not(.x-kicker) {
  color: color-mix(in srgb, var(--color-foam) 75%, transparent);
  font-weight: 300;
  margin: 1rem 0 1.75rem;
}

/* News */
.x-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.x-news-card .ui-card__header .ui-badge {
  margin-bottom: 0.55rem;
  width: fit-content;
}

.x-news-card .ui-card__title a {
  text-decoration: none;
}

.x-news-card .ui-card__media img {
  transition: transform 0.8s var(--ease);
  filter: saturate(0.9);
}

.x-news-card:hover .ui-card__media img {
  transform: scale(1.06);
}

/* CTA */
.x-cta {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
}

.x-cta__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(46, 230, 214, 0.22), transparent 65%);
  animation: x-cta-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes x-cta-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.x-cta__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.x-cta__title em {
  font-style: normal;
  color: var(--color-bio);
}

.x-cta__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.x-cta__copy > p {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  max-width: 40ch;
  font-weight: 300;
}

.x-cta__people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.x-cta .ui-avatar {
  background: color-mix(in srgb, var(--color-depth) 70%, var(--color-bio));
  color: var(--color-foam);
  border-color: var(--color-abyss);
}

.x-newsletter__form {
  display: grid;
  gap: 1rem;
}

.x-newsletter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.x-newsletter .ui-input {
  background: rgba(2, 11, 18, 0.55);
  border-color: var(--color-stroke);
  color: var(--color-foam);
}

.x-newsletter .ui-btn--outline {
  border-color: var(--color-stroke);
  color: var(--color-foam);
}

.x-newsletter .ui-btn--outline:hover {
  background: var(--color-glass);
}

.x-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.x-events__box {
  min-width: min(100%, 320px);
}

/* Sticky toast CTA */
.x-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  width: min(420px, calc(100% - 1.5rem));
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.x-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.x-toast[hidden] {
  display: block !important;
}

.x-toast__card {
  padding: 0.85rem 0;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--color-abyss) 82%, transparent);
  border-color: rgba(46, 230, 214, 0.35);
  box-shadow: var(--ui-shadow-md);
}

.x-toast__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.x-toast__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.x-toast__desc {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.x-toast .ui-btn--ghost {
  color: var(--color-muted);
  font-size: 1.15rem;
  line-height: 1;
}

.x-footer {
  border-top: 1px solid var(--color-stroke);
  padding: 3rem 0;
}

.x-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.x-footer__brand {
  display: inline-block;
  text-decoration: none;
}

.x-footer__brand img {
  display: block;
  height: 42px;
  width: auto;
}

.x-footer__meta {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.x-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.x-footer__links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.x-footer__links a:hover { color: var(--color-bio); }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .x-word,
  .x-brand-lockup,
  .x-hero__lede,
  .x-hero__actions,
  .x-hero__alert,
  .x-hero__side,
  .x-hero__proof,
  .x-hero__rings span,
  .x-hero__constellation,
  [data-reveal],
  .x-orb,
  .x-marquee__track,
  .x-btn__shine,
  .x-hero__scroll-line::after,
  .x-cta__glow,
  .x-news-card .ui-card__media img,
  .x-toast {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .x-toast.is-visible { transform: translateX(-50%); }
  .x-grain { display: none; }
}

@media (max-width: 900px) {
  .x-nav { display: none; }
  .x-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(2, 11, 18, 0.96);
    border-bottom: 1px solid var(--color-stroke);
  }
  .x-nav.is-open a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-stroke);
  }
  .x-nav__cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: 999px !important;
  }
  .x-nav-toggle { display: inline-flex; }
  .x-header__inner { position: relative; }

  .x-about__grid,
  .x-service-grid,
  .x-safety__grid,
  .x-cta__layout,
  .x-news,
  .x-hero__layout {
    grid-template-columns: 1fr;
  }

  .x-about__sticky { position: static; }

  .x-hero {
    padding: 6.5rem 0 3.5rem;
    min-height: auto;
  }

  .x-hero__mini { transform: none; }
  .x-hero__constellation { opacity: 0.28; width: 160px; }
  .x-hero__stat { justify-self: start; }

  .x-cta {
    text-align: left;
  }
}
