:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #05070d;
  color: #eef3ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 15%, rgba(42, 89, 137, 0.16), transparent 30rem),
    radial-gradient(circle at 12% 52%, rgba(43, 112, 93, 0.08), transparent 28rem),
    #05070d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("vendor/img/night-sky.png") center / cover;
  opacity: 0.13;
}

a { color: inherit; text-decoration: none; }
.site-shell { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 650; letter-spacing: 0.02em; }
.brand-mark { width: 22px; height: 22px; border: 1px solid #79f2c0; border-radius: 50%; box-shadow: inset -5px -2px 0 rgba(121, 242, 192, 0.18); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 28px; height: 8px; border: 1px solid rgba(121, 242, 192, 0.65); border-radius: 50%; transform: rotate(-25deg); left: -4px; top: 6px; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; color: #94a1b8; font-size: 12px; }
.local-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #79f2c0; box-shadow: 0 0 12px #79f2c0; }

.hero { min-height: 510px; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; padding: 52px 0 70px; }
.eyebrow { margin: 0 0 18px; color: #79f2c0; font-size: 11px; font-weight: 650; letter-spacing: 0.2em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 650; }
.subtitle { max-width: 590px; margin: 26px 0 0; color: #9ca9bd; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.primary-button { display: inline-flex; align-items: center; gap: 28px; padding: 13px 19px; border: 1px solid rgba(121, 242, 192, 0.28); border-radius: 8px; background: #79f2c0; color: #07130f; font-size: 14px; font-weight: 650; transition: transform 160ms ease, box-shadow 160ms ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(121, 242, 192, 0.16); }
.hero-note { color: #6f7c90; font-size: 12px; }

.planet-scene { position: relative; width: min(100%, 390px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.planet { width: 68%; aspect-ratio: 1; border-radius: 50%; background: url("vendor/img/earth-blue-marble.jpg") center / cover; box-shadow: inset -45px -20px 60px #02040a, inset 12px 8px 30px rgba(124, 196, 255, 0.2), -14px -6px 70px rgba(75, 150, 207, 0.18), 20px 25px 80px #02040a; animation: planet-float 7s ease-in-out infinite; }
.orbit { position: absolute; inset: 10%; border: 1px solid rgba(133, 178, 207, 0.18); border-radius: 50%; transform: rotate(-24deg) scaleY(0.42); }
.orbit-two { inset: 1%; transform: rotate(54deg) scaleY(0.54); border-color: rgba(121, 242, 192, 0.12); }
.orbit i { position: absolute; width: 7px; height: 7px; left: 15%; top: 15%; border-radius: 50%; background: #79f2c0; box-shadow: 0 0 14px #79f2c0; }
.orbit-two i { left: 80%; top: 72%; width: 4px; height: 4px; background: #71b7ff; }
.scene-label { position: absolute; right: 2%; bottom: 11%; color: #526075; font-size: 9px; letter-spacing: 0.18em; }

.demos { padding: 54px 0 70px; border-top: 1px solid rgba(148, 163, 184, 0.1); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin: 0; font-size: 26px; letter-spacing: -0.025em; font-weight: 600; }
.section-heading > p { margin: 0 0 3px; color: #66748a; font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.demo-card { grid-column: span 2; min-height: 242px; display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 12px; background: linear-gradient(145deg, rgba(20, 27, 40, 0.88), rgba(10, 14, 23, 0.92)); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.demo-card:nth-child(4), .demo-card:nth-child(5) { grid-column: span 3; }
.demo-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(145deg, rgba(25, 34, 49, 0.96), rgba(11, 17, 27, 0.96)); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-number { color: #59667b; font: 11px ui-monospace, monospace; }
.card-glyph { color: var(--accent); font-size: 25px; line-height: 1; text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.demo-card h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 600; }
.demo-card p { margin: 0; color: #8d9ab0; font-size: 13px; line-height: 1.75; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 12px; }
footer { padding: 25px 0 34px; border-top: 1px solid rgba(148, 163, 184, 0.1); color: #68758a; font-size: 12px; text-align: center; }

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

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .planet-scene { position: absolute; width: 250px; right: -60px; top: 105px; opacity: 0.35; z-index: -1; }
  .hero-copy { position: relative; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-card, .demo-card:nth-child(4), .demo-card:nth-child(5) { grid-column: span 1; }
  .demo-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-shell { width: min(100% - 30px, 1180px); }
  .topbar { padding: 22px 0; }
  .local-badge { font-size: 0; gap: 0; }
  .hero { padding: 56px 0 60px; }
  h1 { font-size: 42px; }
  .subtitle { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { line-height: 1.6; }
  .card-grid { grid-template-columns: 1fr; }
  .demo-card, .demo-card:last-child { grid-column: auto; min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .planet { animation: none; }
  .primary-button, .demo-card { transition: none; }
}
