:root {
  --bg: #07070a;
  --panel: rgba(255, 255, 255, 0.03);
  --muted: #9aa0b4;
  --neon-1: #7afcff;
  --neon-2: #b76cff;
  --text: #e7eefc;
  --accent: var(--neon-1);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

:root.light {
  --bg: #f6f8fb;
  --panel: rgba(0, 0, 0, 0.04);
  --muted: #40464f;
  --neon-1: #00bbbb;
  --neon-2: #8a3bff;
  --text: #071029;
  --accent: var(--neon-2);
  --shadow: 0 8px 40px rgba(7, 16, 41, 0.06);
}

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

body {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(120, 50, 255, 0.06), transparent 8%),
              radial-gradient(1000px 500px at 90% 90%, rgba(10, 200, 255, 0.04), transparent 6%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background 0.3s ease;
}

.stage {
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow);
  overflow: hidden;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  backdrop-filter: blur(6px);
}

.logo {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.menu {
  display: flex;
  gap: 1.2rem;
}

.menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s;
}

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

.actions {
  display: flex;
  gap: 0.6rem;
}

#theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
}

.btn-sign {
  background: var(--accent);
  color: #03101a;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2.2rem;
  min-height: 60vh;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(90deg, var(--neon-2), var(--neon-1));
  color: #000;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-outline {
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

.features {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.features li {
  background: var(--panel);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-3d-wrap {
  flex: 1;
  height: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  position: absolute;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  background: rgba(0,0,0,0.4);
  color: var(--accent);
  backdrop-filter: blur(4px);
  transition: opacity 0.5s ease;
}

.loaded .loader {
  opacity: 0;
  pointer-events: none;
}

.robot-3d {
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
}

.glow-orbit {
  width: 300px;
  height: 300px;
  position: absolute;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.2;
  z-index: -1;
}

.robot-3d.is-floating {
  animation: float 6s ease-in-out infinite;
}

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

.dev-controls {
  width: 200px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(15, 20, 30, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 100;
}

.dev-controls h3 {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dev-controls button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: 0.2s;
}

.dev-controls button:disabled {
  opacity: 0.5;
}

.dev-controls button:hover:not(:disabled) {
  background: var(--accent);
  color: #000;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--panel);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .menu {
    display: none;
  }

  .hero-3d-wrap {
    width: 100%;
    height: 350px;
  }
}
