* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --text: #e8e8ec;
  --muted: #8888a0;
  --accent: #7c6af5;
  --link: #8b7cf5;
  --max: 42rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page.legal h1 {
  margin-bottom: 0.25rem;
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.page > p:not(.updated) {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Lander */
.lander {
  max-width: 64rem;
  padding-top: 0;
}

/* Hero: orb left, copy right */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 4rem;
}

/* Orb scene */
.orb-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
}

#orbCanvas {
  display: block;
  width: 100%;
  height: 280px;
  pointer-events: none;
}

.orb-status {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 1;
}

.status-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100,255,80,0.7);
}

.status-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgb(100,255,80);
  text-shadow: 0 0 20px rgba(100,255,80,0.5), 0 0 40px rgba(100,255,80,0.25);
  line-height: 1.1;
}

/* Hero copy */
.hero-copy {
  padding: 1rem 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: block;
}

.lander h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.lander .tagline {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  transition: opacity 0.15s;
}

.app-store-btn:hover {
  opacity: 0.85;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg);
  padding: 1.75rem;
  transition: background 0.15s;
}

.feature-card:hover {
  background: var(--surface);
}

.feature-icon {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.bottom-links a {
  color: var(--link);
  text-decoration: none;
}

.bottom-links a:hover {
  text-decoration: underline;
}

.bottom-links span {
  color: var(--muted);
}

.lander .support {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 3rem;
}

/* Animations — handled via canvas */

/* Responsive */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 0 3rem;
  }

  .hero-copy {
    order: -1;
  }

  .app-store-btn {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .orb {
    width: 160px;
    height: 160px;
  }
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.legal-links a {
  color: var(--link);
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal section {
  margin-bottom: 2rem;
}

.legal section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.legal section p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.legal section p:last-child {
  margin-bottom: 0;
}

.legal section.disclaimer {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.legal section.disclaimer h2 {
  margin-top: 0;
}

.legal section ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.legal section li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--link);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.page > p:last-child {
  margin-top: 2rem;
}

.page > p:last-child a {
  color: var(--muted);
  text-decoration: none;
}

.page > p:last-child a:hover {
  color: var(--text);
}

.site-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}
