/* ============================================================
   Vyndexo Workspace — marketing site stylesheet
   Brand: near-black surfaces, cyan (#00C8D4) primary accent
   Display: Syne | Body: Inter
   ============================================================ */

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; }

::selection { background: rgba(0,200,212,0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---- tokens ---- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2rem, 1.4rem + 2vw, 3.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1.25rem; --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16,1,0.3,1);

  --font-display: 'Syne', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* dark-first brand (matches existing Vyndexo identity) */
  --color-bg: #0a0a0b;
  --color-surface: #101113;
  --color-surface-2: #15171a;
  --color-surface-offset: #1a1c1f;
  --color-border: #23262b;
  --color-divider: #1c1e22;

  --color-text: #f2f4f6;
  --color-text-muted: #9a9fa8;
  --color-text-faint: #62666e;

  --color-primary: #00c8d4;
  --color-primary-hover: #16dde8;
  --color-primary-active: #00a6b0;
  --color-primary-highlight: rgba(0,200,212,0.12);

  --color-violet: #b04aff;
  --color-success: #10b981;
  --color-warning: #f97316;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(0,200,212,0.18), 0 8px 40px rgba(0,200,212,0.10);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;
}

[data-theme='light'] {
  --color-bg: #f7f8f9;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f5;
  --color-surface-offset: #eaecef;
  --color-border: #dee1e5;
  --color-divider: #e6e8eb;
  --color-text: #14161a;
  --color-text-muted: #565b64;
  --color-text-faint: #8a8f98;
  --color-primary: #00838c;
  --color-primary-hover: #006269;
  --color-primary-active: #004e54;
  --color-primary-highlight: rgba(0,131,140,0.10);
  --shadow-sm: 0 1px 2px rgba(20,22,26,0.06);
  --shadow-md: 0 8px 24px rgba(20,22,26,0.08);
  --shadow-lg: 0 24px 64px rgba(20,22,26,0.12);
  --shadow-glow: 0 0 0 1px rgba(0,131,140,0.14), 0 8px 40px rgba(0,131,140,0.08);
}

/* ---- layout helpers ---- */
.wrap { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.wrap--narrow { max-width: var(--content-default); }
section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); }

.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.section-head p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 60ch; }
.section-head.center { max-width: 640px; margin-inline: auto; text-align: center; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background var(--transition);
}
[data-theme='light'] .site-header { background: rgba(247,248,249,0.78); }
.site-header.hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-4); }
.nav-logo { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); flex-shrink: 0; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  color: var(--color-text-muted); transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--radius-full); border: 1px solid var(--color-border);
  color: var(--color-text-muted); transition: color var(--transition), border-color var(--transition);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.hamburger { display: none; width: 38px; height: 38px; place-items: center; color: var(--color-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  padding: 0.75rem 1.375rem; border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #04191b; }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--color-bg);
  display: flex; flex-direction: column; padding: var(--space-6);
  transform: translateY(-100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-12); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-6); align-items: center; justify-content: center; flex: 1; }
.mobile-menu a { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--color-text); }
.mobile-menu .btn { margin-top: var(--space-8); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .header-actions .btn-primary { display: none; }
}

/* ---- hero ---- */
.hero { padding-top: clamp(var(--space-16), 10vw, var(--space-24)); padding-bottom: clamp(var(--space-12), 8vw, var(--space-20)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-10); align-items: center; }
.hero-content { max-width: 640px; }
.hero h1 {
  font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}
.hero h1 .accent { color: var(--color-primary); }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 520px; margin: 0 0 var(--space-8); }
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-10); }
.hero-meta { display: flex; gap: var(--space-6); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-text-faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta svg { width: 14px; height: 14px; color: var(--color-primary); }

.hero-visual {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-visual img { width: 100%; border-radius: var(--radius-xl); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); }
[data-theme='light'] .hero-visual img { filter: drop-shadow(0 20px 50px rgba(20,22,26,0.18)); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 640px; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { transform: none; margin-top: var(--space-8); }
}

/* glow backdrop */
.glow-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow-field::before, .glow-field::after {
  content: ''; position: absolute; width: 680px; height: 680px; border-radius: 50%;
  filter: blur(130px); opacity: 0.28;
}
.glow-field::before { background: var(--color-primary); top: -220px; left: -160px; }
.glow-field::after { background: var(--color-violet); top: -120px; right: -200px; opacity: 0.18; }
[data-theme='light'] .glow-field::before, [data-theme='light'] .glow-field::after { opacity: 0.14; }

/* ---- model strip ---- */
.model-strip { border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); padding-block: var(--space-8); overflow: hidden; }
.model-strip p { text-align: center; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-text-faint); margin-bottom: var(--space-5); }
.marquee { display: flex; gap: var(--space-10); width: max-content; animation: scroll-left 38s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  color: var(--color-text-muted); white-space: nowrap; display: flex; align-items: center; gap: var(--space-2);
}
.marquee span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--color-text-faint); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- feature grid (bento) ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); }
.bento-card {
  grid-column: span 12; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8); display: flex; flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover { border-color: rgba(0,200,212,0.35); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-card .icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-primary-highlight);
  color: var(--color-primary); display: grid; place-items: center; margin-bottom: var(--space-5);
}
.bento-card .icon svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); }
.bento-card p { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.bento-card .tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.bento-card .tag {
  font-size: var(--text-xs); padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-muted);
}

@media (min-width: 700px) {
  .bento-card.span-6 { grid-column: span 6; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-8 { grid-column: span 8; }
  .bento-card.span-12 { grid-column: span 12; }
}

/* ---- workflow / how it works ---- */
.flow-list { display: grid; gap: var(--space-6); counter-reset: flow; }
.flow-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: start; padding-block: var(--space-6); border-top: 1px solid var(--color-divider); }
.flow-item:first-child { border-top: none; }
.flow-num {
  counter-increment: flow; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  color: var(--color-primary); width: 56px;
}
.flow-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.flow-item p { color: var(--color-text-muted); max-width: 60ch; }

/* ---- spaces / collab ---- */
.split { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse .split-visual { order: 2; } }
.split-visual { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.avatar-stack { display: flex; margin-top: var(--space-6); }
.avatar-stack .a {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--color-bg);
  margin-left: -12px; background: var(--color-surface-2); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); color: var(--color-primary);
}
.avatar-stack .a:first-child { margin-left: 0; }
.check-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); }
.check-list svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

/* ---- pricing ---- */
.pricing-grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  padding: var(--space-10); display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); position: relative; }
.price-card.featured::before {
  content: 'Most popular'; position: absolute; top: -13px; left: var(--space-8);
  background: var(--color-primary); color: #04191b; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-xs); padding: 0.25rem 0.75rem; border-radius: var(--radius-full); letter-spacing: 0.04em;
}
.price-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.price-card .price { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 800; margin: var(--space-4) 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.price-card .price span { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.price-card p.desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.price-card ul { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); flex: 1; }
.price-card li { display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.price-card li svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--color-divider); }
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-6); text-align: left; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
}
.faq-q svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.16,1,0.3,1); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: var(--space-6); color: var(--color-text-muted); max-width: 68ch; font-size: var(--text-sm); }

/* ---- final CTA ---- */
.final-cta { text-align: center; border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8); position: relative; overflow: hidden; }
.final-cta h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.final-cta p { color: var(--color-text-muted); max-width: 50ch; margin: 0 auto var(--space-8); }
.final-cta .hero-cta { margin-bottom: 0; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-16) var(--space-10); }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1.4fr repeat(3, 1fr); margin-bottom: var(--space-12); }
.footer-brand p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 34ch; margin-top: var(--space-4); }
.footer-col h4 { font-family: var(--font-display); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.footer-col a, .footer-col span { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding-block: var(--space-1); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-bottom .legal-links { display: flex; gap: var(--space-6); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
