/* ==========================================================================
   AXOLAND WEBSITE — design tokens
   Palette copied 1:1 from the Axoland Client (the actual launcher app):
   near-black base, violet/blue accent duo. Fraunces for display, Inter for
   body, JetBrains Mono for addresses and status readouts — same three
   families the launcher UI uses, so the site reads as the same product.
   ========================================================================== */
:root {
  --bg-deep: #06060c;
  --bg-panel: #100e1e;
  --bg-panel-soft: #17152c;
  --bg-raised: #201c3a;
  --hairline: rgba(151, 133, 255, 0.14);
  --hairline-strong: rgba(151, 133, 255, 0.26);
  --text-primary: #f1f0ff;
  --text-muted: #9b98bd;
  --text-faint: #64617f;

  --accent: #8571ff;
  --accent-strong: #b9adff;
  --accent-soft: rgba(133, 113, 255, 0.16);
  --blue: #6f83ff;
  --blue-soft: rgba(97, 113, 255, 0.18);
  --pink: #ff8fc7;
  --pink-soft: rgba(255, 143, 199, 0.14);
  --danger: #e2685b;
  --success: #79c58f;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --wrap: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------------------------------------------------------------------- */
/* Ambient background                                                     */
/* ---------------------------------------------------------------------- */
body {
  background-image:
    radial-gradient(900px 560px at 14% -8%, rgba(133, 113, 255, 0.12), transparent 60%),
    radial-gradient(700px 460px at 92% 4%, rgba(111, 131, 255, 0.08), transparent 65%);
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #080713;
  background: linear-gradient(145deg, #9a8bff, #576eff);
  box-shadow: 0 6px 16px rgba(85, 92, 255, 0.28);
  flex-shrink: 0;
}
.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-primary);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn--accent { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #0c0a1c; }
.btn--accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--hairline-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.nav__burger { display: none; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero { padding: 76px 0 88px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.04;
  margin: 16px 0 20px;
  letter-spacing: -0.01em;
}
.wordmark__axo { color: var(--accent-strong); }
.hero__subhead {
  max-width: 480px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  margin-bottom: 30px;
}
.status-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(121,197,143,0.18); flex-shrink: 0; }
.status-line .sep { color: var(--text-faint); }

.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero__scroll-cue:hover { color: var(--accent-strong); border-color: rgba(185,173,255,0.4); }
.hero__scroll-cue svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Illustration panel: the axolotl "tank" that also anchors the download CTA */
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.tank {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 0.86;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(220px 180px at 62% 38%, rgba(133,113,255,0.16), transparent 70%),
    linear-gradient(155deg, var(--bg-panel-soft), var(--bg-panel));
  border: 1px solid var(--hairline);
}
.tank__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.tank__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.tank__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(185, 173, 255, 0.35);
  animation: rise 6s linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-260px); opacity: 0; }
}

.tank__cta {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 108px;
  height: 108px;
}
.tank__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(185, 173, 255, 0.28);
  animation: spin 9s linear infinite;
}
.tank__ring::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent-strong);
}
@keyframes spin { to { transform: rotate(360deg); } }
.download-btn {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--accent-strong), var(--blue) 70%);
  color: #0a0918;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(97, 92, 245, 0.35), inset 0 1px rgba(255,255,255,0.3);
  transition: transform 0.15s ease;
}
.download-btn:hover { transform: scale(1.045); }
.download-btn:active { transform: scale(0.98); }
.download-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero__cta-caption {
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
  text-align: center;
}
.hero__cta-meta {
  margin-top: 7px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Section shell                                                          */
/* ---------------------------------------------------------------------- */
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 52px 0; }
.section-head { max-width: 560px; margin: 0 0 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  border: none;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Steps — vertical timeline, not a row of identical cards                */
/* ---------------------------------------------------------------------- */
.timeline { max-width: 700px; }
.timeline-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  position: relative;
  padding-bottom: 34px;
}
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--hairline-strong), transparent);
}
.timeline-row:last-child::before { display: none; }
.timeline-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-panel);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--accent-strong);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-row.is-visible .timeline-num { opacity: 1; transform: translateX(0); }
.timeline-content {
  padding-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.08s, transform 0.5s ease 0.08s;
}
.timeline-row.is-visible .timeline-content { opacity: 1; transform: translateY(0); }
.timeline-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}
.timeline-content__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-strong);
}
.timeline-content__link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------------------------------------------------------------------- */
/* Features — asymmetric bento, sized by what actually matters             */
/* ---------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.feature-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}
.feature-card.is-visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: rgba(133,113,255,0.32); }

.feature--lead {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 30px 26px;
  background:
    radial-gradient(260px 200px at 85% -10%, rgba(133,113,255,0.16), transparent 65%),
    linear-gradient(160deg, var(--bg-panel-soft), var(--bg-panel));
}
.feature--lead .feature-card__icon { width: 46px; height: 46px; margin-bottom: auto; }
.feature--lead h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 20px 0 8px; }
.feature--lead p { font-size: 14px; max-width: 320px; }

.feature-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.feature-card__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.feature-card h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; }
.feature-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

.feature--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}
.feature--wide .feature-card__icon { margin-bottom: 0; flex-shrink: 0; background: var(--blue-soft); color: #c3cbff; }
.feature--wide .feature-card__body h3 { margin-bottom: 4px; }
.feature--wide .feature-card__body p { margin: 0; }

/* ---------------------------------------------------------------------- */
/* Community band                                                          */
/* ---------------------------------------------------------------------- */
.community {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.community__text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 8px;
}
.community__text p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 440px; }
.community__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.server-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #c3cbff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid rgba(111,131,255,0.32);
}
.server-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hairline); padding: 44px 0 34px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-faint); text-transform: uppercase;
  margin: 0 0 12px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
}
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.footer__legal { font-size: 12px; color: var(--text-faint); line-height: 1.6; max-width: 620px; }
.footer__copy { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* ---------------------------------------------------------------------- */
/* Legal document pages                                                    */
/* ---------------------------------------------------------------------- */
.legal {
  padding: 56px 0 90px;
}
.legal__header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.legal__header .eyebrow { display: block; margin-bottom: 14px; }
.legal__header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 10px;
}
.legal__header .updated {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.legal__body {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 36px 0 12px;
  color: var(--text-primary);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--accent-strong);
}
.legal__body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.legal__body strong { color: var(--text-primary); font-weight: 600; }
.legal__body ul { margin: 0 0 14px; padding-left: 20px; }
.legal__body li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.legal__body li strong { color: var(--text-primary); }
.legal__note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.legal__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.legal__back:hover { color: var(--accent-strong); }
.legal__wrap { max-width: 720px; margin: 0 auto 20px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 8px; }
  .tank { width: min(340px, 80vw); }
  .wordmark { max-width: 560px; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature--lead { grid-row: auto; grid-column: 1 / -1; min-height: 0; }
  .community { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .legal__body { padding: 34px 24px; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature--wide { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 60px; }
  .community { padding: 28px 20px; }
  .legal__body { padding: 26px 18px; }
}
