/* ==========================================================================
   paulorsilva.pro — v1 (Claude build)
   Design system: brand-blue tech UI (dark narrative sections + light
   reference sections), glass panels, device mockups.
   Fonts: Formula1 (titles), Titillium Web (subtitles/body), KH Interference F1 (numbers)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Formula1";
  src: url("../fonts/Formula1-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Formula1";
  src: url("../fonts/Formula1-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/TitilliumWeb-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/TitilliumWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KH Interference F1";
  src: url("../fonts/KHInterferenceF1-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KH Interference F1";
  src: url("../fonts/KHInterferenceF1-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* dark surfaces */
  --void: #05070d;
  --deep: #080c17;
  --panel: #0d1426;
  --panel-2: #111a30;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* dark text */
  --ink: #f3f6ff;
  --ink-soft: rgba(243, 246, 255, 0.72);
  --muted: #8b96b8;
  --muted-2: #5d6889;

  /* light surfaces — reserved for the site's "reference" sections
     (metrics, services, trust): clean, scannable, high contrast */
  --paper: #f3f7fb;
  --paper-card: #ffffff;
  --paper-line: rgba(9, 26, 46, 0.1);
  --ink-on-light: #0a1b30;
  --muted-on-light: #4d5a75;

  /* brand blue — pulled straight from the real logo gradient
     (#0e85c7 → #3daaea). No indigo/violet anywhere: this is the fix
     for the "generic AI gradient" look — one color family, used with
     restraint, not a rainbow on every element. */
  --brand-deep: #0b5488;
  --brand: #0e85c7;
  --brand-bright: #3daaea;
  --grad-brand: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-bright) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(11, 84, 136, 0.15), rgba(61, 170, 234, 0.15));
  --grad-mesh:
    radial-gradient(55% 55% at 84% 6%, rgba(61, 170, 234, 0.22), transparent 60%),
    radial-gradient(48% 48% at 4% 2%, rgba(11, 84, 136, 0.3), transparent 62%),
    radial-gradient(60% 55% at 50% 100%, rgba(14, 133, 199, 0.16), transparent 65%);

  /* two reserved semantic accents — used only for their meaning
     (confirmed/positive, alert/error), never decoratively */
  --positive: #34e6a4;
  --alert: #ff6b57;

  --shadow-lg: 0 40px 90px rgba(2, 5, 12, 0.55);
  --shadow-md: 0 22px 55px rgba(2, 5, 12, 0.42);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --container: 1280px;
  --pad: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- Type scale ---------- */
h1,
h2,
.font-display {
  font-family: "Formula1", "Titillium Web", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3,
h4,
.font-heading {
  font-family: "Titillium Web", Arial, sans-serif;
  font-weight: 700;
}
.font-number {
  font-family: "KH Interference F1", "Titillium Web", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 0.98;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.04;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Titillium Web", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.wide {
  max-width: 980px;
}
.section-head p:not(.eyebrow) {
  margin-top: 16px;
}

.bg-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-texture.diagnosis {
  background-image:
    linear-gradient(110deg, rgba(5, 7, 13, 0.94) 0%, rgba(5, 7, 13, 0.82) 45%, rgba(5, 7, 13, 0.62) 100%),
    url("../img/site/diagnosis-process-workshop.jpg");
}
.bg-texture.method {
  background-image:
    linear-gradient(100deg, rgba(5, 7, 13, 0.94), rgba(8, 12, 23, 0.78)),
    url("../img/site/delivery-method-planning.jpg");
}
.bg-texture.contact {
  background-image:
    linear-gradient(100deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.74) 48%, rgba(5, 7, 13, 0.4) 100%),
    url("../img/site/branded-briefing-logo-call.jpg");
  background-position: right center;
}
.section > .wrap {
  position: relative;
  z-index: 1;
}
.on-dark {
  color: var(--ink);
}
.on-dark .lede,
.on-dark .section-head p:not(.eyebrow) {
  color: rgba(243, 246, 255, 0.66);
}

/* light "reference" sections: metrics, services, trust — clean and
   scannable, deliberately breaking the dark rhythm for readability */
.on-light {
  color: var(--ink-on-light);
}
.on-light .eyebrow {
  color: var(--brand-deep);
}
.on-light .lede,
.on-light .section-head p:not(.eyebrow) {
  color: var(--muted-on-light);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 50% 0%, black 0%, transparent 75%);
  opacity: 0.7;
  z-index: 0;
}
.grid-overlay.on-light-grid {
  background-image:
    linear-gradient(rgba(9, 26, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 26, 46, 0.06) 1px, transparent 1px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: "Titillium Web", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--grad-brand);
  /*color: #04070f;*/
  color: #ffffff;
  border: 1px solid #ffffff8d;
  box-shadow: 0 18px 40px rgba(11, 84, 136, 0.38);
}
.btn-primary:hover {
  box-shadow: 0 22px 55px rgba(11, 84, 136, 0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px var(--pad);
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), padding 220ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.86);
  border-bottom-color: var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}
/* --- intro sequence: header scan beam + logo energy aura + digital materialize --- */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 6%, rgba(61, 170, 234, 0.95) 45%, rgba(11, 84, 136, 0.9) 78%, transparent 96%);
  box-shadow: 0 0 22px 3px rgba(61, 170, 234, 0.6), 0 0 60px 10px rgba(11, 84, 136, 0.32);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  animation: header-scan 1500ms cubic-bezier(0.65, 0, 0.32, 1) 120ms forwards;
}

@keyframes header-scan {
  0% {
    left: 0;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  isolation: isolate;
}
.brand::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 150px;
  height: 150px;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61, 170, 234, 0.6), rgba(14, 133, 199, 0.4) 42%, rgba(11, 84, 136, 0.2) 62%, transparent 74%);
  filter: blur(7px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.1);
  animation: logo-aura 1500ms cubic-bezier(0.16, 1, 0.3, 1) 260ms forwards;
}
.brand img {
  position: relative;
  z-index: 1;
  height: 56px;
  width: auto;
  opacity: 0;
  filter: blur(10px) brightness(1.8) saturate(1.3);
  transform: scale(0.9) translateX(-4px);
  animation: logo-materialize 1000ms linear 420ms forwards;
}

@keyframes logo-aura {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.12);
  }
  38% {
    opacity: 0.95;
    transform: translateY(-50%) scale(0.62);
  }
  70% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.4);
  }
}

@keyframes logo-materialize {
  0% {
    opacity: 0;
    filter: blur(11px) brightness(2) saturate(1.4);
    transform: scale(0.9) translateX(-4px);
  }
  10% {
    opacity: 0.45;
    filter: blur(9px) brightness(2.2);
    transform: scale(0.92) translateX(3px);
  }
  18% {
    opacity: 0.25;
    filter: blur(10px) brightness(1.6);
    transform: scale(0.91) translateX(-2px);
  }
  30% {
    opacity: 0.8;
    filter: blur(4px) brightness(1.3);
    transform: scale(0.98) translateX(1px);
  }
  42% {
    opacity: 0.65;
    filter: blur(5px) brightness(1.5);
    transform: scale(0.96) translateX(0);
  }
  62% {
    opacity: 1;
    filter: blur(0) brightness(1.12);
    transform: scale(1.012) translateX(0);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1) saturate(1);
    transform: scale(1) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .brand::before {
    animation: none;
    display: none;
  }
  .brand img {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease;
}
.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.locale-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.locale-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  transition: background 180ms ease, color 180ms ease;
}
.locale-switch button:hover {
  color: var(--ink);
}
.locale-switch button[aria-current="true"] {
  background: #ffffff;
  color: var(--brand-deep);
}
.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.8rem;
  width: 152px;
}
/* static width, sized to the Portuguese label ("Solicitar diagnóstico") so
   the button doesn't resize when switching to a shorter translation */
.btn-cta-hero {
  width: 216px;
}
.btn-cta-mobile {
  width: 190px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: 150px var(--pad) 80px;
  background: var(--void);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  margin: 18px 0 22px;
}
.hero-content h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-tags span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 0 4px rgba(52, 230, 164, 0.18);
}

/* ---------- Device mockups ---------- */
.hero-visual {
  position: relative;
  z-index: 1;
  height: clamp(420px, 46vw, 560px);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}
.device {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a2340, #0a0f1e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}
.hero-visual .device {
  position: absolute;
}
.device-laptop {
  width: min(78%, 480px);
  left: 0;
  top: 6%;
  padding: 14px 14px 26px;
  border-radius: 20px;
}
.device-laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.device-tablet {
  width: min(48%, 250px);
  right: 0;
  bottom: 4%;
  padding: 16px 12px;
  border-radius: 22px;
}
.device-phone {
  width: min(30%, 168px);
  right: 8%;
  top: 0;
  padding: 10px 8px;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}
.hero-visual .device-phone {
  animation: float-y 6.5s ease-in-out infinite;
}
.device-screen {
  position: relative;
  background: radial-gradient(120% 120% at 0% 0%, #101a33, #060a15 70%);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device-tablet .device-screen,
.device-phone .device-screen {
  aspect-ratio: 3 / 4;
}
.device-phone .device-screen {
  aspect-ratio: 9 / 17;
  border-radius: 18px;
}
.screen-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-topbar span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.screen-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.screen-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.screen-kpi b {
  font-family: "KH Interference F1", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  text-align: right;
}
.screen-kpi span {
  font-size: 0.52rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
}
.screen-kpi.up b {
  color: var(--positive);
}
.screen-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-top: 4px;
}
.screen-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--brand-bright);
  opacity: 0.42;
}
.screen-chart i:last-child {
  background: var(--grad-brand);
  opacity: 1;
}
.screen-line {
  flex: 1;
}
.screen-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen-rows i {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  display: block;
}
.screen-donut {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: conic-gradient(var(--brand-bright) 0turn, var(--brand-deep) 0.55turn, rgba(255, 255, 255, 0.08) 0.55turn);
  position: relative;
  align-self: center;
}
.screen-donut::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #0a0f1e;
}

.floating-chip {
  position: absolute;
  left: -6%;
  bottom: -2%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: float-y 7s ease-in-out infinite;
  animation-delay: 0.4s;
}
.floating-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 0 6px rgba(52, 230, 164, 0.16);
}
.floating-chip b {
  display: block;
  font-family: "KH Interference F1", sans-serif;
  font-size: 1rem;
}
.floating-chip span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Metrics band (light — clean stat reference) ---------- */
.metrics-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.metric-card {
  background: var(--paper-card);
  padding: 28px clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.metric-card b {
  font-family: "KH Interference F1", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--brand-deep);
  line-height: 1;
}
.metric-card span {
  color: var(--muted-on-light);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Analysis / diagnosis ---------- */
.analysis-section {
  overflow: hidden;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.analysis-list {
  display: grid;
  gap: 14px;
}
.analysis-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-bright);
  backdrop-filter: blur(16px);
}
.analysis-item em {
  font-style: normal;
  font-family: "KH Interference F1", sans-serif;
  color: var(--brand-bright);
  font-size: 0.95rem;
  min-width: 28px;
}
.analysis-item p {
  color: rgba(243, 246, 255, 0.8);
  line-height: 1.68;
}

/* ---------- Services (light — the offer catalog) ---------- */
.services-section {
  background: var(--paper);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: 0 16px 40px rgba(9, 26, 46, 0.06);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 84, 136, 0.22);
  box-shadow: 0 26px 60px rgba(11, 84, 136, 0.14);
}
.service-card .tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 84, 136, 0.08);
  color: var(--brand-deep);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.service-card h3 {
  color: var(--ink-on-light);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted-on-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Showcase (devices with context) ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.showcase-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.showcase-stage {
  border-radius: var(--radius-md);
  background: var(--panel);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.showcase-card h3 {
  color: var(--ink);
}
.showcase-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.showcase-card .tag {
  color: var(--brand-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-laptop {
  width: 100%;
  max-width: 300px;
}
.mock-laptop .device-screen {
  aspect-ratio: 16/10;
}
.mock-tablet {
  width: 78%;
  max-width: 220px;
}
.mock-phone {
  width: 58%;
  max-width: 160px;
}

.report-lines {
  display: grid;
  gap: 8px;
}
.report-lines .bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-lines .bar-row .label {
  width: 34px;
  font-size: 0.5rem;
  color: var(--muted);
}
.report-lines .bar-row .bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.report-lines .bar-row .bar i {
  display: block;
  height: 100%;
  background: var(--brand-bright);
}

/* ---------- Method timeline ---------- */
.method-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 8px;
}
.method-item {
  position: relative;
  padding: 0 24px 0 26px;
  border-left: 1px solid var(--line);
  min-height: 220px;
}
.method-item:first-child {
  padding-left: 0;
  border-left: 0;
}
.method-item .step {
  font-family: "KH Interference F1", sans-serif;
  color: var(--brand-bright);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 30px;
}
.method-item h3 {
  color: var(--ink);
  margin-bottom: 10px;
}
.method-item p {
  color: rgba(243, 246, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Trust (light — the confidence checklist) ---------- */
.trust-section {
  background: var(--paper);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.trust-grid p {
  position: relative;
  margin: 0;
  padding: 20px 22px 20px 50px;
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: 0 12px 32px rgba(9, 26, 46, 0.05);
  color: var(--muted-on-light);
  line-height: 1.62;
}
.trust-grid p::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 0 5px rgba(52, 230, 164, 0.16);
}

/* ---------- Contact ---------- */
.contact-section {
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.contact-info h2 {
  margin-bottom: 16px;
}
.contact-info .lede {
  margin-bottom: 32px;
}
.contact-channels {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.contact-channel .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(61, 170, 234, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-bright);
  flex-shrink: 0;
}
.contact-channel .ico svg {
  width: 18px;
  height: 18px;
}
.contact-channel b {
  display: block;
  font-size: 0.92rem;
}
.contact-channel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: transform 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.social-row a:hover {
  transform: translateY(-3px);
  color: var(--brand-bright);
  border-color: rgba(61, 170, 234, 0.5);
}
.social-row svg {
  width: 18px;
  height: 18px;
}

.contact-form {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: rgba(9, 13, 24, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: "Titillium Web", sans-serif;
  font-size: 0.94rem;
  resize: vertical;
  transition: border-color 180ms ease, background 180ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-bright);
  background: rgba(61, 170, 234, 0.07);
}
.field textarea {
  min-height: 110px;
}
.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: center;
  transition: color 180ms ease;
}
.form-note.is-success {
  color: var(--positive);
}
.form-note.is-error {
  color: var(--alert);
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 404 ---------- */
.notfound-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
}
.notfound-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  z-index: 0;
}
.notfound-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.notfound-code {
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.85;
  margin: 10px 0 18px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound-content h2 {
  margin-bottom: 16px;
}
.notfound-content .lede {
  margin-bottom: 8px;
}
.notfound-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 32vw, 400px);
}
.notfound-visual .device-laptop {
  width: 100%;
  max-width: 480px;
}
.notfound-glitch {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--alert);
  letter-spacing: 0.04em;
  padding: 14px 0;
  text-shadow: 0 0 24px rgba(255, 107, 87, 0.55);
}
.notfound-chip .dot {
  background: var(--alert);
  box-shadow: 0 0 0 6px rgba(255, 107, 87, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand img {
  height: 56px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 208px;
}
.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 180ms ease;
}
.footer-col a:hover {
  color: var(--brand-bright);
}
.brand-mark {
  font-family: "Formula1", "Titillium Web", Arial, sans-serif;
  font-weight: 400;
}
.brand-mark b {
  font-weight: 700;
}
.year-mark {
  font-family: "Formula1", "Titillium Web", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 400;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.footer-bottom .social-row a {
  width: 36px;
  height: 36px;
}
.footer-bottom .social-row svg {
  width: 15px;
  height: 15px;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 7, 13, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav a:not(.btn) {
  font-family: "Formula1", sans-serif;
  font-size: 1.7rem;
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: var(--pad);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .main-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }
  .hero-visual {
    height: 420px;
    order: -1;
  }
  .notfound-wrap {
    grid-template-columns: 1fr;
  }
  .notfound-visual {
    order: -1;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .method-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .service-grid,
  .showcase-grid,
  .trust-grid,
  .metrics-band,
  .method-timeline,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .method-item {
    border-left: 0;
    padding-left: 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    min-height: auto;
  }
  .method-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .metric-card {
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px solid var(--paper-line);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }
  .hero-tags {
    gap: 8px;
  }
}
