/* ── Vela Operators V2 — Design System ── */

/* ── Brand mark in nav/footer/gate logos ── */
.nav__logo,
.footer__logo,
.gate-logo,
.gate-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.logo-mark--sm { width: 28px; height: 28px; border-radius: 5px; }
.logo-mark--lg { width: 56px; height: 56px; border-radius: 10px; }


:root {
  --bg:           #F4F6FA;
  --surface:      #FFFFFF;
  --surface-2:    #EBF0F8;
  --border:       #DDE3EE;
  --border-light: rgba(0,111,207,0.20);
  --primary:      #0A1628;
  --text-mid:     #2D3748;
  --text-muted:   #6B7280;
  --accent:       #006FCF;
  --accent-dark:  #005BA3;
  --accent-glow:  rgba(0,111,207,0.07);
  --gold:         #C9A84C;
  --white:        #FFFFFF;
  --danger:       #DC2626;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 40px rgba(0,111,207,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-mid);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { max-width: 64ch; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: 96px 0; }
.section--alt   { padding: 96px 0; background: var(--surface-2); }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 58ch;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 16px 0;
  border-radius: 2px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,246,250,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links .btn--primary {
  color: #FFFFFF;
}
.nav__links .btn--primary:hover {
  color: #FFFFFF;
}

.nav__links a:hover,
.nav__links a.active { color: var(--primary); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 680px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px 24px;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: var(--primary);
  color: var(--bg);
}
.btn--white:hover {
  background: #E8EDF5;
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,111,207,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow { margin-bottom: 20px; }

.hero__headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
}

.hero__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ── Logo Carousel ── */
.clients {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients__label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.clients__track-wrap {
  overflow: hidden;
  position: relative;
}

.clients__track-wrap::before,
.clients__track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.clients__track-wrap::before { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
.clients__track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--surface), transparent); }

.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scroll-clients 36s linear infinite;
}

.clients__track:hover { animation-play-state: paused; }

@keyframes scroll-clients {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 8px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  background: var(--surface-2);
  letter-spacing: -0.01em;
  transition: border-color 0.2s, color 0.2s;
}

.client-chip:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.client-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Problem Cards ── */
.problems {
  padding: 96px 0 80px;
}

.problems__intro {
  max-width: 600px;
  margin-bottom: 56px;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .problems__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .problems__grid { grid-template-columns: 1fr; }
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: inherit;
}

.problem-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,111,207,0.12);
}

.problem-card:hover::before { opacity: 1; }

.problem-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.problem-card.active::before { opacity: 1; }

.problem-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.problem-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.problem-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
  position: relative;
  z-index: 1;
}

.problem-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}

.problem-card:hover .problem-card__cta,
.problem-card.active .problem-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: slideUp 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .modal { padding: 32px 24px; }
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.modal__close:hover { color: var(--primary); }

.modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.modal__title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal__subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: none;
}

/* ── Forms ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.01em;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,111,207,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A85A3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Urgency slider */
.urgency-wrap { display: flex; flex-direction: column; gap: 8px; }

.urgency-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  border: none;
  padding: 0;
  box-shadow: none;
}

input[type="range"]:focus { box-shadow: none; border-color: transparent; }

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,111,207,0.35);
}

.urgency-value {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.modal__submit {
  margin-top: 28px;
}

.modal__submit .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

.modal__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: none;
}

/* ── Journey Section (appears after modal submission) ── */
.journey-banner {
  display: none;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 48px;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.journey-banner.visible { display: flex; }

.journey-banner__icon { font-size: 2rem; }

.journey-banner__text h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.journey-banner__text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: none;
}

/* ── Steps (How we work) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.2s;
}

.step:hover { border-color: var(--border-light); }

.step__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: none;
  line-height: 1.65;
}

.step__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__list li {
  font-size: 0.87rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.step__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── Fit Blocks ── */
.fit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 700px) {
  .fit-cols { grid-template-columns: 1fr; }
}

.fit-block {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.fit-block--yes {
  background: rgba(0,111,207,0.04);
  border-color: rgba(0,111,207,0.22);
}

.fit-block--no {
  background: rgba(255, 107, 107, 0.04);
  border-color: rgba(255, 107, 107, 0.2);
}

.fit-block__heading {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.fit-block--yes .fit-block__heading { color: var(--accent); }
.fit-block--no  .fit-block__heading { color: var(--danger); }

.fit-block__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-mid);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.fit-block__list li:last-child { border-bottom: none; }

.fit-block--yes .fit-block__list li::before { content: '✓'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.fit-block--no  .fit-block__list li::before { content: '✕'; color: var(--danger);  flex-shrink: 0; font-weight: 700; }

/* ── CTA Banner ── */
.cta-banner {
  background: #0A1628;
  border-top: none;
  border-bottom: none;
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 16px; color: #F5F5F5; }

.cta-banner p {
  color: rgba(255,255,255,0.60);
  margin: 0 auto 36px;
  max-width: 52ch;
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.footer__logo span { color: var(--accent); }

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--primary); }

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Highlight box ── */
.highlight {
  background: rgba(201,168,76,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.highlight p {
  font-size: 0.97rem;
  color: var(--text-mid);
  font-style: italic;
  max-width: none;
}

/* ── Pain grid ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 860px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pain-card__icon { font-size: 1.6rem; flex-shrink: 0; }
.pain-card__title { font-weight: 700; font-size: 0.95rem; color: var(--primary); margin-bottom: 6px; }
.pain-card__desc  { font-size: 0.87rem; color: var(--text-muted); max-width: none; line-height: 1.55; }
