/* CyberMotion AI — The Pulse */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --midnight: #0A0A14;
  --steel: #191A2E;
  --haze: #E9E8F2;
  --uv: #7C5CFF;
  --coral: #FF6B5E;
  --uv-dim: rgba(124, 92, 255, 0.15);
  --coral-dim: rgba(255, 107, 94, 0.12);
  --text-muted: rgba(233, 232, 242, 0.72);
  --radius: 6px;
  --max-w: 1180px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--haze);
  background: var(--midnight);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

a { color: var(--uv); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }

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

.telemetry {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Surface pairs */
.surface-indigo { background: var(--midnight); color: var(--haze); }
.surface-haze { background: var(--haze); color: var(--midnight); }
.surface-steel { background: var(--steel); color: var(--haze); }
.surface-uv { background: var(--uv); color: var(--midnight); }

/* Layout */
.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 92, 255, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--haze);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--uv); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--haze);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--steel);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(124, 92, 255, 0.2);
}
.nav-menu.open { display: flex; }

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 0.25rem;
    border: none;
    align-items: center;
  }
}

.nav-menu a {
  color: var(--haze);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--uv-dim);
  color: var(--uv);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--uv); color: var(--midnight); }
.btn-primary:hover { background: #9278ff; color: var(--midnight); }
.btn-outline {
  background: transparent;
  color: var(--haze);
  border: 1px solid rgba(233, 232, 242, 0.3);
}
.btn-outline:hover { border-color: var(--uv); color: var(--uv); }
.btn-coral { background: var(--coral); color: var(--midnight); }

main { padding-top: var(--nav-h); }

/* THE WATCH hero */
.hero-watch {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--midnight) url('/images/cybermotionai-01-hero-soc.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero-watch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0.55) 0%, rgba(10,10,20,0.88) 55%, var(--midnight) 100%);
}
.hero-watch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(124,92,255,0.03) 2px, rgba(124,92,255,0.03) 4px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  width: 100%;
}
.text-uv { color: var(--uv); }
.text-coral { color: var(--coral); }

.hero-topbar {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  width: 100%;
}
.hero-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(233, 232, 242, 0.2);
}

.checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input { margin-top: 0.2rem; flex-shrink: 0; }

.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(25, 26, 46, 0.6);
  color: var(--haze);
  font-family: inherit;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--uv-dim);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-watch h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.hero-watch p.lead { font-size: 1.15rem; max-width: 52ch; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.pulse-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(124, 92, 255, 0.2);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,107,94,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255,107,94,0); }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(124, 92, 255, 0.15);
}
.page-hero .telemetry { color: var(--uv); margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 60ch; margin-top: 1rem; }

/* Cards */
.card {
  background: var(--steel);
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(124, 92, 255, 0.35); }
.card-icon {
  width: 40px; height: 40px;
  background: var(--uv-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--uv);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

/* Stats */
.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; }
.stat-item .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--uv);
}
.stat-item .label { font-size: 0.85rem; color: var(--text-muted); }

/* Image blocks */
.img-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(124, 92, 255, 0.15);
}
.img-block img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.img-caption {
  padding: 0.75rem 1rem;
  background: var(--steel);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* Feature list */
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 92, 255, 0.1);
  padding-left: 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(124, 92, 255, 0.15); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--haze);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--uv);
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1.25rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--midnight);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius);
  color: var(--haze);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--uv);
  box-shadow: 0 0 0 3px var(--uv-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Contact info */
.contact-block { padding: 1.5rem; background: var(--steel); border-radius: var(--radius); }
.contact-block dt { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--uv); margin-bottom: 0.25rem; }
.contact-block dd { margin-bottom: 1rem; }
.contact-block dd:last-child { margin-bottom: 0; }

/* Work cases */
.case-card { margin-bottom: 2rem; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.case-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: var(--uv-dim);
  border-radius: 100px;
  color: var(--uv);
}

/* Legal prose */
.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.5rem; color: var(--uv); }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 6rem;
  color: var(--uv);
  opacity: 0.3;
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--steel);
  border-top: 1px solid rgba(124, 92, 255, 0.15);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 0.85rem; color: var(--uv); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--haze); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 92, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--steel);
  border-top: 1px solid rgba(124, 92, 255, 0.3);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; }
}
.cookie-inner p { font-size: 0.9rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-actions button {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.cookie-accept { background: var(--uv); color: var(--midnight); }
.cookie-reject { background: transparent; color: var(--haze); border: 1px solid rgba(233,232,242,0.3) !important; }
.cookie-customise { background: var(--coral-dim); color: var(--coral); border: 1px solid rgba(255,107,94,0.3) !important; }

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10,10,20,0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal.open { display: flex; }
.cookie-modal-panel {
  background: var(--steel);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 92, 255, 0.1);
}
.cookie-toggle input { width: auto; accent-color: var(--uv); }

/* Utility */
.text-uv { color: var(--uv); }
.text-coral { color: var(--coral); }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
