/* ═══════════════════════════════════════════════════════════════
   QTSI — sections.css
   Hero · Trust Bar · Services
   Design by NEXORA (nexorayyc.io)
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  background: var(--bg-void);
  /* Extra bottom padding so content clears nav */
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Canvas — fills full hero, z=0 */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Crisp on retina — sized via JS */
}

/* Hero CSS blobs hidden — canvas handles all ambient lighting in hero */
.hero-blob-1,
.hero-blob-2,
.hero-blob-3 {
  display: none;
}

/* Dot-grid overlay — hidden, canvas handles all ambient lighting */
.hero-grid-overlay {
  display: none;
}

/* Content wrapper — 2-column on desktop */
.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

/* ── Right: Infinity visual ──────────────────────────── */
.hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding-top: 28px;
}

.hero-infinity-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 520 / 320;
  animation: heroInfFloat 6s ease-in-out infinite;
}

@keyframes heroInfFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(6px) rotate(-0.3deg); }
}

.hero-infinity-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Animated dash trace — continuous draw */
.inf-dash-path {
  stroke-dasharray: 40 840;
  stroke-dashoffset: 0;
  animation: infDash 3s linear infinite;
}

@keyframes infDash {
  from { stroke-dashoffset: 880; }
  to   { stroke-dashoffset: 0; }
}

/* Floating orbs around the infinity */
.hero-inf-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.hero-inf-orb--blue {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,112,243,.28) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation: floatA 10s ease-in-out infinite;
}

.hero-inf-orb--green {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(93,185,55,.22) 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation: floatB 13s ease-in-out infinite;
}

/* Collapse to single column on tablet */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .hero-visual {
    display: none;
  }
}

/* Eyebrow pill */
.hero-eyebrow-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Headline — tight to eyebrow, Apple-style */
.hero-headline {
  margin-top: var(--sp-5);
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Ensure single eyebrow (no extra hero-tagline pill) */
.hero-eyebrow-anim { animation: fadeUp 0.7s var(--ease-expo) 0.2s both; }

/* Sub */
.hero-sub {
  margin-top: var(--sp-6);
  max-width: 640px;
  color: var(--text-secondary);
}

/* CTA group */
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

/* Trust badges row */
.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.hero-badges .tag--white {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Scroll cue */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-expo) 1.4s both;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border-hi), transparent);
  animation: scanLine 2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Horizontal rule below hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md) 30%, var(--border-md) 70%, transparent);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    min-height: 100dvh;
    align-items: flex-start;
  }
  .hero-blob-1 { width: 400px; height: 400px; }
  .hero-blob-2 { width: 350px; height: 350px; }
  .hero-blob-3 { display: none; }
  .hero-grid-overlay { background-size: 28px 28px; }
  .hero-scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
}

/* ══════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════ */

.trust-bar {
  position: relative;
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
  padding-block: 18px;
  overflow: hidden;
  /* Don't apply content-visibility here — it's always visible */
  content-visibility: visible;
}

/* Edge fade masks */
.trust-bar-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.trust-bar-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg-raised) 0%, transparent 100%);
}

.trust-bar-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg-raised) 0%, transparent 100%);
}

.marquee-wrapper {
  overflow: hidden;
  display: flex;
}

/* Pills */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary);
}

.trust-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.trust-pill--blue {
  background: rgba(0,112,243,.07);
  border-color: rgba(0,112,243,.18);
  color: var(--blue-light);
}
.trust-pill--blue::before { background: var(--blue-light); box-shadow: 0 0 4px var(--blue); }

.trust-pill--green {
  background: rgba(93,185,55,.06);
  border-color: rgba(93,185,55,.16);
  color: var(--green-light);
}
.trust-pill--green::before { background: var(--green-light); box-shadow: 0 0 4px var(--green); }

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */

/* 4-col on wide desktop, 2-col on tablet, 1-col mobile */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Service card */
.service-card {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  /* Ensure full-height cards in a row align */
  height: 100%;
}

/* Featured card — brand gradient border glow */
.service-card--featured {
  background: rgba(0,112,243,.06);
  border-color: rgba(0,112,243,.22);
}

.service-card--featured:hover {
  background: rgba(0,112,243,.10);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,112,243,.22), 0 0 120px rgba(93,185,55,.12);
}

/* Featured badge */
.service-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--grad-brand);
  color: #fff;
}

/* AI card special glow */
.service-card--ai {
  background: rgba(93,185,55,.05);
  border-color: rgba(93,185,55,.18);
  overflow: visible;
}

.service-ai-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,112,243,.08) 0%, rgba(93,185,55,.08) 100%);
  z-index: -1;
  filter: blur(12px);
  pointer-events: none;
}

/* Icon */
.service-icon { margin-bottom: var(--sp-2); flex-shrink: 0; }

/* Title */
.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

/* Description */
.service-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1; /* push benefits + CTA down */
}

/* Benefits list */
.service-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

/* CTA link */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  transition: gap 150ms cubic-bezier(0.34,1.56,0.64,1), color 200ms;
  min-height: 44px;
}

.service-cta:hover {
  color: var(--text-primary);
  gap: 10px;
}

.service-card--green .service-cta,
.service-card--featured.card--accent-green .service-cta {
  color: var(--green-light);
}

/* Responsive service grid */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: var(--sp-6) var(--sp-5); }
}
