:root {
  --bg: #090b12;
  --bg-deep: #0d1020;
  --panel: rgba(18, 20, 31, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.5);
  --purple: #9f71ff;
  --purple-2: #bf77ff;
  --pink: #ff78db;
  --blue: #5fe4ff;
  --glass: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

h1, h2, h3, nav, .btn-primary, .btn-secondary, .brand-link {
  font-family: 'Space Grotesk', sans-serif;
}

.wrap {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 18, 0.32);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease;
}

header.scrolled {
  background: rgba(9, 11, 18, 0.8);
}

.navbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.brand-link {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

nav.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

nav.links a {
  transition: color 0.2s ease;
}

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

.contact-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(119, 83, 228, 0.26), rgba(16, 18, 23, 0.2) 35%, rgba(4, 5, 10, 0.8) 100%),
    radial-gradient(circle at 20% 20%, rgba(126, 96, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #0a0d18 0%, #101420 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 24%, rgba(174, 120, 255, 0.22), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(255, 120, 219, 0.14), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(105, 98, 255, 0.08), transparent 35%);
  filter: blur(16px);
}

.hero-background::before,
.hero-background::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
}

.hero-background::before {
  width: 520px;
  height: 520px;
  left: 54%;
  top: 60%;
  background: rgba(134, 104, 255, 0.18);
}

.hero-background::after {
  width: 600px;
  height: 600px;
  left: 42%;
  top: 18%;
  background: rgba(255, 120, 219, 0.12);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0 72px;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.hero-tagline {
  margin: 18px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #a164ff 0%, #6d8bff 100%);
  color: #f6f0ff;
  box-shadow: 0 16px 30px rgba(113, 87, 220, 0.45);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.hero-visual {
  position: relative;
  width: min(100%, 560px);
  height: 560px;
  margin-left: auto;
  filter: drop-shadow(0 34px 60px rgba(110, 80, 255, 0.24));
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-one {
  width: 260px;
  height: 260px;
  right: 20%;
  top: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(255, 125, 214, 0.7) 20%, rgba(125, 93, 255, 0.6) 46%, rgba(14, 17, 26, 0.1) 75%);
}

.orb-two {
  width: 340px;
  height: 340px;
  left: 18%;
  bottom: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(96, 205, 255, 0.7) 20%, rgba(155, 109, 255, 0.38) 42%, rgba(10, 12, 18, 0.05) 78%);
}

.visual-shape {
  position: absolute;
  border-radius: 30% 60% 55% 45% / 36% 28% 72% 64%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, rgba(255,255,255,0.42), rgba(183, 162, 255, 0.12) 16%, rgba(131, 97, 255, 0.24) 46%, rgba(105, 105, 255, 0.08) 100%);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 28px rgba(137, 92, 255, 0.2);
}

.shape-a {
  width: 280px;
  height: 240px;
  right: 18%;
  top: 14%;
  transform: rotate(28deg) skewY(-12deg);
  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(175, 180, 255, 0.28) 26%, rgba(70, 140, 255, 0.1) 58%, rgba(164, 120, 255, 0.24) 100%);
}

.shape-b {
  width: 260px;
  height: 220px;
  left: 20%;
  bottom: 14%;
  transform: rotate(-32deg) skewY(12deg);
  background: linear-gradient(145deg, rgba(255,255,255,0.6), rgba(207, 147, 255, 0.18) 20%, rgba(80, 195, 255, 0.16) 58%, rgba(134, 93, 255, 0.2) 100%);
}

.shape-c {
  width: 230px;
  height: 200px;
  right: 26%;
  bottom: 15%;
  transform: rotate(16deg) skewY(-8deg);
  background: linear-gradient(145deg, rgba(255,255,255,0.52), rgba(168, 186, 255, 0.2) 24%, rgba(183, 108, 255, 0.18) 52%, rgba(88, 221, 255, 0.1) 100%);
}

.orbital-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 0 18px rgba(150, 120, 255, 0.14);
}

.orbital-ring-one {
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%) rotateX(58deg) rotateY(12deg);
}

.orbital-ring-two {
  width: 360px;
  height: 360px;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) rotateY(76deg) rotateZ(8deg);
}

.orbital-ring-three {
  width: 420px;
  height: 420px;
  border-color: rgba(255, 255, 255, 0.62);
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-18deg);
}

.orbital-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d9d8ff 24%, #8b78ff 48%, rgba(139, 120, 255, 0.7) 100%);
  box-shadow: 0 0 18px rgba(184, 166, 255, 0.7);
  z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dot-one {
  --orbit-radius: 118px;
  animation: orbit-dot-one 6s linear infinite;
}

.dot-two {
  --orbit-radius: 140px;
  width: 16px;
  height: 16px;
  animation: orbit-dot-two 8s linear infinite;
}

.dot-three {
  --orbit-radius: 170px;
  width: 14px;
  height: 14px;
  animation: orbit-dot-three 10s linear infinite reverse;
}

.hero-embedded-logo {
  position: absolute;
  width: 180px;
  height: 180px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.15) contrast(1.05);
  box-shadow: 0 0 30px rgba(166, 118, 255, 0.34);
  opacity: 0.95;
  z-index: 2;
}

.visual-shade {
  position: absolute;
  inset: 12% 14% 9% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.2), rgba(255,255,255,0.04) 32%, transparent 65%);
  filter: blur(8px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: rise 0.7s ease forwards;
}

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

@keyframes orbit-dot-one {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius));
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-radius));
  }
}

@keyframes orbit-dot-two {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius));
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-radius));
  }
}

@keyframes orbit-dot-three {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius));
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg) translateX(var(--orbit-radius));
  }
}

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 420px);
    height: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 24px, 1320px);
  }

  .navbar {
    padding: 15px 0;
    gap: 12px;
  }

  nav.links {
    gap: 10px;
    font-size: 10px;
    overflow-x: auto;
    justify-content: flex-end;
  }

  .contact-pill {
    padding: 9px 12px;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-visual {
    width: min(100%, 300px);
    height: 300px;
  }
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 11, 18, 0.75);
  color: rgba(255, 255, 255, 0.62);
  font: 12px 'Space Grotesk', sans-serif;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 22px 0;
}

/* Shared footer (site-footer.js): copyright left; note + back-to-top grouped right. */
.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

footer a {
  color: rgba(255, 255, 255, 0.78);
}

footer a:hover { color: #fff; }

footer a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 28, 35, 0.72);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7b8f, #4d72ff);
}

/* ---------- Footer legal line (site-footer.js) ---------- */

/* Each part stays whole; lines break only between parts, at the dots. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal > span { white-space: nowrap; }

.footer-legal .footer-sep {
  padding: 0 8px;
  opacity: 0.6;
}

.footer-legal-link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-legal-link:hover { color: #fff; }
.footer-legal-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Legal pop-up (legal-modal.js) ---------- */

html.legal-open { overflow: hidden; }
html.legal-open body { padding-right: var(--legal-scrollbar, 0px); }

.legal-modal {
  width: min(720px, calc(100% - 32px));
  max-height: min(84vh, 900px);
  max-height: min(84dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fbfaf7;
  color: #17181d;
  box-shadow: 0 30px 80px rgba(9, 11, 18, 0.35);
  overflow: hidden;
}

.legal-modal[open] {
  display: flex;
  flex-direction: column;
  animation: legal-in 0.28s ease-out;
}

.legal-modal::backdrop {
  background: rgba(9, 11, 18, 0.55);
  backdrop-filter: blur(2px);
}

@keyframes legal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.legal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px) clamp(28px, 4vw, 40px);
  font: 400 16px/1.65 'Newsreader', Georgia, serif;
}

.legal-title {
  margin: 0 48px 6px 0;
  font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.05 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

.legal-title:focus { outline: none; }
.legal-body:focus { outline: none; }
.legal-body:focus-visible { outline: 2px solid #17181d; outline-offset: -4px; border-radius: 18px; }

.legal-updated {
  margin: 0 0 clamp(20px, 3vw, 28px);
  color: rgba(23, 24, 29, 0.6);
  font: 500 12px/1.4 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-body h3 {
  margin: 26px 0 8px;
  font: 600 1.1rem/1.25 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body ul { margin: 0 0 12px; color: rgba(23, 24, 29, 0.8); }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 6px; }

.legal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 24, 29, 0.14);
  border-radius: 50%;
  background: #fbfaf7;
  color: #17181d;
  cursor: pointer;
}

.legal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.legal-close:hover { border-color: #17181d; }
.legal-close:focus-visible { outline: 2px solid #17181d; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .legal-modal[open] { animation: none; }
}
