/* ==========================================================================
   Vertex Robots — dark / cyan brand system
   Ported from the vertex-new-site design system and extended to cover the
   full multi-page template (legal prose, FAQ, robot cards, page headers).
   ========================================================================== */
:root {
  --bg: #0b0d0f;
  --panel: #1a1d21;
  --panel-soft: #14161a;
  --cyan: #00e2ff;
  --cyan-soft: rgba(0, 226, 255, .14);
  --ink: #0b0d0f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --border: rgba(255, 255, 255, .09);

  --container-max: 84rem;
  --nav-height: 5.5rem;
  --radius: 5px;
  --radius-lg: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Wix Madefor Text", "Segoe UI", sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}
h1 { font-size: 4rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.4rem; }

p { margin: 0; color: var(--muted); }
a { text-decoration: none; color: inherit; }
img, svg, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 2.5rem; }
.container-small { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 2.5rem; }
.section-padding { padding: 7rem 0; }
.bg-panel { background: var(--panel); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.btn-fill { background: var(--cyan); color: var(--ink); }
.btn-fill:hover { background: #5cecff; transform: translateY(-2px); }

.btn-outline { background: var(--ink); color: var(--cyan); border-color: var(--cyan); }
.btn-outline:hover { background: rgba(0, 226, 255, .1); transform: translateY(-2px); }

.btn-small { padding: .65rem 1.5rem; font-size: .9rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav.nav--scrolled { box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6); }

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.nav__logo { height: 1.9rem; width: auto; }
.nav__brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding-bottom: .3rem;
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.2rem;
  height: 2px;
  background: var(--cyan);
}

.nav__toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: none; background: transparent;
  position: relative; flex: none;
}
.nav__toggle span {
  position: absolute; left: 50%;
  width: 1.5rem; height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 35%; }
.nav__toggle span:nth-child(2) { top: 50%; }
.nav__toggle span:nth-child(3) { top: 65%; }
.nav__toggle.is-open span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: var(--nav-height);
  min-height: 44rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0f12;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__backdrop svg { width: 100%; height: 100%; }
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,13,15,1) 0%, rgba(11,13,15,.88) 38%, rgba(11,13,15,.15) 75%);
}

.hero__panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 40rem;
  margin: 4rem 0;
}

.hero__panel h1 { text-transform: uppercase; }
.hero__panel p { font-size: 1.2rem; margin-top: 1.5rem; max-width: 32rem; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }

/* ==========================================================================
   Page header — compact hero used on inner pages
   ========================================================================== */
.page-header {
  padding: calc(var(--nav-height) + 4.5rem) 0 4.5rem;
  background: linear-gradient(180deg, #101318 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.page-header h1 { text-transform: uppercase; }
.page-header p { font-size: 1.15rem; margin-top: 1.25rem; max-width: 32rem; }
.page-header__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.page-header__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, #171a1f, #0c0e11);
}
.page-header__art img { width: 100%; height: 100%; object-fit: cover; }
.page-header.is-centered .page-header__grid { grid-template-columns: 1fr; text-align: center; }
.page-header.is-centered p { margin-left: auto; margin-right: auto; }
.page-header.is-centered .page-header__actions { justify-content: center; }

/* ==========================================================================
   Engineered Dominance — feature cards
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.feature-card {
  border-left: 3px solid var(--cyan);
  padding-left: 1.75rem;
}
.feature-card h3 { margin-bottom: 1.25rem; }
.feature-card p { margin-bottom: 0; }

/* ==========================================================================
   Step process — numbered grid ("We've simplified the process")
   ========================================================================== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.step-card { position: relative; }
.step-card__number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step-card p { font-size: .95rem; }

/* ==========================================================================
   Proven Performance
   ========================================================================== */
.performance__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.performance__intro p { margin-top: 1.25rem; font-size: 1.05rem; max-width: 26rem; }

.performance__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.performance__pulse { height: 11rem; background: #10131a; padding: 1rem 0; }
.performance__stats { padding: .5rem 2.5rem; }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-row__label { font-weight: 700; font-size: 1.05rem; }
.stat-row__value { font-family: var(--font-display); color: var(--cyan); font-size: 1.5rem; }

/* ==========================================================================
   Our platform — zigzag rows
   ========================================================================== */
.platform__title { text-transform: uppercase; margin-bottom: 5rem; }

.platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.platform-row:last-child { margin-bottom: 0; }
.platform-row.is-reversed .platform-row__art { order: 2; }
.platform-row.is-reversed .platform-row__text { order: 1; }

.platform-row__text h3 { margin-bottom: 1.25rem; }
.platform-row__text p { font-size: 1.05rem; max-width: 28rem; }

.platform-row__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, #171a1f, #0c0e11);
  border: 1px solid var(--border);
  aspect-ratio: 16/11;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-row__art svg { width: 65%; height: 65%; }
.platform-row__art img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Robot cards — "Meet our Robots"
   ========================================================================== */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.robot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.robot-card__icon { height: 6.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.robot-card__icon img { max-height: 100%; width: auto; }
.robot-card h3 { font-size: 1.2rem; margin-bottom: .85rem; }
.robot-card__badge {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.robot-card p { font-size: .95rem; }
.robot-card.is-soon { justify-content: center; }

/* ==========================================================================
   Signup / CTA panel
   ========================================================================== */
.signup__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.signup__intro h2 { margin-bottom: 1.25rem; }
.signup__intro p { font-size: 1.05rem; max-width: 24rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .95rem; }
.form-field label .req { color: var(--cyan); }

.form-field input,
.form-field select {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .3s var(--ease);
  appearance: none;
}
.form-field input::placeholder { color: rgba(255, 255, 255, .35); }
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-field.is-select { position: relative; }
.form-field.is-select::after {
  content: "";
  position: absolute;
  right: 1.1rem; bottom: 1.05rem;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.form-submit { width: 100%; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  color: var(--text);
  font-size: .95rem;
}
.form-success.is-visible { display: block; }

/* CTA panel — simple centered call-to-action (contact / chat) */
.cta-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.cta-panel h2 { margin-bottom: 1.25rem; }
.cta-panel p { font-size: 1.05rem; max-width: 30rem; margin-left: auto; margin-right: auto; }
.cta-panel__actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.cta-panel__chat-icon { height: 2.5rem; width: auto; }

/* ==========================================================================
   FAQ accordion (native <details>/<summary>)
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 4rem;
}
.faq-intro a { color: var(--cyan); font-weight: 600; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__number {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: .95rem;
  flex: none;
}
.faq-item summary h3 { flex: 1; font-size: 1.15rem; }
.faq-item__icon {
  position: relative;
  width: 1rem; height: 1rem;
  flex: none;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.faq-item__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item__answer { padding: 0 0 1.75rem 2.65rem; }
.faq-item__answer p { font-size: 1rem; }

/* ==========================================================================
   Prose — legal / long-form content (privacy, terms)
   ========================================================================== */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 3rem; margin-bottom: 1rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-top: 2rem; margin-bottom: .75rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: .2rem; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ==========================================================================
   Wordmark banner
   ========================================================================== */
.wordmark {
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.wordmark h2 {
  font-size: clamp(3rem, 10vw, 7rem);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .08);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--panel); padding: 4rem 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.footer__logo { height: 2.5rem; width: auto; flex: none; }
.footer__copyright { font-size: .9rem; color: var(--muted); max-width: 22rem; }
.footer__disclaimer-text { font-size: .85rem; color: var(--muted); max-width: 24rem; margin-top: .5rem; }

.footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .75rem; font-size: 1rem; }
.footer__links a { transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--cyan); }

.footer__contact { display: flex; flex-direction: column; gap: .5rem; font-size: 1rem; }
.footer__contact a { transition: color .3s var(--ease); }
.footer__contact a:hover { color: var(--cyan); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__bottom-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer__bottom-links a { font-size: .9rem; color: var(--muted); transition: color .3s var(--ease); }
.footer__bottom-links a:hover { color: var(--text); }
.footer__disclaimer { font-size: .85rem; color: var(--muted); max-width: 40rem; }

/* ==========================================================================
   Scroll-reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 991px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.15rem; }
  .section-padding { padding: 5rem 0; }

  .hero { min-height: auto; padding-bottom: 4rem; }
  .hero__panel { padding: 2.5rem; margin: 3rem 0; }

  .page-header__grid { grid-template-columns: 1fr; }
  .page-header__art { aspect-ratio: 16/10; }

  .features__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .step-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .robot-grid { grid-template-columns: repeat(2, 1fr); }
  .performance__grid, .signup__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .platform-row { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
  .platform-row.is-reversed .platform-row__art,
  .platform-row.is-reversed .platform-row__text { order: initial; }
  .platform-row__art { aspect-ratio: 16/9; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media screen and (max-width: 767px) {
  .container, .container-small { padding: 0 1.25rem; }
  .nav__inner { padding: 0 1.25rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { display: none; }

  .hero__panel { padding: 1.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .robot-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 2.5rem 1.75rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
