/**
 * ReportGen AI — Professional site layer (enterprise polish)
 */

:root {
  --pro-bg: #0c1222;
  --pro-surface: #151d2e;
  --pro-surface-2: #1c2640;
  --pro-border: rgba(148, 163, 184, 0.12);
  --pro-accent: #4f46e5;
  --pro-accent-soft: rgba(79, 70, 229, 0.12);
  --pro-teal: #14b8a6;
  --pro-text: #f1f5f9;
  --pro-muted: #94a3b8;
}

body.ai-site {
  background: var(--pro-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}

.ai-orbs { opacity: 0.35; }
.ai-orb { filter: blur(100px); opacity: 0.25 !important; }

/* Launch banner */
.launch-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  background: linear-gradient(90deg, #312e81 0%, #1e3a5f 50%, #134e4a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #e2e8f0;
}
.launch-banner strong { color: #fff; font-weight: 700; }
.launch-banner code {
  background: rgba(255,255,255,0.12); padding: 0.125rem 0.5rem;
  border-radius: 4px; font-size: 0.75rem; color: #a5f3fc;
}
.launch-banner a { color: #c7d2fe; text-decoration: underline; margin-left: 0.5rem; }
.launch-banner-close {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #e2e8f0;
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background 0.2s;
}
.launch-banner-close:hover { background: rgba(255,255,255,0.2); }
body.banner-dismissed .launch-banner { display: none; }
body.banner-dismissed.has-launch-banner { padding-top: 0; }
body.banner-dismissed.has-launch-banner .nav { top: 0; }
body.banner-dismissed.has-launch-banner .hero-enterprise { padding-top: 6.5rem; }
body.has-launch-banner { padding-top: 2.5rem; }
body.has-launch-banner .nav { top: 2.5rem; }
body.has-launch-banner .hero-enterprise { padding-top: 9rem; }
body.has-launch-banner .page-hero { padding-top: 7rem; }
body.landing.has-launch-banner { padding-top: 2.5rem; }
body.landing.has-launch-banner .nav { top: 2.5rem; }
body.banner-dismissed.has-launch-banner .page-hero { padding-top: 6rem; }
body.banner-dismissed.landing.has-launch-banner { padding-top: 0; }
body.banner-dismissed.landing.has-launch-banner .nav { top: 0; }

/* Refined components */
.ai-badge {
  background: var(--pro-accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #c7d2fe;
  box-shadow: none;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}
.ai-badge::before { background: var(--pro-teal); box-shadow: none; }

.ai-gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ai-glass-card, .why-best-card, .feature-tile, .pricing-tier {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  backdrop-filter: none;
}
.why-best-card.highlight {
  border-color: rgba(79, 70, 229, 0.35);
  background: linear-gradient(145deg, var(--pro-surface) 0%, rgba(79,70,229,0.06) 100%);
}

.btn-ai {
  background: var(--pro-accent);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-ai:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.nav {
  background: rgba(12, 18, 34, 0.92);
  border-bottom-color: var(--pro-border);
  transition: box-shadow 0.25s, background 0.25s;
}
.nav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background: rgba(12, 18, 34, 0.98);
}
.logo-mark {
  background: var(--pro-accent);
  box-shadow: none;
  border-radius: 8px;
}

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 2rem 0 0; margin-top: 3rem;
  border-top: 1px solid var(--pro-border);
}
.trust-item { text-align: center; padding: 1rem 0.5rem; }
.trust-val {
  display: block; font-size: 1.625rem; font-weight: 800; color: var(--pro-text);
  letter-spacing: -0.02em; line-height: 1.2;
}
.trust-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pro-muted); margin-top: 0.375rem; display: block;
}

/* Section headers */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { margin: 0 0 0.75rem; }
.section-lead {
  color: var(--pro-muted); font-size: 0.9375rem; line-height: 1.65;
  margin: 0; max-width: 640px; margin-left: auto; margin-right: auto;
}

/* Hero layout */
.hero-copy { position: relative; z-index: 1; }
.hero-preview { position: relative; z-index: 1; }
.hero-preview .ai-dash { /* float handled by .is-alive in motion.css */ }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-examples {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero-examples-label {
  font-size: 0.75rem; color: var(--pro-muted); font-weight: 500;
}
.hero-enterprise { min-height: auto; padding-bottom: 3rem; }
body.has-launch-banner .hero-enterprise { padding-top: 8rem; }

/* Nav active + mobile */
.nav-links a.active { color: var(--pro-text); }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; margin-top: 0.25rem;
  background: var(--pro-accent); border-radius: 1px;
}
.nav { position: fixed; }
.nav-inner { position: relative; }
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 1rem 1.25rem; gap: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.08); color: #1d1d1f; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .hero-grid-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-preview { order: -1; max-width: 520px; margin: 0 auto; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
  body.has-launch-banner .hero-enterprise { padding-top: 7rem; }
}

/* Explore journey */
.explore-section { scroll-margin-top: 6rem; }
.explore-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.explore-card {
  display: block; padding: 1.5rem; border-radius: 12px;
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden; color: inherit; text-decoration: none;
}
.explore-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.explore-card:hover::before { opacity: 1; }
.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.explore-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--pro-accent-soft); border: 1px solid rgba(79,70,229,0.2);
}
.explore-card-icon svg { width: 24px; height: 24px; color: #818cf8; }
.explore-card h3 { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 700; color: var(--pro-text); position: relative; }
.explore-card p { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--pro-muted); line-height: 1.5; position: relative; }
.explore-card span.link-arrow {
  font-size: 0.75rem; font-weight: 600; color: #818cf8; position: relative;
}

/* Pricing equal height */
.pricing-matrix { align-items: stretch; }
.pricing-tier {
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-tier ul { flex: 1; }
.pricing-tier .btn { margin-top: auto; }
.pricing-tier.pro {
  transform: scale(1.03);
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.2);
  z-index: 1;
}
@media (max-width: 900px) {
  .pricing-tier.pro { transform: none; }
}

/* FAQ section */
.faq-section { background: var(--pro-surface); border-top: 1px solid var(--pro-border); border-bottom: 1px solid var(--pro-border); }
.faq-container { max-width: 760px; }
.faq-item { transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(79, 70, 229, 0.35); }
.faq-item summary { transition: color 0.2s; }
.faq-item[open] summary { color: #c7d2fe; }

/* CTA band */
.cta-band {
  padding: 4rem 0; position: relative; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(79,70,229,0.08));
  border-top: 1px solid var(--pro-border);
}
.cta-band-inner { text-align: center; }
.cta-band h2 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--pro-muted); margin: 0 0 1.5rem; font-size: 0.9375rem; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  color: var(--pro-text); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, border-color 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: rgba(79,70,229,0.5); background: var(--pro-surface-2); }
.back-to-top svg { width: 20px; height: 20px; }

/* Cards interaction */
.why-best-card, .feature-tile {
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.why-best-card:hover, .feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Scroll offsets */
#why-us, #explore, #capabilities, #pricing, #faq { scroll-margin-top: 7rem; }
body.banner-dismissed #why-us,
body.banner-dismissed #explore,
body.banner-dismissed #capabilities,
body.banner-dismissed #pricing,
body.banner-dismissed #faq { scroll-margin-top: 5rem; }

/* Telemetry as buttons */
.telemetry-tag {
  font-family: inherit; cursor: pointer;
  border: 1px solid var(--pro-border); background: var(--pro-surface);
}
.telemetry-tag:hover, .telemetry-tag:focus-visible {
  border-color: rgba(79,70,229,0.5); color: var(--pro-text);
  outline: none; box-shadow: 0 0 0 2px rgba(79,70,229,0.25);
}

/* Support notice prominence */
.support-notice {
  padding: 1.125rem 1.5rem; font-size: 0.875rem;
}
.launch-offer-card .btn { white-space: nowrap; }

/* Footer spacing */
.site-footer { position: relative; z-index: 1; }

/* Focus visible globally */
a:focus-visible, button:focus-visible, .explore-card:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 2px;
}

/* Pro icon boxes */
.pro-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--pro-accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.2);
  margin-bottom: 1rem;
}
.pro-icon svg { width: 22px; height: 22px; color: #818cf8; }
.pro-icon.teal svg { color: var(--pro-teal); }
.pro-icon.amber svg { color: #fbbf24; }

/* Launch offer card */
.launch-offer-card {
  margin-top: 2rem; padding: 1.5rem 2rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(20,184,166,0.08));
  border: 1px solid rgba(79, 70, 229, 0.3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.launch-offer-card h3 { margin: 0; font-size: 1.125rem; }
.launch-offer-card p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--pro-muted); }
.launch-offer-card .offer-tag {
  display: inline-block; background: #059669; color: #fff;
  font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.625rem;
  border-radius: 9999px; margin-bottom: 0.5rem;
}

/* Support notice */
.support-notice {
  padding: 1rem 1.25rem; border-radius: 10px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-size: 0.8125rem; color: var(--pro-muted);
  margin-top: 1.5rem; text-align: center;
}
.support-notice strong { color: var(--pro-text); }
.support-notice a { color: #5eead4; }

/* Industries strip */
.industries-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin: 2rem 0 0;
}
.industry-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  font-size: 0.8125rem; color: var(--pro-muted);
  transition: border-color 0.2s, color 0.2s;
}
.industry-pill:hover { border-color: rgba(79,70,229,0.4); color: var(--pro-text); }
.industry-pill svg { width: 16px; height: 16px; color: #818cf8; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero upload refined */
.hero-upload-zone {
  border-color: rgba(79, 70, 229, 0.35);
  background: var(--pro-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-upload-zone:hover {
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
}

.telemetry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.telemetry-tag {
  font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: 9999px;
  background: var(--pro-surface); border: 1px solid var(--pro-border);
  color: var(--pro-muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.telemetry-tag:hover { border-color: rgba(79,70,229,0.4); color: var(--pro-text); }

.section-compact h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-label { color: #818cf8; }

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .launch-offer-card { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .launch-banner { font-size: 0.75rem; padding: 0.5rem 2.25rem 0.5rem 0.75rem; }
  .cta-band { padding: 3rem 0; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
