/* SHOPR — black & navy robotics homepage */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --navy: #0d1b2a;
  --navy-mid: #1b2838;
  --navy-light: #243b53;
  --navy-glow: #2d4a6f;
  --accent: #4a7ab8;
  --accent-bright: #6b9fd4;
  --text: #e8edf4;
  --text-muted: #8fa3bc;
  --border: rgba(74, 122, 184, 0.2);
  --header-nav-height: 52px;
  --container: min(1120px, 92vw);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header — full-width banner logo + nav */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.header-banner {
  display: block;
  width: 100%;
  background: var(--black);
  line-height: 0;
  text-decoration: none;
}

.header-banner:hover {
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
}

.header-nav {
  position: relative;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0  clamp(1rem, 4vw, 2rem);
  min-height: var(--header-nav-height);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.main-nav .nav-whitepaper {
  color: var(--text);
  padding: 0.5rem 1rem;
  background: transparent;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.main-nav .nav-whitepaper:hover {
  color: var(--text);
  background: var(--navy-mid);
  text-decoration: none;
}

.main-nav .nav-cta {
  color: var(--text);
  padding: 0.5rem 1rem;
  background: var(--navy-light);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.main-nav .nav-cta:hover {
  background: var(--navy-glow);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Typography */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--accent-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--accent) 100%);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(74, 122, 184, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(74, 122, 184, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--navy-glow);
}

.btn-whitepaper {
  background: var(--navy);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-whitepaper:hover {
  background: var(--navy-light);
  border-color: var(--navy-glow);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(27, 40, 56, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(13, 27, 42, 0.8) 0%, transparent 50%),
    var(--black);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 122, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 122, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 1.25rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: 1.25rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbit {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.orbit-ring--outer {
  inset: 0;
  border-color: rgba(74, 122, 184, 0.15);
  animation: spin 24s linear infinite;
}

.orbit-ring--inner {
  inset: 18%;
  animation: spin 16s linear infinite reverse;
}

.robot-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
}

.robot-node--1 {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse 2s ease-in-out infinite;
}

.robot-node--2 {
  bottom: 22%;
  left: 12%;
  animation: pulse 2s ease-in-out 0.4s infinite;
}

.robot-node--3 {
  bottom: 30%;
  right: 10%;
  animation: pulse 2s ease-in-out 0.8s infinite;
}

.store-grid {
  position: absolute;
  inset: 28%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--navy-mid) 0,
      var(--navy-mid) 8px,
      transparent 8px,
      transparent 24px
    ),
    repeating-linear-gradient(
      0deg,
      var(--navy) 0,
      var(--navy) 6px,
      transparent 6px,
      transparent 20px
    );
  border-radius: var(--radius);
  border: 1px solid var(--border);
  opacity: 0.85;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-top: 1rem;
}

.platform {
  background: var(--navy);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--navy-glow);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  background: rgba(74, 122, 184, 0.12);
  border-radius: 10px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-card .text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Steps */
.how-it-works {
  background: var(--black);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Fleet */
.fleet {
  background: linear-gradient(180deg, var(--navy) 0%, var(--black) 100%);
}

.fleet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fleet-copy p {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

.fleet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fleet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.fleet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.fleet-diagram {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

.diagram-aisle {
  flex: 1;
  max-width: 48px;
  background: repeating-linear-gradient(
    180deg,
    var(--navy-mid) 0,
    var(--navy-mid) 12px,
    var(--navy) 12px,
    var(--navy) 24px
  );
  border-radius: 4px;
  opacity: 0.7;
}

.diagram-robot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(74, 122, 184, 0.6);
}

.diagram-robot--a {
  top: 30%;
  left: 22%;
  animation: drift-a 4s ease-in-out infinite;
}

.diagram-robot--b {
  top: 55%;
  left: 48%;
  animation: drift-b 5s ease-in-out infinite;
}

.diagram-robot--c {
  top: 40%;
  right: 20%;
  animation: drift-c 4.5s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, 12px); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, -20px); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 16px); }
}

/* CTA */
.cta {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 36rem;
}

.cta-inner h2 {
  margin-bottom: 1rem;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .fleet-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    justify-content: flex-end;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--black-soft);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .main-nav .nav-whitepaper,
  .main-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
