@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --tr-bg: #f8fafc;
  --tr-bg-soft: #eef4fb;
  --tr-panel: #ffffff;
  --tr-panel-soft: #f1f5f9;
  --tr-text: #0f172a;
  --tr-muted: #64748b;
  --tr-line: #dbe5f0;
  --tr-primary: #2563eb;
  --tr-primary-dark: #1d4ed8;
  --tr-accent: #0f766e;
  --tr-success: #15803d;
  --tr-warning: #b7791f;
  --tr-danger: #b42318;
  --tr-radius: 8px;
  --tr-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body,
body.gradient-bg,
body[class*="bg-white"],
body[class*="bg-gray"],
body[class*="bg-slate"],
body[class*="text-white"] {
  margin: 0;
  color: var(--tr-text) !important;
  background: linear-gradient(180deg, var(--tr-bg) 0%, var(--tr-bg-soft) 100%) !important;
  font-family: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

a {
  color: inherit;
}

img,
video,
iframe {
  max-width: 100%;
}

.container,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl {
  width: min(1180px, calc(100% - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-header,
nav.fixed,
nav.sticky,
header.site-header {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid var(--tr-line) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03) !important;
  backdrop-filter: blur(14px);
}

.nav-row,
nav .h-16 {
  min-height: 70px !important;
}

.brand,
nav a span,
.font-display,
h1,
h2,
h3,
h4 {
  color: var(--tr-text) !important;
  font-family: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 4.65rem) !important;
  line-height: 0.98 !important;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
  line-height: 1.04 !important;
}

p,
li,
.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-slate-500,
.text-slate-600,
.text-muted,
.hero-copy p,
.section-intro p,
.contact-copy p {
  color: var(--tr-muted) !important;
}

.text-slate-900,
.text-gray-900,
.text-slate-800,
.text-gray-800,
strong,
.font-bold,
.font-semibold {
  color: var(--tr-text) !important;
}

.text-brand-blue,
.text-blue-600,
.text-indigo-600,
.case-link,
.replay-button {
  color: var(--tr-primary) !important;
}

.bg-clip-text,
.text-transparent {
  color: var(--tr-primary) !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}

.animate-fade-in-up,
.animate-float,
.animate-pulse,
.animate-pulse-slow,
[class*="animate-"] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

section,
.section {
  background: transparent !important;
}

.hero,
section[class*="pt-32"],
header[class*="hero"],
.hero-gradient,
.gradient-bg,
.gradient-apache,
.flagstaff-gradient,
.cardinal-gradient,
section[class*="from-slate-900"],
section[class*="from-gray-900"],
section[class*="from-amber-800"],
section[class*="from-orange-800"],
section[class*="from-red-700"] {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%) !important;
  color: var(--tr-text) !important;
}

.hero,
section[class*="pt-32"],
header[class*="hero"],
header[class*="min-h-screen"] {
  min-height: auto !important;
  padding-top: 112px !important;
  padding-bottom: 56px !important;
}

section[class*="py-20"],
section[class*="py-16"],
.section {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.hero-grid,
.split-grid,
.contact-grid,
.grid.lg\:grid-cols-2,
.grid.md\:grid-cols-2,
.grid.md\:grid-cols-3,
.grid.lg\:grid-cols-3,
.grid.lg\:grid-cols-4,
.grid.xl\:grid-cols-5 {
  gap: 18px !important;
}

.surface,
.dashboard,
.section-card,
.case-card,
.timeline-card,
.form-card,
.study-card,
.pricing-card,
.card-gradient,
.card-hover,
.table-shell,
.map-shell,
.preview-shell,
details,
form {
  background: var(--tr-panel) !important;
  border: 1px solid var(--tr-line) !important;
  border-radius: var(--tr-radius) !important;
  box-shadow: var(--tr-shadow) !important;
  color: var(--tr-text) !important;
}

.section-card,
.dashboard-body,
.form-card,
.study-card,
.card-gradient,
.card-hover {
  padding: clamp(18px, 3vw, 28px) !important;
}

.dashboard-body,
.map-shell,
.preview-stage,
.price-switch,
.table-head,
.preview-bar,
.bg-gray-50,
.bg-slate-800,
.bg-slate-900,
.bg-white\/10,
.bg-white\/20,
[class*="bg-slate-800"],
[class*="bg-slate-900"],
[class*="bg-gray-50"] {
  background: var(--tr-panel-soft) !important;
  color: var(--tr-text) !important;
}

.score-card,
.metric-pill,
.rank-pill,
.chip,
.contact-badge,
.inline-flex[class*="rounded-full"],
.inline-flex[class*="rounded-lg"] {
  border-radius: var(--tr-radius) !important;
  border: 1px solid var(--tr-line) !important;
  background: #ffffff !important;
  color: var(--tr-muted) !important;
  box-shadow: none !important;
}

.chip.active,
.rank-pill.green,
.metric-pill.green {
  background: #e8f7ee !important;
  border-color: #bbebcb !important;
  color: var(--tr-success) !important;
}

.rank-pill.yellow,
.metric-pill.yellow {
  background: #fff7df !important;
  border-color: #f3df9c !important;
  color: var(--tr-warning) !important;
}

.rank-pill.red,
.metric-pill.red {
  background: #fff0ed !important;
  border-color: #f6c5bc !important;
  color: var(--tr-danger) !important;
}

.metric-pill.blue,
.case-metric,
.popular-badge {
  background: #eaf2ff !important;
  border-color: #bfdbfe !important;
  color: var(--tr-primary) !important;
}

.button,
button,
a[class*="bg-brand-blue"],
a[class*="bg-indigo"],
a[class*="bg-blue"],
button[class*="bg-brand-blue"],
button[class*="bg-indigo"],
button[class*="bg-blue"],
input[type="submit"] {
  border-radius: var(--tr-radius) !important;
  box-shadow: none !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

.button.primary,
a[class*="bg-brand-blue"],
a[class*="bg-indigo"],
a[class*="bg-blue"],
button[class*="bg-brand-blue"],
button[class*="bg-indigo"],
button[class*="bg-blue"],
input[type="submit"] {
  background: var(--tr-primary) !important;
  border: 1px solid var(--tr-primary) !important;
  color: #ffffff !important;
}

.button.primary *,
a[class*="bg-brand-blue"] *,
a[class*="bg-indigo"] *,
a[class*="bg-blue"] *,
button[class*="bg-brand-blue"] *,
button[class*="bg-indigo"] *,
button[class*="bg-blue"] * {
  color: #ffffff !important;
}

.button.primary:hover,
a[class*="bg-brand-blue"]:hover,
a[class*="bg-indigo"]:hover,
a[class*="bg-blue"]:hover,
button[class*="bg-brand-blue"]:hover,
button[class*="bg-indigo"]:hover,
button[class*="bg-blue"]:hover {
  background: var(--tr-primary-dark) !important;
  border-color: var(--tr-primary-dark) !important;
}

.button.secondary,
a[class*="bg-white"],
button[class*="bg-white"] {
  background: #ffffff !important;
  border: 1px solid var(--tr-line) !important;
  color: var(--tr-text) !important;
}

input,
textarea,
select {
  background: #ffffff !important;
  border: 1px solid var(--tr-line) !important;
  border-radius: var(--tr-radius) !important;
  color: var(--tr-text) !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--tr-primary) !important;
  outline: 3px solid rgba(37, 99, 235, 0.14) !important;
}

.card-hover:hover,
.case-card:hover,
.study-card:hover {
  transform: none !important;
  border-color: #bfdbfe !important;
  box-shadow: var(--tr-shadow) !important;
}

.glow-border {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--tr-shadow) !important;
}

.w-10.h-10,
.w-12.h-12,
.w-14.h-14,
.w-16.h-16,
.w-20.h-20 {
  border-radius: var(--tr-radius) !important;
}

.min-h-screen {
  min-height: auto !important;
}

footer,
.footer {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

footer *,
.footer * {
  color: inherit !important;
}

.bg-brand-red,
.brand-dots span:first-child {
  background: #ea4335 !important;
}

.bg-brand-yellow,
.brand-dots span:nth-child(2) {
  background: #fbbc05 !important;
}

.bg-brand-green,
.brand-dots span:nth-child(3) {
  background: #34a853 !important;
}

.bg-brand-blue,
nav a > div[class*="from-indigo"],
.feature-check {
  background: var(--tr-primary) !important;
}

@media (max-width: 768px) {
  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl {
    width: calc(100% - 24px) !important;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.2rem) !important;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .case-grid,
  .timeline-grid,
  .score-row,
  .field-grid {
    grid-template-columns: 1fr !important;
  }

  .hero,
  section[class*="pt-32"],
  header[class*="hero"],
  header[class*="min-h-screen"] {
    padding-top: 92px !important;
    padding-bottom: 40px !important;
  }

  section[class*="py-20"],
  section[class*="py-16"],
  .section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}
