/* ──────────────────────────────────────────────────────────────────────────
   Syncsity — Shared design system for static .html pages
   (contact.html, demo.html, terms.html, privacy.html, sitemap.html, client-login.html)
   Matches the SPA visual language: dark navy + Inter + blue accent + orange highlight.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --navy-darker: #060b1a;
  --navy-dark: #0a1022;
  --navy: #14213d;
  --navy-light: #1a2a4a;
  --blue-300: #66a3e7;
  --blue-400: #3385df;
  --blue-500: #0066d7;
  --blue-600: #0052ac;
  --orange: #fca311;
  --green: #36b37e;
  --error: #ff5630;
  --text: rgba(255,255,255,0.94);
  --text-muted: rgba(255,255,255,0.72);
  --text-dim: rgba(255,255,255,0.50);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text);
  background: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--blue-300); text-decoration: none; transition: color 150ms ease; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ── Background ── */
.bg-stage {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(51,133,223,0.18), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(252,163,17,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-darker) 0%, var(--navy) 100%);
}
.bg-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,16,34,0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: none; gap: 28px; align-items: center; }
.nav__links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* Chevron for menu items that point at sections with sub-pages on the SPA.
   Matches the visual indicator on the SPA's Transform / Solutions / Resources
   menus. Pure CSS, no dropdown — clicking the link takes you to the index. */
.nav__links a.has-chevron { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a.has-chevron::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  transition: opacity 150ms ease;
}
.nav__links a.has-chevron:hover::after { opacity: 0.95; }
@media (min-width: 880px) { .nav__links { display: flex; } }

/* ── Mobile menu (hamburger + overlay) ── */
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 10px; color: #fff; cursor: pointer;
  padding: 0; margin-left: 8px;
}
.nav__burger:hover { background: rgba(255,255,255,0.06); }
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: relative; transition: transform 200ms ease, opacity 200ms ease;
}
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; transition: transform 200ms ease, top 200ms ease;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }
.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__burger.is-open span::after  { top: 0; transform: rotate(-45deg); }
@media (min-width: 880px) { .nav__burger { display: none; } }

/* Hide the desktop CTA cluster on narrow screens; the menu drawer holds them */
@media (max-width: 879px) { .nav__cta { gap: 6px; } .nav__cta .btn--ghost { display: none; } }
@media (max-width: 559px) { .nav__cta .btn--orange { display: none; } }

.nav__drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,8,20,0.92);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  display: none;
  opacity: 0; transition: opacity 200ms ease;
}
.nav__drawer.is-open { display: flex; opacity: 1; }
.nav__drawer__inner {
  margin: 0 auto; width: 100%; max-width: 480px;
  padding: 96px 28px 40px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav__drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 8px;
  color: #fff; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__drawer a:hover { color: var(--blue-400); }
.nav__drawer__ctas {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 24px;
}
.nav__drawer__ctas .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: 9999px; border: 1px solid transparent;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(51,133,223,0.30);
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(51,133,223,0.45); }
.btn--orange {
  background: var(--orange); color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(252,163,17,0.30);
}
.btn--orange:hover { background: #ffb340; color: var(--navy-dark); box-shadow: 0 12px 32px rgba(252,163,17,0.45); }
.btn--ghost {
  background: transparent; color: #fff; border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--md { max-width: 920px; }
.container--sm { max-width: 720px; }
.section { padding: 80px 0; }
.section--hero { padding: 96px 0 48px; text-align: center; }
.section--tight { padding: 48px 0; }

/* ── Typography ── */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--blue-300); font-weight: 500;
}
h1, .h1 { font-size: clamp(2.25rem, 4vw + 1rem, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2, .h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem); color: var(--text-muted); line-height: 1.7; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Hero pill ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(51,133,223,0.10);
  border: 1px solid rgba(51,133,223,0.30);
  border-radius: 9999px;
  font-size: 13px; color: var(--blue-300);
  margin-bottom: 24px;
}
.pill--orange {
  background: rgba(252,163,17,0.10);
  border-color: rgba(252,163,17,0.30);
  color: var(--orange);
}

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: border-color 240ms ease, transform 240ms ease;
}
.card--hover:hover { transform: translateY(-3px); border-color: var(--border-strong); }

/* ── Form fields (floating labels) ── */
.flash {
  margin-bottom: 24px; padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
  border: 1px solid var(--border);
}
.flash.is-success { display: block; background: rgba(54,179,126,0.10); border-color: rgba(54,179,126,0.40); color: #6ee0a8; }
.flash.is-error   { display: block; background: rgba(255,86,48,0.10); border-color: rgba(255,86,48,0.40); color: #ffb4a0; }

.field { position: relative; margin-bottom: 22px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field__row { grid-template-columns: 1fr; gap: 0; } }

.input, .textarea, .select {
  width: 100%;
  padding: 22px 16px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: transparent; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(51,133,223,0.15);
}
.textarea { min-height: 140px; resize: vertical; padding-top: 28px; }
.select { padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.40) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.40) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
  background-size: 6px 6px; background-repeat: no-repeat;
}

.field__label {
  position: absolute; left: 16px; top: 16px;
  font-size: 14px; color: var(--text-dim);
  pointer-events: none;
  transition: top 150ms ease, font-size 150ms ease, color 150ms ease;
}
.input:focus + .field__label,
.input:not(:placeholder-shown) + .field__label,
.textarea:focus + .field__label,
.textarea:not(:placeholder-shown) + .field__label,
.select:not([data-empty="true"]) + .field__label,
.select:focus + .field__label {
  top: 8px; font-size: 11px; color: var(--blue-300);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.10em; text-transform: uppercase;
}

.field__hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin: 22px 0;
}
.checkbox-row input[type=checkbox] {
  width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue-400);
}

.submit-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 8px;
}
.submit-meta { color: var(--text-dim); font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* ── Long-form content (terms, privacy) ── */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text-muted); }
.prose h2 { color: #fff; margin-top: 48px; margin-bottom: 16px; }
.prose h3 { color: #fff; margin-top: 32px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 16px 0 16px 24px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: #fff; }
.prose a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 80px;
  font-size: 13px; color: var(--text-dim);
  text-align: center;
}
.footer a { color: var(--text-muted); margin: 0 10px; }
.footer a:hover { color: #fff; }
.footer__top {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px;
  text-align: left;
}
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }
.footer__top h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px; font-weight: 600;
}
.footer__top ul { display: flex; flex-direction: column; gap: 10px; }
.footer__top li a { color: var(--text-muted); font-size: 14px; }
.footer__top li a:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}

/* ── Reveal ── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal--d1 { animation-delay: 100ms; }
.reveal--d2 { animation-delay: 200ms; }
.reveal--d3 { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
