:root {
  color-scheme: dark;
  --bg: #08090a;
  --accent: #ffb300;
  --accent-soft: rgba(255, 179, 0, 0.18);
  --accent-strong: #ffd24a;
  --text: #f5f5f5;
  --text-soft: #a1a1aa;
  --border-soft: #27272f;
  --button: #ff4f6a;
  --button-hover: #ff7388;
  --button-pressed: #ff92a2;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

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

.app {
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 14px env(safe-area-inset-bottom);
}

/* Header / navbar ribbon */

.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-hidden {
  transform: translateY(-120%);
  transition: transform 220ms ease-out;
}

.nav-ribbon {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  background: #111214;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-name-ribbon {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 12px;
  text-transform: uppercase;
}

.nav-left {
  display: flex;
  align-items: center;
}

/* Center nav */

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-item {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  transition: color 180ms ease-out, background 180ms ease-out, transform 120ms ease-out;
}

.nav-item:hover {
  color: var(--bg);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: var(--bg);
  background: var(--accent);
}

.nav-item-cta {
  font-weight: 600;
  background: var(--button);
  color: #1b0b10;
}

.nav-item-cta:hover {
  background: var(--button-hover);
  color: #120508;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 26px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #14151a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #f5f5f5;
}

.nav-close {
  display: none;
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 20px;
  margin-left: auto;
  cursor: pointer;
}

/* Sections */

.section {
  padding: 72px 0 18px;
  text-align: center;
}

.section-block {
  background: #111214;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  position: relative;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin: 0 auto 10px;
}

/* typography */

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
}

p {
  font-size: 13px;
  color: var(--text-soft);
}

.centered {
  text-align: center;
}

.long-text {
  text-align: left;
}

/* Hero */

.hero-section {
  padding-top: 80px;
}

.hero-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070708;
  display: flex;
  flex-direction: column;
}

.hero-video-frame {
  position: relative;
}

.hero-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at top, #18191f 0, #050506 70%);
  filter: blur(0px) brightness(0.7);
}

.hero-copy {
  position: relative;
  margin: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 9, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.hero-copy p {
  margin-top: 6px;
}

.hero-button {
  width: 100%;
  margin-top: 10px;
}

/* Cards / placeholders */

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
}

.why-card {
  background: #15161b;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--accent-strong);
}

.placeholder-img {
  margin-top: 8px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-soft);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 11px;
}

.placeholder-img.large {
  height: 140px;
}

.placeholder-img.bordered {
  border-style: solid;
}

/* Buttons */

.primary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: var(--button);
  color: #1b060b;
  box-shadow: 0 10px 25px rgba(255, 79, 106, 0.6);
  transition: background 160ms ease-out, transform 120ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
}

.primary:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.primary.pressed,
.primary:active,
.nav-item.pressed {
  background: var(--button-pressed);
  transform: translateY(0);
}

.primary.full-width {
  width: 100%;
}

/* FAQ accordion */

.faq-section .section-block {
  text-align: left;
}

.accordion {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-item {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #171820;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.accordion-item.open {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.accordion-panel {
  font-size: 12px;
  color: var(--text-soft);
  padding: 6px 10px 8px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: #111214;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 180ms ease-out;
}

/* Carousel */

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-track {
  overflow: hidden;
  flex: 1;
  display: flex;
  transition: transform 220ms ease-out;
}

.carousel-item {
  min-width: 100%;
  padding: 8px;
}

.carousel-arrow {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  width: 28px;
  height: 28px;
  background: #15161b;
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adaptive video */

.adaptive-video {
  width: 100%;
}

.adaptive-video .video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #15161b;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* Robot types grid */

.robot-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.robot-type-card {
  background: #15161b;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Click-to-play video */

.click-video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.video-thumb {
  background: #191a20;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}

.video-thumb.hidden {
  display: none;
}

.click-video-player {
  display: block;
  width: 100%;
  height: auto;
}

/* Clients */

.clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Testimonials inverted V */

.testimonials-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.test-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #15161b;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.test-name {
  margin-top: 6px;
  font-size: 13px;
}

.test-title {
  font-size: 11px;
  color: var(--text-soft);
}

.test-review {
  background: #15161b;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  text-align: left;
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: #15161b;
}

.marquee-inner {
  display: inline-flex;
  gap: 40px;
  padding: 8px 16px;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-size: 12px;
  color: var(--text-soft);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.33%);
  }
}

/* Form background */

.form-bg {
  background-image: radial-gradient(circle at top, #1b1b22 0, #070708 70%);
}

.floating-form {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(7, 7, 9, 0.94);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.underline-field {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.underline-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.underline-field textarea {
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text);
  resize: none;
  font: inherit;
  padding: 0 0 4px;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Contact list */

.contact-list {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  margin: 10px 0 0;
}

.contact-list li {
  font-size: 13px;
  color: var(--text-soft);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, 110%);
  background: #15161b;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 179, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 170ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 170ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 50;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Responsive */

@media (max-width: 720px) {
  .nav-center {
    position: absolute;
    top: 110%;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 260px;
    padding: 8px;
    border-radius: 18px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 4px;
    display: none;
  }

  .nav-center.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    text-align: left;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-close {
    display: block;
    margin-top: 4px;
  }

  .why-us-grid {
    text-align: left;
  }

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

@media (min-width: 720px) {
  .hero-shell {
    flex-direction: row;
  }

  .hero-video-placeholder {
    aspect-ratio: 3 / 2;
  }

  .hero-copy {
    max-width: 380px;
    margin: 18px;
    margin-left: auto;
    align-self: center;
  }

  .why-us-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .robot-types-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .test-pair {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .test-person {
    align-items: flex-end;
  }

  .test-review {
    max-width: 320px;
  }
}