:root {
  --black: #050505;
  --ink: #f7f7f7;
  --muted: #aeb4bd;
  --line: rgba(255, 255, 255, 0.13);
  --white: #ffffff;
  --soft: #111317;
  --surface: #0d0f12;
  --surface-2: #171a1f;
  --det-red: #eb575a;
  --det-yellow: #f2c230;
  --det-blue: #1a4f9a;
  --det-green: #24a15a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Rubik, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(235, 87, 90, 0.22), transparent 28rem),
    radial-gradient(circle at 4% 36%, rgba(26, 79, 154, 0.18), transparent 26rem),
    linear-gradient(180deg, #030303 0%, #0c0d0f 52%, #050505 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: 22px clamp(20px, 5vw, 72px) 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
  pointer-events: none;
}

.topbar,
.hero-grid,
.section,
.promise {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.mini-brand,
.topbar-link {
  text-decoration: none;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.mini-brand img {
  display: block;
  width: clamp(132px, 18vw, 190px);
  height: auto;
  object-fit: contain;
}

.topbar-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 86px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.78fr);
  gap: clamp(34px, 8vw, 96px);
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-bottom: 48px;
}

.det-logo-img {
  display: block;
  width: min(520px, 88vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.58));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--det-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9.2vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: #c4c8cf;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.65;
}

.primary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  min-height: 56px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--det-red);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(235, 87, 90, 0.24);
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
  margin-top: 24px;
}

.category-rail span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dce1;
  font-size: 0.82rem;
  font-weight: 700;
}

.primary-button svg,
.contact-button svg,
.float-whatsapp svg,
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover,
.contact-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  min-height: 430px;
}

.inspection-card {
  min-height: 430px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 21, 25, 0.96), rgba(9, 10, 12, 0.86)),
    linear-gradient(145deg, rgba(26, 79, 154, 0.24), rgba(235, 87, 90, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 34px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inspection-card::before {
  content: "DET CHECK";
  position: absolute;
  top: 28px;
  left: 28px;
  color: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.85;
}

.scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--det-red), var(--det-yellow), transparent);
  filter: drop-shadow(0 0 14px rgba(226, 29, 47, 0.48));
  animation: scan 3.4s ease-in-out infinite;
}

.vehicle-outline {
  position: absolute;
  inset: 34% 12% auto;
  height: 150px;
}

.car-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  height: 78px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 70px 80px 22px 22px;
}

.car-body::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 28%;
  top: -45px;
  height: 62px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}

.wheel {
  position: absolute;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.92);
  background: var(--surface);
}

.wheel-left { left: 18%; }
.wheel-right { right: 18%; }

.status-list {
  display: grid;
  gap: 10px;
}

.status-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.status-list b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--det-green);
  box-shadow: 0 0 0 5px rgba(36, 161, 90, 0.12);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

.section-heading h2,
.promise h2 {
  margin-bottom: 12px;
  font-size: clamp(2.05rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.promise-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.check-card,
.advice-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 24, 0.82);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.check-card {
  padding: clamp(20px, 4vw, 30px);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.vehicle-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--det-red);
  font-size: 1.5rem;
}

.card-title h3,
.advice-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.checks {
  display: grid;
  gap: 10px;
}

.checks label {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.checks label:hover {
  transform: translateX(2px);
  border-color: rgba(226, 29, 47, 0.34);
}

.checks input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #c5c9cf;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.checks input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) scale(0);
  transition: transform 160ms ease;
}

.checks input:checked {
  border-color: var(--det-green);
  background: var(--det-green);
}

.checks input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.checks label:has(input:checked) {
  color: #dff7e7;
  border-color: rgba(36, 161, 90, 0.28);
  background: rgba(36, 161, 90, 0.08);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.advice-card {
  min-height: 245px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.advice-card p {
  color: var(--muted);
  line-height: 1.62;
}

.advice-icon {
  width: fit-content;
  min-width: 42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--det-red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.final-advice {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(235, 87, 90, 0.24), rgba(5, 5, 5, 0.92)),
    var(--black);
  color: var(--white);
}

.final-advice p {
  color: rgba(255, 255, 255, 0.74);
}

.final-advice .advice-icon {
  background: linear-gradient(90deg, var(--det-blue), var(--det-yellow), var(--det-red));
  color: var(--black);
}

.promise {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto;
  padding: clamp(30px, 6vw, 62px);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(235, 87, 90, 0.94), rgba(5, 5, 5, 0.94)),
    var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.promise .eyebrow {
  color: var(--det-yellow);
}

.promise h2 {
  margin-bottom: 0;
}

.promise-copy p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 12px;
}

.contact-panel {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-button {
  min-height: 64px;
  background: var(--white);
  color: var(--black);
}

.contact-button.whatsapp {
  background: #16a865;
  color: var(--white);
}

.contact-data {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-style: normal;
  display: grid;
  gap: 9px;
}

.contact-data strong {
  font-size: 1.22rem;
}

.contact-data a {
  text-decoration: none;
  font-weight: 700;
}

.float-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 20;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.float-whatsapp {
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  background: #16a865;
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.back-to-top {
  right: 22px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  background: var(--det-red);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-whatsapp:hover,
.back-to-top:hover {
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan {
  0%, 100% { transform: translateY(-48px); opacity: 0.3; }
  50% { transform: translateY(110px); opacity: 1; }
}

@media (max-width: 940px) {
  .hero {
    padding-bottom: 48px;
  }

  .hero-grid,
  .promise,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    margin-top: 58px;
  }

  .brand-lockup {
    margin-bottom: 34px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .inspection-card {
    min-height: 340px;
  }

  .checklist-grid,
  .advice-grid {
    grid-template-columns: 1fr;
  }

  .final-advice {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding: 18px 18px 54px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-link {
    padding: 9px 12px;
  }

  .hero-grid {
    margin-top: 46px;
    gap: 40px;
  }

  .brand-lockup {
    justify-content: center;
  }

  .det-logo-img {
    width: min(360px, 90vw);
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .primary-button,
  .contact-button {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
    padding: 68px 0;
  }

  .section-heading h2,
  .promise h2 {
    font-size: 2.25rem;
  }

  .check-card,
  .advice-card,
  .contact-panel {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  }

  .checks label {
    grid-template-columns: 22px 1fr;
    align-items: flex-start;
  }

  .promise {
    width: calc(100% - 32px);
    margin-top: 0;
  }

  .float-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .back-to-top {
    right: 20px;
    bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
