:root {
  --bg: #06090f;
  --bg-soft: #0c111b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #e6edf7;
  --muted: rgba(230, 237, 247, 0.68);
  --accent: #3ce6b1;
  --accent-2: #5fb0ff;
  --accent-3: #ffb347;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --font-display: "ZCOOL KuaiLe", cursive;
  --font-body: "Urbanist", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 20% 20%, rgba(60, 230, 177, 0.15), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(95, 176, 255, 0.2), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

#dot-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.18;
  z-index: -2;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.glow-a {
  top: -120px;
  left: -120px;
  background: rgba(60, 230, 177, 0.4);
}

.glow-b {
  bottom: -160px;
  right: -80px;
  background: rgba(95, 176, 255, 0.4);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: #34d399;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
  padding: 80px 6vw 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 2.1rem + 1.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  box-shadow: 0 12px 30px rgba(60, 230, 177, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  animation: spin 20s linear infinite;
}

.planet {
  width: 120px;
  height: 120px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(95, 176, 255, 0.3), rgba(60, 230, 177, 0.5));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 18px rgba(6, 16, 24, 0.4));
}

.data-cards {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  right: -10px;
}

.data-card {
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.projects {
  padding: 70px 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.project-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.project-card li::before {
  content: "◆";
  color: var(--accent-3);
  margin-right: 10px;
}

.project-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 179, 71, 0.2);
  color: var(--accent-3);
  margin-bottom: 16px;
  font-weight: 700;
}

.icon-badge.voice {
  background: rgba(95, 176, 255, 0.2);
  color: var(--accent-2);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.opensource {
  padding: 110px 6vw;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opensource-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 22px;
}

.opensource-inner h2 {
  font-size: clamp(2.4rem, 2rem + 1.8vw, 3.4rem);
  line-height: 1.1;
}

.opensource-inner p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--text);
  max-width: 820px;
}

.cta {
  padding: 80px 6vw 100px;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(60, 230, 177, 0.2), rgba(95, 176, 255, 0.2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.site-footer h4 {
  color: var(--text);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-direction: column;
    gap: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 50px;
  }

  .data-cards {
    position: static;
    margin-top: 24px;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inner {
    padding: 32px 24px;
  }
}

.site-footer {
  padding: 40px 6vw 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer h4 {
  color: var(--text);
  margin-bottom: 6px;
}

.icp {
  justify-self: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.copyright {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

 (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copyright {
    justify-self: center;
  }
}

.site-footer h4 {
  color: var(--text);
  margin-bottom: 6px;
}

.copyright {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #061018;
  font-weight: 600;
}

@media (max-width: 920px) {
  .lang-switch {
    order: 3;
  }
}

/* Mobile Hamburger Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: flex;
  }

  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 18px 4vw;
  }

  .brand {
    flex: 1;
  }

  .lang-switch {
    order: 2;
    margin-right: 12px;
  }

  .menu-toggle {
    order: 3;
  }

  .site-nav {
    order: 4;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 8px;
    margin-top: 0;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .site-nav.open {
    max-height: 400px;
    margin-top: 18px;
    opacity: 1;
  }

  .site-nav a {
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-cta {
    margin-top: 8px;
  }
}
