/* UnusData — GitLab-inspired marketing layout + logo red accent */
:root {
  --brand-red: #e32626;
  --brand-red-dark: #8b1c1c;
  --brand-red-light: #ff4444;
  --surface-light: #ececef;
  --surface-white: #ffffff;
  --surface-dark: #18171d;
  --surface-card-dark: #222027;
  --text-ink: #18171d;
  --text-muted: #535158;
  --text-on-dark: #f5f5f5;
  --text-muted-on-dark: rgba(255, 255, 255, 0.65);
  --border-light: rgba(24, 23, 29, 0.12);
  --border-dark: rgba(255, 255, 255, 0.1);
  --page-gutter: clamp(1rem, 3.5vw, 2.75rem);
  --page-max: 72rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

#mobileMenu[data-state='closed'] .mobile-menu-overlay { opacity: 0; pointer-events: none; }
#mobileMenu[data-state='closed'] .mobile-menu-panel { transform: translateY(-100%); }
#mobileMenu[data-state='open'] .mobile-menu-overlay { opacity: 1; pointer-events: auto; }
#mobileMenu[data-state='open'] .mobile-menu-panel { transform: translateY(0); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.mobile-menu:not(.hidden) {
  pointer-events: auto;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  transition: opacity 0.32s ease;
  cursor: pointer;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100dvh;
  max-height: 100vh;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 16px 48px rgba(24, 23, 29, 0.2);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--page-gutter);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-ink);
  transition: background 0.15s ease;
}
.mobile-menu-close:hover {
  background: var(--surface-light);
}

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem var(--page-gutter) 1.25rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mobile-menu-link:hover {
  background: var(--surface-light);
  border-color: rgba(227, 38, 38, 0.25);
}
.mobile-menu-link.is-active {
  background: var(--surface-light);
  border-color: rgba(227, 38, 38, 0.35);
}

.mobile-menu-link-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-ink);
}

.mobile-menu-link-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.mobile-menu-footer {
  flex-shrink: 0;
  padding: 1rem var(--page-gutter) 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface-white);
}

.mobile-menu-cta {
  width: 100%;
  justify-content: center;
}

/* Base */
body.brand-site {
  background: var(--surface-white);
  color: var(--text-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-wrap {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.site-logo {
  height: clamp(5.43rem, 9.32vw, 6.99rem) !important;
}

.site-logo-sm {
  height: clamp(5.43rem, 8.05vw, 6.21rem) !important;
}

.site-logo-footer {
  height: clamp(6.21rem, 9.2vw, 7.48rem) !important;
}

/* Header — light sticky bar */
body.brand-site header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--border-light) !important;
  backdrop-filter: blur(12px);
  z-index: 50;
}

/* Section shells */
.section-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: var(--surface-light);
  text-align: center;
}

.section-hero .hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(680px 420px at 88% 8%, rgba(227, 38, 38, 0.22), transparent 60%),
    radial-gradient(560px 380px at 8% 92%, rgba(139, 28, 28, 0.16), transparent 58%),
    linear-gradient(180deg, #f4f4f7 0%, var(--surface-light) 100%);
}

.section-trust {
  padding: 2rem 0;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
}

.section-light {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface-white);
}

.section-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section-dark .grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--surface-light);
  text-align: center;
}

.section-cta .cta-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 50% 100%, rgba(227, 38, 38, 0.18), transparent 60%),
    radial-gradient(500px 300px at 20% 0%, rgba(139, 28, 28, 0.1), transparent 55%);
}

/* Typography */
.display-heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-ink);
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-heading-light {
  color: var(--text-on-dark);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.lead-on-dark {
  color: var(--text-muted-on-dark);
}

.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red) !important;
  margin-bottom: 0.75rem;
}
.pro-eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-red-light), var(--brand-red-dark));
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  background: var(--text-ink) !important;
  border: 1px solid var(--text-ink) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(24, 23, 29, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-ink) !important;
  background: transparent !important;
  border: 1px solid var(--border-light) !important;
  transition: background 0.15s ease;
}
.btn-secondary:hover {
  background: rgba(24, 23, 29, 0.04) !important;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  background: linear-gradient(90deg, var(--brand-red-light), var(--brand-red-dark)) !important;
  border: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(227, 38, 38, 0.35);
}

.pro-link {
  color: var(--brand-red) !important;
  font-weight: 700;
  text-decoration: none;
}
.pro-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero-intro {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-card {
  background: var(--surface-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red-light), var(--brand-red-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hero-card h3 {
  font-weight: 700;
  color: var(--text-on-dark);
  font-size: 1rem;
}

.hero-card p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted-on-dark);
}

/* Trust bar */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.trust-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
}

/* Feature rows (services) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.feature-row:first-child {
  padding-top: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .feature-row-reverse .feature-copy {
    order: 2;
  }
  .feature-row-reverse .feature-visual {
    order: 1;
  }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red-light), var(--brand-red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.feature-visual img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(24, 23, 29, 0.12);
}

/* Industry / process grid */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  background: var(--surface-light);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.industry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 23, 29, 0.08);
}

.industry-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red-light), var(--brand-red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Dark stat cards */
.stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: var(--surface-card-dark);
  border: 1px solid var(--border-dark);
  transition: transform 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-dark);
}

.stat-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted-on-dark);
  line-height: 1.55;
}

/* Cards (service pages + shared) */
.pro-card {
  background: var(--surface-white) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 20px rgba(24, 23, 29, 0.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.pro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 23, 29, 0.1) !important;
}

.pro-card-accent {
  position: relative;
  overflow: hidden;
}
.pro-card-accent::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red-light), var(--brand-red-dark));
}

.pro-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light) !important;
  border-radius: 1rem !important;
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(227, 38, 38, 0.1), transparent 55%),
    linear-gradient(180deg, #fff, var(--surface-light)) !important;
}

.pro-h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-ink) !important;
}

/* Legacy button aliases */
.pro-btn-primary,
body.brand-site .pro-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--text-ink) !important;
  border: 1px solid var(--text-ink) !important;
}

.pro-btn-secondary,
body.brand-site .pro-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--text-ink) !important;
  background: transparent !important;
  border: 1px solid var(--border-light) !important;
}

body.brand-site header .btn-accent-nav {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background: var(--surface-dark) !important;
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark) !important;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted-on-dark);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Hero animation */
.hero-reveal { opacity: 0; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-reveal {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-reveal-1 { animation-delay: 0.06s; }
  .hero-reveal-2 { animation-delay: 0.16s; }
  .hero-reveal-3 { animation-delay: 0.28s; }
  .hero-reveal-4 { animation-delay: 0.4s; }
  .hero-reveal-5 { animation-delay: 0.52s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal { opacity: 1; }
}
