/* AnyContext — site styles */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f3f3f8;
  --surface: #ffffff;
  --border: #e6e6ef;
  --text: #12121a;
  --text-muted: #5b5b6e;
  --accent: #6d5ef6;
  --accent-2: #14b8c9;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(18, 18, 26, .04), 0 8px 28px rgba(18, 18, 26, .06);
  --radius: 18px;
  --maxw: 1120px;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --cb-bg: #12121a;
  --cb-text: #ffffff;
  --cb-border: transparent;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-soft: #12121c;
    --surface: #161622;
    --border: #262636;
    --text: #f1f1f6;
    --text-muted: #a2a2b8;
    --accent: #8b7fff;
    --accent-2: #2dd4e4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --cb-bg: #171726;
    --cb-border: #2a2a40;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.nav-links .btn { color: var(--bg); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 104px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-glow::before {
  width: 520px; height: 520px;
  background: var(--accent);
  top: -180px; right: -120px;
}
.hero-glow::after {
  width: 420px; height: 420px;
  background: var(--accent-2);
  top: 30%; left: -200px;
  opacity: .22;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
}
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Orbit visual */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  border-radius: 50%;
}
.orbit-ring.inner { inset: 18%; }
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 26%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 16px 32px rgba(109, 94, 246, .35));
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}
.chip span { font-size: 16px; line-height: 1; }
.chip:nth-child(odd) { animation-delay: -3s; }
.chip.c1 { top: 4%;  left: 50%; }
.chip.c2 { top: 26%; left: 92%; }
.chip.c3 { top: 74%; left: 92%; }
.chip.c4 { top: 96%; left: 50%; }
.chip.c5 { top: 74%; left: 8%; }
.chip.c6 { top: 26%; left: 8%; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.alt { background: var(--bg-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head p { margin: 16px 0 0; color: var(--text-muted); font-size: 18px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-grid p { margin: 0 0 18px; color: var(--text-muted); }
.about-grid p strong { color: var(--text); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.stat small { color: var(--text-muted); font-size: 14px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.card .icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 26px;
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { margin: 10px 0 0; color: var(--text-muted); font-size: 15.5px; }
.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.tag.live {
  color: #0f9d6b;
  border-color: color-mix(in srgb, #0f9d6b 35%, transparent);
  background: color-mix(in srgb, #0f9d6b 10%, transparent);
}
.tag.soon {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.principle {
  padding: 26px 24px;
  border-top: 2px solid var(--border);
}
.principle .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
}
.principle h3 { margin-top: 12px; font-size: 18px; font-weight: 700; }
.principle p { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 56px;
  border-radius: 28px;
  border: 1px solid var(--cb-border);
  background: var(--cb-bg);
  color: var(--cb-text);
  overflow: hidden;
  position: relative;
}
.contact-box::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -160px;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
}
.contact-box h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.contact-box p { margin: 14px 0 0; opacity: .72; font-size: 17px; }
.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: background .15s;
}
a.contact-item:hover { background: rgba(255, 255, 255, .11); }
.contact-item .ci-icon { font-size: 20px; }
.contact-item small { display: block; opacity: .6; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.contact-item b { font-weight: 600; font-size: 16px; word-break: break-all; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0 96px;
}
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.legal .updated { margin: 12px 0 40px; color: var(--text-muted); font-size: 15px; }
.legal h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.legal h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; }
.legal p, .legal li { color: var(--text-muted); }
.legal p strong, .legal li strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }

/* 404 */
.notfound {
  min-height: calc(100vh - 68px - 130px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound b { font-size: clamp(72px, 14vw, 140px); line-height: 1; font-weight: 800; }
.notfound p { color: var(--text-muted); margin: 14px 0 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .orbit { margin: 0 auto; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .contact-box { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 72px 0; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 4px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .cards, .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .contact-box { padding: 30px 22px; border-radius: 22px; }
  .chip { font-size: 12.5px; padding: 7px 11px; }
  .chip.c2, .chip.c3 { left: 84%; }
  .chip.c5, .chip.c6 { left: 16%; }
  .orbit { max-width: 320px; }
}
