@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #f8f7ff;
  --muted: #a8a4bd;
  --panel: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .11);
  --purple: #9b7cff;
  --cyan: #61e6ff;
  --bg: #090811;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(115, 72, 255, .22), transparent 31rem),
    radial-gradient(circle at 90% 20%, rgba(0, 214, 255, .11), transparent 28rem),
    var(--bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  z-index: 10;
}

a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font: 700 16px Manrope, sans-serif; }
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(155, 124, 255, .28));
}
.nav-links { display: flex; gap: 8px; }
.nav-links a, .pill {
  text-decoration: none; color: var(--muted); padding: 9px 14px; border-radius: 999px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.pill { border: 1px solid var(--line); }

.hero { padding: 110px 0 84px; position: relative; }
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font: 700 14px Manrope, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(155, 124, 255, .22);
}
.eyebrow { color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
h1, h2, h3 { font-family: Manrope, sans-serif; line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { max-width: 850px; margin: 20px 0 24px; font-size: clamp(48px, 8vw, 96px); }
.gradient-text { background: linear-gradient(105deg, #fff 15%, var(--purple) 58%, var(--cyan)); color: transparent; background-clip: text; }
.lead { color: var(--muted); max-width: 650px; font-size: clamp(17px, 2vw, 20px); }
.hero-orb {
  position: absolute; right: 4%; top: 24%; width: 170px; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan)); filter: blur(1px);
  box-shadow: 0 0 90px rgba(115,72,255,.35);
  animation: float 6s ease-in-out infinite;
}
.hero-orb::after { content: ""; position: absolute; inset: 2px; border-radius: inherit; background: #0c0a15; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.section-head p { color: var(--muted); max-width: 450px; margin: 0; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 110px; }
.app-card {
  min-height: 260px; padding: 26px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  backdrop-filter: blur(18px); transition: border .3s ease, transform .3s ease, background .3s ease;
}
.app-card:hover { transform: translateY(-7px); border-color: rgba(155,124,255,.55); background: rgba(255,255,255,.09); }
.app-icon { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(155,124,255,.15); }
.app-card h3 { font-size: 22px; margin: 32px 0 7px; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-links { display: flex; gap: 16px; margin-top: auto; padding-top: 22px; }
.card-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.card-links a::after { content: " ↗"; color: var(--cyan); }

footer { border-top: 1px solid var(--line); padding: 26px 0 46px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

.legal-hero { padding: 72px 0 44px; }
.legal-hero h1 { font-size: clamp(42px, 7vw, 76px); margin: 14px 0 18px; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switch .pill.active { color: var(--ink); border-color: rgba(97, 230, 255, .45); background: rgba(97, 230, 255, .08); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 70px; padding-bottom: 100px; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: .2s; }
.toc a:hover { color: var(--cyan); transform: translateX(4px); }
.legal-content section { scroll-margin-top: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.legal-content h2 { font-size: 25px; margin: 0 0 16px; }
.legal-content p, .legal-content li { color: #c5c1d2; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--cyan); text-underline-offset: 4px; }
.callout { padding: 20px 22px; border: 1px solid rgba(97,230,255,.2); border-radius: 16px; background: rgba(97,230,255,.055); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes float { 50% { transform: translateY(-18px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 820px) {
  .hero-orb { width: 90px; opacity: .55; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: none; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav-links .optional { display: none; }
  .hero { padding: 75px 0 60px; }
  .apps { grid-template-columns: 1fr; }
  .section-head, .footer-row { align-items: start; flex-direction: column; }
  .legal-hero { padding-top: 48px; }
}
