:root {
  --bg: #08090c;
  --surface: #111218;
  --surface-soft: #171820;
  --text: #f2f1f7;
  --muted: #9393a0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #8b78ff;
  --accent-bright: #a99cff;
  --green: #58d68d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family: "Manrope", sans-serif;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -18rem;
  right: -8rem;
  background: var(--accent);
}

.ambient-two {
  bottom: -25rem;
  left: -10rem;
  background: #5b4be3;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(123, 104, 238, 0.25);
  object-fit: cover;
}

.navigation {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.navigation a {
  position: relative;
  transition: color 180ms ease;
}

.navigation a:hover,
.navigation a.active {
  color: var(--text);
}

.navigation a.active::after {
  position: absolute;
  right: 0;
  bottom: -35px;
  left: 0;
  height: 1px;
  background: var(--accent-bright);
  content: "";
}

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d7d5df;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease;
}

.header-cta:hover {
  border-color: rgba(169, 156, 255, 0.4);
  background: rgba(139, 120, 255, 0.08);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  padding: 70px 0 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 28px;
  color: #a9a7b2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(88, 214, 141, 0.1), 0 0 16px rgba(88, 214, 141, 0.6);
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(52px, 5.8vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--accent-bright);
  font-weight: 500;
}

.hero-copy > p {
  max-width: 530px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
}

.primary-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, #8f7eff, #6d5ce7);
  box-shadow: 0 16px 40px rgba(112, 92, 231, 0.22);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(112, 92, 231, 0.34);
}

.primary-button svg {
  width: 19px;
}

.primary-button span {
  margin-left: 5px;
  font-size: 17px;
}

.action-note {
  color: #686873;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 90%;
  aspect-ratio: 1;
  animation: spin 30s linear infinite;
}

.orbit-outer::before,
.orbit-inner::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 16px var(--accent);
  content: "";
}

.orbit-inner {
  width: 65%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 24s linear infinite reverse;
}

.bot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 270px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(27, 28, 37, 0.92), rgba(13, 14, 19, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) rotate(3deg);
}

.bot-avatar {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  margin-right: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(109, 92, 231, 0.35);
  object-fit: cover;
}

.bot-status {
  position: absolute;
  top: 64px;
  left: 64px;
  width: 12px;
  height: 12px;
  border: 3px solid #171820;
  border-radius: 50%;
  background: var(--green);
}

.bot-name {
  align-self: end;
  font-size: 15px;
  font-weight: 800;
}

.bot-tag {
  align-self: end;
  padding: 3px 5px;
  border-radius: 4px;
  color: #dcd7ff;
  background: #6254c8;
  font-size: 7px;
  font-weight: 800;
}

.bot-balance {
  grid-column: 2 / 4;
  margin-top: 8px;
  color: #aaa8b5;
  font-size: 8px;
  font-weight: 700;
}

.bot-progress {
  grid-column: 2 / 4;
  width: 100%;
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.bot-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #e3a95e);
}

.floating-pill {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #b5b3bf;
  background: rgba(17, 18, 24, 0.78);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
}

.pill-one {
  top: 27%;
  right: 1%;
  animation: float 5s ease-in-out infinite;
}

.pill-one span {
  display: inline-block;
  margin-right: 5px;
  color: #efbd64;
  font-size: 11px;
}

.pill-two {
  bottom: 22%;
  left: 0;
  animation: float 6s 1s ease-in-out infinite;
}

.pill-three {
  right: 8%;
  bottom: 10%;
  color: #d8d1ff;
  animation: float 5.5s 0.5s ease-in-out infinite;
}

.spark {
  position: absolute;
  color: var(--accent-bright);
  opacity: 0.7;
}

.spark-one { top: 12%; left: 18%; font-size: 14px; }
.spark-two { right: 12%; bottom: 16%; font-size: 10px; }
.spark-three { right: 8%; top: 24%; color: #fff; font-size: 7px; }

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #666672;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

footer a {
  transition: color 180ms ease;
}

footer a:hover {
  color: var(--accent-bright);
}

.legal-page {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 110px;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.legal-aside {
  position: sticky;
  top: 80px;
  align-self: start;
}

.legal-index,
.section-number {
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.legal-aside h1 {
  margin-top: 18px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.legal-aside p {
  margin-top: 24px;
  color: #686873;
  font-size: 10px;
  font-weight: 600;
}

.legal-content section {
  position: relative;
  padding: 0 0 44px 55px;
  border-left: 1px solid var(--line);
}

.legal-content section:not(:first-child) {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.legal-content .section-number {
  position: absolute;
  top: 3px;
  left: 0;
}

.legal-content section:not(:first-child) .section-number {
  top: 47px;
}

.legal-content h2 {
  margin-bottom: 15px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.legal-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 35px;
    height: 35px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    transition: transform 180ms ease;
  }

  .navigation {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 18, 24, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 13px;
  }

  .navigation a.active::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
    text-align: center;
  }

  .eyebrow,
  .hero-actions {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 460px);
    margin-top: 20px;
  }

  .legal-page {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 70px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  footer,
  .legal-page {
    width: min(100% - 30px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .bot-card {
    width: min(68vw, 245px);
    padding: 17px;
    border-radius: 18px;
  }

  .bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .bot-status {
    top: 51px;
    left: 51px;
  }

  .pill-one {
    top: 21%;
    right: 2%;
  }

  .pill-two {
    bottom: 17%;
    left: 3%;
  }

  .pill-three {
    right: 4%;
    bottom: 5%;
  }

  .spark-one {
    left: 10%;
  }

  .legal-content section {
    padding-left: 35px;
  }

  footer {
    gap: 20px;
  }

  .footer-note {
    display: none;
  }
}

@media (max-width: 370px) {
  .floating-pill {
    padding: 7px 9px;
    font-size: 8px;
  }

  .pill-three {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .floating-pill {
    animation: none;
  }
}
