:root {
  --bg: #0a0e1a;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2340;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.3);
  --secondary: #ff6b35;
  --secondary-glow: rgba(255, 107, 53, 0.3);
  --purple: #7c3aed;
  --text: #e8edf5;
  --text-muted: #8892a8;
  --radius: 16px;
  --font: 'Nunito', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gear {
  position: absolute;
  font-size: 4rem;
  opacity: 0.08;
  animation: spin 20s linear infinite;
}

.gear-1 { top: 15%; left: 10%; }
.gear-2 { top: 60%; right: 15%; animation-direction: reverse; font-size: 6rem; }
.gear-3 { bottom: 20%; left: 40%; font-size: 3rem; animation-duration: 15s; }

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

.hero-content {
  max-width: 560px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #0a0e1a;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* CSS Robot */
.hero-robot {
  z-index: 1;
  flex-shrink: 0;
}

.robot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

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

.robot-head {
  width: 120px;
  height: 90px;
  background: linear-gradient(180deg, #2a3550, #1e2840);
  border-radius: 20px 20px 8px 8px;
  position: relative;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.robot-antenna {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.robot-antenna::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.robot-eye {
  position: absolute;
  top: 30px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: look 5s ease-in-out infinite;
}

.robot-eye.left { left: 22px; }
.robot-eye.right { right: 22px; }

@keyframes look {
  0%, 100% { transform: scaleY(1); }
  48%, 52% { transform: scaleY(0.1); }
}

.robot-torso {
  width: 100px;
  height: 80px;
  background: linear-gradient(180deg, #1e2840, #141b2d);
  border: 3px solid #3a4a6b;
  border-radius: 8px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-screen {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  animation: screenGlow 3s ease-in-out infinite;
}

@keyframes screenGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.robot-arms {
  display: flex;
  gap: 120px;
  margin-top: -60px;
}

.arm {
  width: 16px;
  height: 50px;
  background: #2a3550;
  border-radius: 8px;
  border: 2px solid #3a4a6b;
}

.arm.left { animation: waveLeft 3s ease-in-out infinite; transform-origin: top center; }
.arm.right { animation: waveRight 3s ease-in-out infinite; transform-origin: top center; }

@keyframes waveLeft {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-20deg); }
}

@keyframes waveRight {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(20deg); }
}

.robot-legs {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.leg {
  width: 24px;
  height: 40px;
  background: #2a3550;
  border-radius: 0 0 8px 8px;
  border: 2px solid #3a4a6b;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-dark {
  background: linear-gradient(180deg, #0d1220 0%, #0a0e1a 100%);
}

.section-accent {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(124, 58, 237, 0.08));
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-float {
  animation: cardFloat 6s ease-in-out infinite;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
}

.fact-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.fact-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.fact-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Robot showcase */
.robots-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.robot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.robot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.robot-card:hover::before,
.robot-card.active::before {
  transform: scaleX(1);
}

.robot-card:hover,
.robot-card.active {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-4px);
}

.robot-card-img {
  font-size: 3rem;
  margin-bottom: 12px;
}

.robot-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.robot-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(255, 107, 53, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.robot-detail {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.4s ease, margin 0.3s;
}

.robot-card.active .robot-detail {
  max-height: 120px;
  margin-top: 8px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bg);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.timeline-content p {
  color: var(--text-muted);
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Compete */
.compete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.compete-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s;
}

.compete-card:hover {
  transform: scale(1.03);
  border-color: rgba(0, 212, 170, 0.3);
}

.compete-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.compete-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Career */
.career-path {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.career-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  max-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s;
}

.career-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.career-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.career-step h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.career-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.career-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.career-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Quiz */
.quiz {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quiz-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.08);
}

.quiz-option.correct {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.15);
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-result {
  text-align: center;
}

.quiz-result.hidden {
  display: none;
}

.quiz-question.hidden {
  display: none;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.quiz-result h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.quiz-result p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* CTA */
.cta-section {
  padding: 60px 0 100px;
}

.cta-box {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(124, 58, 237, 0.12));
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 60px;
    gap: 48px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-robot {
    transform: scale(0.85);
  }

  .career-arrow {
    display: none;
  }

  .career-path {
    flex-direction: column;
  }

  .career-step {
    max-width: 100%;
    width: 100%;
  }
}

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

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .section {
    padding: 72px 0;
  }

  .fact-banner {
    flex-direction: column;
    text-align: center;
  }

  .quiz {
    padding: 28px 20px;
  }
}
