/* ── QSupport Cloud · Global Stylesheet ── */

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

:root {
  --navy:   #070B14;
  --navy2:  #0D1424;
  --navy3:  #111827;
  --border: #1E293B;
  --cyan:   #00C8FF;
  --cyan2:  #0EA5E9;
  --text:   #E2E8F0;
  --muted:  #94A3B8;
  --white:  #F8FAFC;
  --danger: #F97316;
  --green:  #22C55E;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; }

.eyebrow, .section-eyebrow, .pillar-tag, .stat-label,
.badge-title, .footer-col h4, .trust-metric .label {
  font-family: 'IBM Plex Mono', monospace;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(7,11,20,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── SECTION SHARED ── */
section { padding: 100px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* ── PAGE HERO (service pages) ── */
.page-hero {
  padding: 160px 48px 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Background image layer — set background-image via inline style on this div */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark overlay: opaque left for text, lighter right to reveal image */
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7,11,20,0.97) 40%, rgba(7,11,20,0.60) 100%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  border: 1px solid rgba(0,200,255,0.25);
  padding: 6px 14px;
  border-radius: 2px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.page-hero h1 span { color: var(--cyan); }

.page-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.hero-stat {
  background: var(--navy2);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.hero-stat .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: border-color 0.25s;
  position: relative;
}

.feature-card:hover { border-color: var(--cyan); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: block;
}

.feature-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.steps { counter-reset: steps; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  counter-increment: steps;
  user-select: none;
}

.step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--navy2);
  border: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: left;
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--cyan); }

.faq-q .chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.3s, border-color 0.2s;
}

.faq-item.open .faq-q .chevron { transform: rotate(45deg); border-color: var(--cyan); }
.faq-item.open .faq-q { color: var(--cyan); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 28px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 28px 24px;
}

.faq-a p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
}

.cta-pair { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ── FOOTER ── */
footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 64px 48px 40px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 0.75rem; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  text-decoration: none;
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .page-hero { padding: 120px 24px 64px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat-grid { grid-template-columns: 1fr 1fr; }
}
