/* ==========================================================================
   Vertexa Ventures — Global Brand Theme
   Single source of truth for brand colors, typography and shared UI.
   Change a value here and it updates the website (and any admin panel
   that also loads this file).
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-blue:   #2563eb;
  --brand-indigo: #4f46e5;
  --brand-purple: #7c3aed;
  --brand-pink:   #ec4899;
  --brand-amber:  #f59e0b;

  /* Semantic */
  --color-primary:      var(--brand-blue);
  --color-primary-dark: #1d4ed8;
  --color-accent:       var(--brand-pink);

  /* Surfaces / text */
  --color-bg:          #ffffff;
  --color-bg-soft:     #f5f8ff;
  --color-bg-muted:    #eef2fb;
  --color-ink:         #0f172a;
  --color-ink-soft:    #475569;
  --color-ink-faint:   #94a3b8;
  --color-border:      #e2e8f0;
  --color-navy:        #0b1b3b;

  /* Gradients */
  --gradient-brand: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-purple) 55%, var(--brand-pink) 100%);
  --gradient-soft:  linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);

  /* Effects */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .10);
  --shadow-md: 0 10px 30px -12px rgba(37, 99, 235, .25);
  --shadow-lg: 0 30px 60px -20px rgba(79, 70, 229, .35);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(14px, 2.5vw, 32px);
}

* { box-sizing: border-box; }

/* clip (not hidden) so it doesn't create a scroll container that breaks position:sticky */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* Fluid container — full width minus a small gutter, with a high cap so it
   doesn't stretch endlessly on ultra-wide monitors. */
.container-x {
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Opt-in narrow wrapper for long-form text blocks that shouldn't run edge-to-edge. */
.container-narrow {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

/* --- Text helpers --- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn.is-loading {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  display: inline-block;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-arrow svg { transition: transform .2s ease; }
.btn:hover .btn-arrow svg,
.btn-primary:hover svg { transform: translateX(3px); }

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, .35);
}

/* --- Venture cards — clean white, accent only on the small details --- */
.venture-card {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.venture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(15, 23, 42, .28);
  border-color: color-mix(in srgb, var(--accent, #2563eb) 45%, #fff);
}
.venture-card__media {
  background: #fff;
  border: 1px solid var(--color-border);
}
.venture-card__icon {
  background: color-mix(in srgb, var(--accent, #2563eb) 12%, #fff);
  color: var(--accent, #2563eb);
}
.venture-card__arrow { background: var(--accent, #2563eb); }
.venture-card__link  { color: var(--accent, #2563eb); }

@supports not (color: color-mix(in srgb, red, blue)) {
  .venture-card:hover { border-color: #c7d2fe; }
  .venture-card__icon { background: var(--color-bg-muted); color: var(--color-primary); }
  .venture-card__arrow { background: var(--color-primary); }
  .venture-card__link { color: var(--color-primary); }
}

/* --- Why Vertexa advantage cards --- */
.advantage-card {
  background: #f6f8fd;
  border: 1px solid #eef1f9;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.advantage-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 20px 40px -22px rgba(37, 99, 235, .3);
}
.advantage-card__icon {
  background: linear-gradient(160deg, #dbeafe, #eef4ff);
  color: var(--brand-blue);
  transition: transform .22s ease;
}
.advantage-card:hover .advantage-card__icon { transform: scale(1.06); }

/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal][data-reveal="right"] { transform: translateX(28px); }
[data-reveal].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Toast (pill, dark bg, white text) --- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #0f172a;
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.toast.error .dot { background: #ef4444; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: 0 8px 24px -16px rgba(15,23,42,.25);
}
.nav-link { position: relative; font-weight: 500; color: var(--color-ink-soft); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--color-ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--gradient-brand);
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- Desktop "Businesses" dropdown --- */
.nav-dd { position: relative; }
.nav-dd__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.nav-dd::before {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 20px;
}
.nav-dd:hover .nav-dd__menu,
.nav-dd:focus-within .nav-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: .9rem;
  color: var(--color-ink-soft);
}
.nav-dd__menu a::after { display: none; }
.nav-dd__menu a:hover { background: var(--color-bg-muted); color: var(--color-ink); }

/* --- Mobile slide-in drawer --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: #fff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  box-shadow: -24px 0 60px -24px rgba(15, 23, 42, .35);
}
.nav-drawer.is-open { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.drawer-link {
  padding: .72rem .85rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.drawer-link:hover { background: var(--color-bg-muted); color: var(--color-ink); }
.drawer-link.is-active {
  background: color-mix(in srgb, var(--brand-blue) 10%, #fff);
  color: var(--brand-blue);
  font-weight: 600;
}
@media (min-width: 768px) {
  .nav-overlay, .nav-drawer { display: none !important; }
}

/* --- FAQ accordion --- */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; border-radius: 6px; }
.faq-item p { animation: faqReveal .25s ease; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- Simple timeline --- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-pink));
  opacity: .3;
}
.timeline__item { position: relative; padding-left: 40px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-blue);
}

/* --- Generic page hero header — same artwork as the home hero, centred --- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4ff 0%, #f3f7ff 45%, #ffffff 100%);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  max-width: none;
  opacity: .68;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.25) 45%, rgba(255,255,255,.55) 100%);
}
.page-hero > .container-x { z-index: 2; }
.page-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .page-hero__bg { height: auto; top: auto; bottom: 0; }
}

/* --- Marquee / floating blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(20px,-30px,0) scale(1.08); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--color-bg-muted);
  color: var(--color-ink-soft);
}

/* --- Forms --- */
.field {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
label { font-size: .85rem; font-weight: 600; color: var(--color-ink-soft); }
.field-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1) !important; }
.field-error { margin: .35rem 0 0; font-size: .78rem; font-weight: 600; color: #dc2626; }

/* ==========================================================================
   HERO — "One Vision. Multiple Possibilities."
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4ff 0%, #f3f7ff 45%, #ffffff 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
  max-width: none;
  opacity: .72;
}
/* Soften the artwork toward the top so the headline sits on near-white. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.15) 32%, rgba(255,255,255,0) 55%);
}
/* On tall/portrait viewports the wide artwork can't cover the height without
   heavy cropping — anchor it to the bottom and let the CSS gradient fill above. */
@media (max-width: 900px) {
  .hero__bg { height: auto; top: auto; bottom: 0; }
}
.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: #64748b;
}
.hero__title {
  margin: 1.1rem 0 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 3.8vw, 2.95rem); color: #0e1b3d;
}
.hero__title .l2 { display: block; }
.hero__word-multiple {
  background: linear-gradient(92deg, #1d4ed8 0%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__word-poss {
  background: linear-gradient(92deg, #6d28d9 0%, #db2777 42%, #f43f5e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { margin-top: 1.5rem; max-width: 34rem; font-size: 1.075rem; line-height: 1.7; color: #475569; }
.hero__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .98rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s, color .2s;
}
.hero__btn svg { transition: transform .2s ease; }
.hero__btn:hover svg { transform: translateX(4px); }
.hero__btn--solid { background: #2563eb; color: #fff; box-shadow: 0 18px 34px -14px rgba(37,99,235,.6); }
.hero__btn--solid:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -14px rgba(37,99,235,.7); }
.hero__btn--outline { background: #fff; color: #0e1b3d; border: 1.5px solid #d5dced; }
.hero__btn--outline:hover { transform: translateY(-2px); border-color: #2563eb; color: #2563eb; }

.hero__rule {
  margin-top: 3rem; display: flex; align-items: center; gap: 1rem;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: #94a3b8; font-weight: 600;
}
.hero__rule::before { content: ""; width: 46px; height: 2px; background: #cbd5e1; }

.hero__inner { padding-top: 3rem; padding-bottom: 3.5rem; }
.hero__inner > * { min-width: 0; max-width: 100%; }
.hero__stage {
  position: relative; min-width: 0; max-width: 100%; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  margin: 2rem auto 0;
}
@media (min-width: 1024px) {
  /* Fill exactly one screen (minus the 76px sticky header) so the next
     section only appears after the first scroll. */
  .hero { min-height: calc(100vh - 76px); display: flex; align-items: center; }
  .hero__inner {
    width: 100%;
    display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 1.5rem; align-items: center;
    padding-top: 2rem; padding-bottom: 2rem;
  }
  .hero__stage { min-height: 560px; margin: 0; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  /* Short laptop screens: let the hero scroll rather than crush the layout. */
  .hero { min-height: auto; }
  .hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
.hero__logo {
  position: absolute; top: -4%; left: 50%; width: min(248px, 32%); height: auto;
  transform: translateX(-50%); max-width: none;
  filter: drop-shadow(0 22px 34px rgba(79,70,229,.28));
  animation: heroLogoFloat 7s ease-in-out infinite; z-index: 1;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-14px); }
}
/* Business composition artwork + clickable hotspots over each card */
.hero__businesses {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  margin: 70px auto 0;
}
.hero__businesses > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 55px rgba(30, 58, 138, .28));
  animation: heroBizFloat 8s ease-in-out infinite;
}
@keyframes heroBizFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero__hotspot {
  position: absolute;
  top: 7%;
  height: 80%;
  border-radius: 20px;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hero__hotspot:hover,
.hero__hotspot:focus-visible {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .45), 0 20px 40px -18px rgba(37, 99, 235, .5);
  transform: translateY(-4px);
  outline: none;
}

.hero__script {
  position: absolute; top: 8%; right: 2%;
  font-family: "Caveat", ui-serif, cursive; font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.05; color: #33415a;
  transform: rotate(-6deg); text-align: center; z-index: 3;
}
.hero__script span { display: block; }
.hero__script::after {
  content: ""; display: block; width: 70%; height: 3px; margin: 6px auto 0;
  border-radius: 999px; background: linear-gradient(90deg, #2563eb, #ec4899);
}

@media (max-width: 1023px) {
  .hero__script { display: none; }
  .hero__stage { width: 100%; max-width: 520px; }
}
@media (max-width: 640px) {
  .hero__stage { min-height: 240px; }
  .hero__businesses { margin-top: 40px; max-width: 460px; }
  .hero__logo { width: 40%; top: 0; }
  .hero__eyebrow { letter-spacing: .14em; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__businesses > img { animation: none; }
}
