/* ──────────────────────────────────────────────────────────────────────────
   Syncsity — Page-specific styles
   Hero, why-us, services, pricing, etc.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Animated grid backdrop ─────────────────────────────────────────────── */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 90%);
  pointer-events: none;
  opacity: 0.6;
}
.bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(51,133,223,0.18), transparent 60%),
    radial-gradient(500px 280px at 80% 30%, rgba(252,163,17,0.10), transparent 60%);
}

/* ── Hero video background (absolute inside .hero, behind hero content) ── */
.hero-video {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 100%);
}
.hero__container { position: relative; z-index: 2; }
.hero--video .hero__inner { position: relative; z-index: 2; }
.hero-video__fallback {
  position: absolute; inset: 0;
  background: url('/assets/img/hero-fallback.png') center/cover no-repeat;
  opacity: 0.35;
}
.hero-video__iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;          /* 16:9 */
  min-width: 177.77vh; min-height: 100vh; /* fill on tall screens */
  pointer-events: none; border: 0;
}
.hero-video__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,11,26,0.62) 0%,
    rgba(6,11,26,0.78) 60%,
    rgba(6,11,26,0.92) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video__iframe { display: none; } }

/* Mobile: hide the YouTube iframe (it's a 1080p drain on cellular) and show the
   gradient + fallback image instead — visually equivalent at 360px wide. */
@media (max-width: 720px) {
  .hero-video__iframe { display: none; }
  .hero-video__fallback { opacity: 0.5; }
}

.hero--video {
  /* Keep hero text light against the dark video overlay regardless of theme */
  --text:          rgba(255,255,255,0.96);
  --text-muted:    rgba(255,255,255,0.78);
  --text-dim:      rgba(255,255,255,0.55);
  --surface:       rgba(255,255,255,0.06);
  --bg-elev-1:     rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.24);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--s-32) 0 var(--s-20);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  max-width: 980px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-8);
}
.hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 800;
}
.hero__title .line { display: block; }
.hero__title .accent { color: var(--blue-300); }
[data-theme="light"] .hero__title .accent { color: var(--blue-500); }
.hero__lede { max-width: 760px; }

.hero__cta-row {
  display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center;
  margin-top: var(--s-2);
}

.hero__pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4);
  width: 100%; max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  backdrop-filter: blur(8px);
}
@media (max-width: 540px) {
  .hero__pillars { grid-template-columns: 1fr; }
}
.hero__pillar {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: left;
}
.hero__pillar-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--text-inverse); background: var(--orange);
  padding: 2px 8px; border-radius: 4px;
  margin-bottom: 6px;
}
.hero__pillar-tag.is-blue { background: var(--blue-400); color: #fff; }
.hero__pillar h3 { font-size: 0.95rem; color: var(--blue-300); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
[data-theme="light"] .hero__pillar h3 { color: var(--blue-500); }
.hero__pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Funnel cards (Diagnose / Solutions / Transform) ─────────────────── */
.funnel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
@media (max-width: 880px) { .funnel-grid { grid-template-columns: 1fr; } }
.funnel-card {
  display: flex; flex-direction: column;
  padding: var(--s-8);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-2xl);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}
[data-theme="light"] .funnel-card {
  background: #ffffff;
  border-color: rgba(20,33,61,0.08);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(20,33,61,0.08);
}
.funnel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}
[data-theme="light"] .funnel-card:hover { border-color: rgba(20,33,61,0.18); background: #fafbfd; }
.funnel-card__top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.funnel-card__icon {
  width: 56px; height: 56px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.85);
}
[data-theme="light"] .funnel-card__icon { background: rgba(51,133,223,0.10); color: var(--accent); }
.funnel-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
[data-theme="light"] .funnel-card__num { color: var(--text-dim); }
.funnel-card__top h3 {
  font-size: 1.55rem; font-weight: 300; letter-spacing: -0.02em;
  color: inherit; margin-top: 2px;
}
.funnel-card__h {
  font-size: 1.2rem; font-weight: 600; line-height: 1.3;
  color: inherit; margin-bottom: var(--s-3);
}
.funnel-card__p {
  color: rgba(255,255,255,0.70);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: var(--s-6);
}
[data-theme="light"] .funnel-card__p { color: var(--text-muted); font-weight: 400; }
.funnel-card__list {
  display: grid; gap: 10px; flex: 1; margin-bottom: var(--s-8);
  padding: 0; list-style: none;
}
.funnel-card__list li {
  position: relative; padding-left: 16px;
  color: rgba(255,255,255,0.60); font-size: 0.92rem;
}
[data-theme="light"] .funnel-card__list li { color: var(--text-muted); }
.funnel-card__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.40);
}
[data-theme="light"] .funnel-card__list li::before { background: var(--accent); }
.funnel-card__cta {
  display: block;
  text-align: center;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-md);
  font-weight: 500;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
[data-theme="light"] .funnel-card__cta { border-color: rgba(20,33,61,0.18); }
.funnel-card:hover .funnel-card__cta {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.30);
}
[data-theme="light"] .funnel-card:hover .funnel-card__cta {
  background: rgba(51,133,223,0.06);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Client logos marquee ────────────────────────────────────────────── */
.clients .section-head { margin-bottom: var(--s-8); }
.clients__rule {
  width: 56px; height: 3px; background: var(--accent);
  margin: var(--s-3) auto var(--s-4);
  border-radius: 2px;
}
.clients__marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.clients__track {
  display: flex; gap: var(--s-4);
  width: max-content;
  animation: clients-scroll 90s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__logo {
  flex: 0 0 auto;
  width: 180px; height: 96px;
  display: grid; place-items: center;
  padding: var(--s-4);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.clients__logo:hover { border-color: var(--accent); transform: translateY(-2px); }
.clients__logo img {
  max-width: 100%; max-height: 56px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.92);
  transition: filter var(--t-fast) var(--ease);
}
.clients__logo:hover img { filter: grayscale(0) opacity(1); }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  padding: var(--s-10);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--font-mono); font-size: clamp(1.6rem, 1vw + 1.5rem, 2.6rem); color: var(--accent); font-weight: 700; letter-spacing: -0.02em; }
.stat__num .unit { color: var(--orange); }
.stat__label { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* ── Section headings ───────────────────────────────────────────────────── */
.section-head { max-width: 720px; margin: 0 auto var(--s-12); text-align: center; }
.section-head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p { font-size: 1.1rem; color: var(--text-muted); }

/* ── Three-up grids ──────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); align-items: stretch; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.price-card--featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.price-card .price {
  font-family: var(--font-mono); font-size: clamp(2rem, 1vw + 1.8rem, 2.8rem); color: var(--text);
  font-weight: 700; letter-spacing: -0.03em;
}
.price-card .price small { color: var(--text-muted); font-size: 0.92rem; font-weight: 400; }
.price-card ul { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-6) 0; flex: 1; }
.price-card li { display: flex; gap: var(--s-3); color: var(--text-muted); font-size: 0.95rem; }
.price-card li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(54,179,126,0.15); border: 1px solid var(--green); flex-shrink: 0; margin-top: 4px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2336B37E' stroke-width='2.5'><path d='M3 8l3 3 7-7'/></svg>"); background-size: 10px; background-position: center; background-repeat: no-repeat; }

/* ── Marquee logo strip (clients) ───────────────────────────────────────── */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--s-6); align-items: center; opacity: 0.7;
}
@media (max-width: 720px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logos > * { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: var(--s-3) var(--s-2); border: 1px dashed var(--border); border-radius: var(--r-sm); }

/* ── Process timeline ───────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 32px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  z-index: 0;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6); position: relative; z-index: 1; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--accent); color: #fff; border-radius: 50%; font-family: var(--font-mono); font-weight: 700; margin-bottom: var(--s-4); }
.step h4 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  cursor: pointer; font-weight: 600; color: var(--text); font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin-top: var(--s-3); color: var(--text-muted); }

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.cta-strip {
  position: relative; overflow: hidden;
  padding: var(--s-16) var(--s-10);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  text-align: center;
}
[data-theme="light"] .cta-strip { background: linear-gradient(135deg, #ffffff 0%, #f1f5fb 100%); }
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(51,133,223,0.18), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(252,163,17,0.10), transparent 50%);
}
.cta-strip > * { position: relative; }
.cta-strip h2 { margin-bottom: var(--s-4); }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--s-12) var(--s-6);
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; align-items: center; gap: var(--s-3); justify-content: center; margin-bottom: var(--s-8); color: var(--text); font-weight: 600; }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: var(--s-2); }
.auth-card .lead { text-align: center; margin-bottom: var(--s-8); font-size: 0.95rem; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dash-shell { padding: var(--s-12) 0 var(--s-20); }
.dash-head { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: end; justify-content: space-between; margin-bottom: var(--s-10); }
.dash-head h1 { font-size: 2rem; }
.dash-empty {
  text-align: center; padding: var(--s-16);
  background: var(--bg-elev-1); border: 1px dashed var(--border-strong); border-radius: var(--r-xl);
}
.report-list { display: grid; gap: var(--s-4); }
.report-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  align-items: center;
  transition: border-color var(--t-fast) var(--ease);
}
.report-row:hover { border-color: var(--accent); }
.report-row__title { color: var(--text); font-weight: 600; }
.report-row__meta  { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.82rem; }
@media (max-width: 720px) { .report-row { grid-template-columns: 1fr; } .report-row__meta { font-size: 0.78rem; } }
