:root {
  --bg: #0a0b0e;
  --bg-alt: #101218;
  --panel: #14171f;
  --border: #23262f;
  --text: #eef0f4;
  --text-dim: #9aa1ad;
  --accent: #ff5c2b;
  --accent-soft: rgba(255, 92, 43, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1rem;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; font-size: 0.92rem; }
.nav-links a { color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---------- Intro ---------- */
.intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.5rem 0;
  text-align: center;
}

.intro h1 { margin: 0; line-height: 0; }

.intro-logo {
  width: min(260px, 56vw);
  height: auto;
}

.intro p {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--text);
  font-weight: 500;
}

.section.robots-lead { padding-top: 3.5rem; padding-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-block { display: block; text-align: center; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 2.5rem; max-width: 1200px; margin: 0 auto; }

.section-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
}

/* ---------- Robot cards ---------- */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.robot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.robot-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.robot-card-media {
  height: 400px;
  background: radial-gradient(ellipse at center, #1a1e28, var(--panel));
  position: relative;
}

.robot-card-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.robot-card-head { display: flex; align-items: center; justify-content: space-between; }
.robot-card-head h3 { font-size: 1.5rem; }
.robot-card-body > p { color: var(--text-dim); font-size: 0.95rem; }

.tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.mini-specs {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.mini-specs li { display: flex; flex-direction: column; }
.mini-specs strong { font-family: var(--font-display); font-size: 1.1rem; }
.mini-specs span { font-size: 0.75rem; color: var(--text-dim); }

.card-link { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-top: auto; }

/* ---------- Robot detail pages ---------- */
.robot-hero {
  padding: 9rem 2.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.robot-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0.25rem 0 1rem; }
.robot-hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 620px; }

.viewer-section { padding-top: 2.5rem; }

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.4fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) { .viewer-layout { grid-template-columns: 1fr; } }

.viewer-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.viewer-canvas { height: 480px; position: relative; }
.viewer-canvas canvas { display: block; }

.viewer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 11, 14, 0.6);
  color: var(--text-dim);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.viewer-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.6rem;
  border-top: 1px solid var(--border);
}

.spec-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}
.spec-panel h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-list div:last-child { border-bottom: none; }
.spec-list dt { color: var(--text-dim); }
.spec-list dd { font-weight: 500; text-align: right; }

/* ---------- Video gallery ---------- */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.video-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  height: 360px;
  flex: 178 1 285px;
}
@media (max-width: 600px) { .video-tile { height: 260px; } }
.video-tile:hover { border-color: var(--accent); }

.video-thumb {
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 92, 43, 0.08), transparent),
    linear-gradient(145deg, #171a22, #10131a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-meta { padding: 0.9rem 1.1rem; }
.video-meta p { font-size: 0.92rem; font-weight: 500; }
.video-meta span { font-size: 0.78rem; color: var(--text-dim); }

.coming-soon {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(10, 11, 14, 0.6);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  background: var(--bg);
  text-align: center;
}
.footer-contact { font-size: 0.95rem; margin: 0 auto 0.75rem; text-align: center; display: block; }
.footer-contact a { color: var(--text-dim); }
.footer-contact a:hover { color: var(--text); }
.footer-fine { color: var(--text-dim); font-size: 0.8rem; text-align: center; }
