/* ==========================================================================
   VERTEXIX — Marketing Site
   Clean, modern, soft-UI (neumorphic-inspired) styling on a light background.
   No animated backgrounds — just soft elevated surfaces, a purple accent,
   and generous whitespace. Mobile-first, progressively enhanced.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom properties
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #dfe3ea;              /* page background — light grey */
  --bg-alt: #d5dae3;          /* slightly deeper alt-section background */
  --surface: #dfe3ea;         /* card surface, matches bg for soft-UI effect */
  --surface-white: #ffffff;   /* pure white surface (header, screenshots frame) */

  /* Soft-UI shadow pair */
  --shadow-dark: #b7bec9;
  --shadow-light: #fbfcfe;

  /* Text */
  --text: #1f2430;
  --text-muted: #5b6273;
  --text-subtle: #8a90a0;

  /* Accent — purple gradient */
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.1);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   3. Soft-UI surfaces
   -------------------------------------------------------------------------- */
.neu-raised {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
}

.neu-raised-sm {
  background: var(--surface);
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(109, 40, 217, 0.4);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
}

.btn--ghost:hover {
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   5. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1rem;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* --------------------------------------------------------------------------
   6. Kicker / eyebrow
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.eyebrow--center {
  display: block;
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero__logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.hero__logo-frame {
  display: inline-flex;
  padding: var(--space-lg);
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: 14px 14px 34px var(--shadow-dark), -14px -14px 34px var(--shadow-light);
}

.hero__logo {
  display: block;
  width: 480px;
  height: 480px;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 560px;
}

.lead--muted {
  font-size: 0.98rem;
  color: var(--text-subtle);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hero__stats li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero__stats strong {
  display: block;
  font-size: 1.3rem;
  color: var(--text);
}

.hero__media,
.feature__media {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  box-shadow: 10px 10px 28px var(--shadow-dark), -10px -10px 28px var(--shadow-light);
}

.hero__media img,
.feature__media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.hero__media a,
.feature__media a {
  display: block;
  cursor: zoom-in;
}

.hero__media a img,
.feature__media a img {
  transition: opacity 0.15s ease;
}

.hero__media a:hover img,
.feature__media a:hover img {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8. Feature sections (text left, screenshot right)
   -------------------------------------------------------------------------- */
.feature {
  padding: var(--space-2xl) 0;
}

.feature--alt {
  background: var(--bg-alt);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature__text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.feature__text p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.feature__list li {
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.feature__list strong {
  color: var(--text);
}

.feature__note {
  color: var(--text-subtle);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   9. Pipeline feature grid (no screenshots)
   -------------------------------------------------------------------------- */
.pipeline {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.pipeline__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pipeline__card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
  transition: transform var(--dur) var(--ease);
}

.pipeline__card:hover {
  transform: translateY(-4px);
}

.pipeline__card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.pipeline__card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Audience section
   -------------------------------------------------------------------------- */
.audience {
  padding: var(--space-2xl) 0;
  background: var(--bg-alt);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.audience__card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  box-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
}

.audience__card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--accent-dark);
}

.audience__card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10b. Compare table
   -------------------------------------------------------------------------- */
.compare {
  padding: var(--space-2xl) 0;
}

.compare__table-wrap {
  overflow-x: auto;
  padding: var(--space-sm);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.compare__table th,
.compare__table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.95rem;
}

.compare__table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.compare__table thead th:not(.compare__feature-col) {
  text-align: center;
}

.compare__table tbody td:not(:first-child) {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.compare__table tbody tr:not(.compare__section-row) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.compare__table tbody td:first-child {
  color: var(--text);
}

.compare__section-row th {
  padding-top: 22px;
  padding-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border-bottom: none;
}

.compare__pro-col {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.compare__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  vertical-align: middle;
}

.icon-yes {
  color: #16a34a;
  font-weight: 700;
}

.icon-no {
  color: var(--text-subtle);
  font-weight: 700;
}

.compare__price {
  font-size: 1.2rem;
  color: var(--text) !important;
}

.compare__price-row td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.compare__cta {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Final CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: var(--space-2xl) 0;
}

.cta__inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 10px 10px 28px var(--shadow-dark), -10px -10px 28px var(--shadow-light);
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: var(--space-sm);
}

.cta p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand--footer {
  font-size: 1rem;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer__copy {
  color: var(--text-subtle);
  font-size: 0.85rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pipeline__grid,
  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface-white);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a:not(.btn) {
    padding: 10px 6px;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero__grid,
  .feature__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .pipeline__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: 160px;
    height: 160px;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .feature,
  .pipeline,
  .audience,
  .cta {
    padding: var(--space-xl) 0;
  }

  .hero__cta,
  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: small;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}