/* ============================================================
   VEXTA — STYLESHEET
   Token system defined in :root. Edit these variables to
   restyle the entire site consistently.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --bg: #0D0D0D;
  --bg-raised: #131311;
  --bg-card: #161613;
  --ivory: #EAE5DD;
  --muted: #948C7E;
  --muted-dim: #6B6459;
  --gold: #C9A961;
  --gold-soft: rgba(201, 169, 97, 0.35);
  --gold-faint: rgba(201, 169, 97, 0.12);
  --hairline: rgba(234, 229, 221, 0.09);

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --container: 1160px;
  --container-narrow: 720px;
  --section-pad: clamp(72px, 12vw, 160px);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: var(--container-narrow);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn--gold {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  position: relative;
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-faint);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.btn--gold:hover { border-color: var(--gold); }
.btn--gold:hover::after { opacity: 1; }
.btn--gold span, .btn--gold { position: relative; z-index: 1; }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}
.btn--ghost:hover { color: var(--ivory); border-color: var(--gold-soft); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 16px 0;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nav__links a:not(.nav__cta):hover { color: var(--ivory); }
.nav__cta {
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  padding: 9px 18px;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__cta:hover { border-color: var(--gold); background: var(--gold-faint); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav__toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: rgba(13, 13, 13, 0.98);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu.is-open { max-height: 320px; }
.mobile-menu a {
  padding: 16px 32px;
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.mobile-menu a.nav__cta {
  color: var(--gold);
  border: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(201, 169, 97, 0.07), transparent 70%);
  pointer-events: none;
  animation: fieldDrift 22s ease-in-out infinite alternate;
}
@keyframes fieldDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2%, 0) scale(1.04); }
}

.hero__content { position: relative; max-width: 720px; }

.hero__label {
  margin-bottom: 28px;
}

.hero__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 12vw, 128px);
  letter-spacing: 0.14em;
  line-height: 1;
  padding-left: 0.14em; /* balance optical letter-spacing */
}

.hero__tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
}

.hero__actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: var(--hairline);
  overflow: hidden;
}
.hero__scroll-cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollCue 2.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(220%); }
  100% { transform: translateY(220%); }
}

/* Reveal-on-load (hero) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d) * 0.14s + 0.1s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal (IntersectionObserver driven) */
.reveal-io {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-io.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: var(--section-pad) 0; position: relative; }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.problem .container { max-width: 780px; }

.problem__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
}

.problem__support {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
}

.problem__list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}

.problem__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-size: 14px;
  color: var(--ivory);
  background: var(--bg-card);
}
.problem__mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.problem__bridge {
  margin-top: 56px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--gold);
}

/* Sequenced reveal (JS toggles .is-in on the section; children stagger via nth) */
.js-seq {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.problem.is-in .js-seq {
  opacity: 1;
  transform: translateY(0);
}
.problem.is-in .js-seq[data-seq="0"] { transition-delay: 0.0s; }
.problem.is-in .js-seq[data-seq="1"] { transition-delay: 0.12s; }
.problem.is-in .js-seq[data-seq="2"] { transition-delay: 0.30s; }
.problem.is-in .js-seq[data-seq="3"] { transition-delay: 0.50s; }
.problem.is-in .js-seq[data-seq="4"] { transition-delay: 0.62s; }
.problem.is-in .js-seq[data-seq="5"] { transition-delay: 0.74s; }
.problem.is-in .js-seq[data-seq="6"] { transition-delay: 0.86s; }
.problem.is-in .js-seq[data-seq="7"] { transition-delay: 1.15s; }

/* ============================================================
   LEADRELAY SECTION
   ============================================================ */
.leadrelay { padding-top: var(--section-pad); padding-bottom: 0; }

.leadrelay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.leadrelay__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.leadrelay__desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 34px;
}

/* ---- Demo widget (signature element) ---- */
.demo__frame {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-raised));
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}

.demo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
}
.demo__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
}
.demo__header-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo__body {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 300px;
}

.demo__step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--muted-dim);
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
}
.demo__step.is-active {
  opacity: 1;
  transform: translateX(0);
  color: var(--ivory);
}
.demo__step.is-done {
  opacity: 0.55;
  color: var(--muted);
  transform: translateX(0);
}
.demo__status-icon {
  font-size: 7px;
  color: var(--muted-dim);
  transition: color 0.5s var(--ease);
}
.demo__step.is-active .demo__status-icon,
.demo__step.is-done .demo__status-icon {
  color: var(--gold);
}

.demo__progress {
  height: 2px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.demo__progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}

/* How it works rows */
.how { margin-top: 120px; padding-bottom: var(--section-pad); border-top: 1px solid var(--hairline); padding-top: 72px; }
.how__rows {
  display: grid;
  gap: 0;
  margin-top: 36px;
}
.how__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.how__row:last-child { border-bottom: 1px solid var(--hairline); }
.how__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.how__row p { color: var(--muted); max-width: 60ch; font-size: 16px; }

/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */
.industries {
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.industries .container { max-width: 780px; text-align: center; }
.industries__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
}
.industries__support {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.industries__note {
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.industries__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.industries__grid li {
  background: var(--bg-raised);
  padding: 26px 18px;
  font-size: 14px;
  color: var(--ivory);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products .container { max-width: 900px; text-align: center; }
.products__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  max-width: 46ch;
  margin: 0 auto;
}

.products__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}

.product-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 26px 22px;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 14px 0 10px;
}
.product-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.product-card__badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--hairline);
  padding: 4px 9px;
  border-radius: 2px;
}
.product-card__badge--live {
  color: var(--gold);
  border-color: var(--gold-soft);
}

.product-card--flagship {
  grid-column: span 2;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-raised));
  border-color: var(--gold-soft);
  padding: 34px 30px;
}
.product-card--flagship h3 { font-size: 26px; }
.product-card--flagship p { font-size: 15px; max-width: 40ch; }

/* ============================================================
   WHY WE EXIST
   ============================================================ */
.why {
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.why__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.35;
}
.why__body {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}
.why__mission {
  margin: 56px auto;
  max-width: 52ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--gold);
  line-height: 1.5;
  position: relative;
  padding: 0 0 0 0;
}
.why__mission::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto 28px;
}
.why__principles {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   FINAL CTA / BOOKING FORM
   ============================================================ */
.demo-section { text-align: center; }
.demo-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 54px);
}
.demo-section__support {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.booking-form {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  text-align: left;
}
.booking-form__row { display: flex; flex-direction: column; gap: 8px; }
.booking-form__row--full { grid-column: 1 / -1; }

.booking-form label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.booking-form__optional { text-transform: none; letter-spacing: 0; }

.booking-form input,
.booking-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--ivory);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--gold-soft);
  outline: none;
}

.booking-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

.booking-form__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted-dim);
}
.booking-form__note a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  font-size: 15px;
}
.footer__tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-family: var(--font-display);
}
.footer__email {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gold);
}
.footer__copyright {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted-dim);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .problem__list { grid-template-columns: repeat(2, 1fr); }
  .leadrelay__grid { grid-template-columns: 1fr; gap: 56px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--flagship { grid-column: span 2; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 22px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }

  .hero { padding-top: 140px; }
  .hero__word { letter-spacing: 0.08em; padding-left: 0.08em; }
  .hero__actions { flex-direction: column; gap: 18px; }
  .hero__actions .btn { width: 100%; max-width: 280px; }

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

  .how__row { grid-template-columns: 40px 1fr; }

  .products__grid { grid-template-columns: 1fr; }
  .product-card--flagship { grid-column: span 1; }

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

  .booking-form { grid-template-columns: 1fr; }
  .booking-form__submit { width: 100%; justify-self: stretch; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__field { animation: none; }
  .hero__scroll-cue span { animation: none; }
  .reveal, .reveal-io, .js-seq {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .demo__step { transition: none; }
  .product-card:hover { transform: none; }
}
