/* ==========================================================================
   ProPerformanceSolutions — one-page website
   Colors, radii and shadows come from brand.css tokens.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--chart);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.btn-primary {
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  transform: var(--btn-hover-move);
  box-shadow: var(--btn-hover-shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--ghost-border);
}
.btn-ghost:hover { background: var(--ghost-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand-link { display: inline-flex; font-size: 16px; }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 84px 110px;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-pattern);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 35%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 70% 35%, #000, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 72px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border: var(--pill-border);
  border-radius: var(--pill-radius);
  background: var(--pill-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--chart);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chart) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.hero h1 {
  margin: 26px 0 24px;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: var(--h-weight);
  line-height: 1.02;
  letter-spacing: var(--h-track);
  text-wrap: balance;
}

.hl {
  background: var(--hl);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 33em;
  margin-bottom: 36px;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}
.platforms li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Hero dashboard illustration */
.hero-visual { position: relative; }

.dash {
  position: relative;
  padding: 26px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--dash-bg);
  box-shadow: var(--dash-shadow);
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title { font-size: 15px; font-weight: 700; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.metric {
  padding: 12px 14px;
  border: var(--metric-border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.metric span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.metric span i { font-style: normal; color: var(--text); }
.spark {
  width: 100%;
  height: 22px;
  fill: none;
  stroke: var(--chart);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart { width: 100%; height: 150px; margin-bottom: 20px; }
.chart .grid path { stroke: var(--line); stroke-dasharray: 3 5; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: var(--chart); stroke-width: 2.5; }
.stop-a { stop-color: var(--chart); stop-opacity: 0.32; }
.stop-b { stop-color: var(--chart); stop-opacity: 0; }

.channels {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.channel {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: var(--bar-radius);
  background: var(--surface-2);
}
.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent-fill);
  transform-origin: left;
  animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}
@keyframes grow { from { transform: scaleX(0); } }

.dash-float {
  position: absolute;
  left: -40px;
  top: 47%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--float-shadow);
  animation: float 6s ease-in-out infinite;
}
.float-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--icon-radius);
  background: var(--accent-fill);
  color: var(--on-accent);
}
.dash-float b { display: block; font-size: 14px; line-height: 1.3; }
.dash-float small { font-size: 12.5px; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding-block: 120px; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 60px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--chart);
}

h2 {
  margin: 16px 0 18px;
  font-size: clamp(2.05rem, 3.9vw, 3.2rem);
  font-weight: var(--h-weight);
  line-height: 1.06;
  letter-spacing: var(--h-track);
  text-wrap: balance;
}

.section-head p,
.about-copy p { font-size: 1.08rem; color: var(--muted); }
.about-copy p + p { margin-top: 16px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.values { display: grid; gap: 16px; }
.value {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.value h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.value p { font-size: 15.5px; color: var(--muted); }

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: var(--icon-border);
  border-radius: var(--icon-radius);
  background: var(--icon-bg);
  color: var(--icon-color);
}
.icon-box .icon { width: 22px; height: 22px; }

/* ---------- Cards (services + testimonials) ---------- */
.card {
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.svc { padding: 34px; }
.svc:hover {
  transform: var(--card-hover-move);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.svc-num {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.svc h3 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: var(--h-weight);
  letter-spacing: -0.02em;
}
.svc > p { margin-bottom: 22px; color: var(--muted); }

.checks {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.checks .icon { width: 18px; height: 18px; stroke: var(--chart); stroke-width: 2.4; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.quote { display: flex; flex-direction: column; padding: 32px; }
.q-mark { width: 32px; height: 32px; margin-bottom: 22px; fill: var(--chart); }
.quote blockquote { flex: 1; margin-bottom: 28px; font-size: 17px; line-height: 1.65; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--avatar-radius);
  background: var(--avatar-bg);
  color: var(--avatar-text);
  font-size: 15px;
  font-weight: 700;
}
.quote figcaption b { display: block; font-size: 15px; line-height: 1.35; }
.quote figcaption small { font-size: 13.5px; color: var(--muted); }

/* ---------- Contact band ---------- */
.section-contact { padding-block: 0 120px; }

.band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 72px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--band-bg);
  box-shadow: var(--band-shadow);
  color: var(--band-text);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band-glow);
  pointer-events: none;
}
.band > * { position: relative; }
.band .kicker { color: var(--band-kicker); }
.band .kicker::before { background: var(--band-icon); }
.band h2 { color: inherit; }
.band p { max-width: 30em; margin-bottom: 32px; font-size: 1.08rem; color: var(--band-muted); }

.btn-band {
  background: var(--band-btn-bg);
  color: var(--band-btn-text);
  border: var(--band-btn-border);
}
.btn-band:hover { transform: translateY(-2px); }

.band-details { display: grid; gap: 14px; }
.band-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-sm);
  background: var(--band-card);
}
.band-details .icon { margin-top: 2px; color: var(--band-icon); }
.band-details small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.band-details a,
.band-details address {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.band-details a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-tag { max-width: 28em; margin-top: 18px; font-size: 15px; color: var(--muted); }
.site-footer h4 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer address,
.footer-mail { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-mail:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- Scroll reveal (uses `translate` so hover `transform` still works) ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.8s ease var(--d, 0s),
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.js .reveal.in { opacity: 1; translate: none; }
.d1 { --d: 0.08s; }
.d2 { --d: 0.16s; }
.d3 { --d: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 560px; }
  .dash-float { left: auto; right: -12px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .band { grid-template-columns: 1fr; padding: 56px 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .nav { height: 66px; }
  .nav-links { display: none; }
  .hero { padding-block: 56px 80px; }
  .section { padding-block: 84px; }
  .section-contact { padding-block: 0 84px; }
  .section-head { margin-bottom: 44px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc, .quote { padding: 26px; }
  .dash { padding: 18px; }
  .metrics { gap: 8px; }
  .metric { padding: 10px; }
  .channel { grid-template-columns: 92px 1fr; }
  .dash-float { display: none; }
  .band { gap: 36px; padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 440px) {
  .nav .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
