:root {
  --ink: #f7f7f4;
  --muted: #b8c0c8;
  --dark: #090b0f;
  --panel: rgba(15, 19, 25, 0.82);
  --line: rgba(255, 255, 255, 0.16);
  --red: #e32727;
  --yellow: #f5c542;
  --cyan: #55d6ff;
  --green: #42e08a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.9), rgba(9, 11, 15, 0.25));
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 14px;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 76px) 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.98) 0%, rgba(9, 11, 15, 0.82) 34%, rgba(9, 11, 15, 0.25) 72%),
    url("assets/hero-autocentar.png") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, var(--dark), transparent);
}

.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.speed-lines span {
  position: absolute;
  left: -30%;
  width: 44%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(227, 39, 39, 0.95), transparent);
  filter: drop-shadow(0 0 10px rgba(227, 39, 39, 0.75));
  animation: driveLine 4.5s linear infinite;
}

.speed-lines span:nth-child(1) {
  top: 34%;
}

.speed-lines span:nth-child(2) {
  top: 53%;
  animation-delay: 1.1s;
  background: linear-gradient(90deg, transparent, rgba(85, 214, 255, 0.9), transparent);
}

.speed-lines span:nth-child(3) {
  top: 72%;
  animation-delay: 2.2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  transform: translateY(-70px);
}

.eyebrow {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mobile-hero-image {
  display: none;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 18px;
}

.btn.primary {
  border-color: rgba(227, 39, 39, 0.8);
  background: linear-gradient(135deg, #f33b3b, #a80f16);
  box-shadow: 0 18px 36px rgba(227, 39, 39, 0.28);
  color: white;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn.wide {
  width: 100%;
}

.status-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 76px);
  bottom: 54px;
  width: min(280px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  padding: 14px;
  font-size: 14px;
}

.booking-status {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(360px, 100%);
  margin-top: 30px;
}

.status-panel div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(66, 224, 138, 0.8);
  animation: pulse 1.7s infinite;
}

.status-panel p {
  color: var(--muted);
  margin: 8px 0 12px;
}

.status-note {
  border-top: 1px solid var(--line);
  font-size: 12px;
  margin: 10px 0 0;
  padding-top: 10px;
}

.queue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.queue strong {
  color: var(--yellow);
  font-size: 30px;
}

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: #10141a;
}

.ticker-track {
  display: flex;
  width: max-content;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
  gap: 34px;
  padding: 16px 34px 16px 0;
}

.ticker span {
  white-space: nowrap;
}

.section {
  padding: 84px clamp(18px, 5vw, 76px);
}

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

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

.service-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11161d;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(245, 197, 66, 0.6);
  transform: translateY(-4px);
}

.service-card.featured {
  background: linear-gradient(145deg, #1c222c, #151111);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 197, 66, 0.13);
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 48px;
}

.service-card p,
.booking-copy p,
.confirmation p {
  color: var(--muted);
  line-height: 1.65;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  background: linear-gradient(180deg, #090b0f, #11151b);
}

.mini-dashboard {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.mini-dashboard div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-dashboard span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-weight: 800;
}

.mini-dashboard p {
  margin: 0;
}

.booking-form,
.confirmation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(18px, 4vw, 28px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  outline: none;
  background: rgba(6, 8, 12, 0.8);
  color: var(--ink);
  font: inherit;
  padding: 14px 13px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 214, 255, 0.16);
}

option:disabled {
  color: #7b828c;
  background: #252a31;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.form-error {
  color: #ff7676;
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 0;
  min-height: 18px;
}

.confirm-zone {
  padding-top: 18px;
}

.confirmation.active {
  border-color: rgba(66, 224, 138, 0.55);
  background:
    linear-gradient(135deg, rgba(66, 224, 138, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 30px clamp(18px, 5vw, 76px);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nav-social {
  margin: 0 8px 0 0;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
}

.nav-social a {
  min-height: 38px;
  padding: 9px;
}

.nav-social span {
  display: none;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.social-links a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.social-links a:hover {
  border-color: rgba(245, 197, 66, 0.65);
  color: var(--ink);
}

@keyframes driveLine {
  from {
    transform: translateX(0);
    opacity: 0;
  }

  12%,
  80% {
    opacity: 1;
  }

  to {
    transform: translateX(310%);
    opacity: 0;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 14px rgba(66, 224, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(66, 224, 138, 0);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(9, 11, 15, 0.94);
  }

  .brand {
    width: 100%;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    overflow-x: visible;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.64) 0%, rgba(9, 11, 15, 0.34) 52%, rgba(9, 11, 15, 0.26) 100%),
      url("assets/hero-autocentar.png") 68% bottom / cover no-repeat;
  }

  .status-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 34px;
  }

  .booking-status {
    margin-top: 26px;
  }

  .service-grid,
  .booking {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .icon {
    margin-bottom: 32px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .nav a {
    font-size: 13px;
    padding: 9px 11px;
  }

  .nav-social {
    order: -1;
    width: 100%;
    margin: 0;
  }

  .nav-social a {
    min-height: 40px;
    padding: 10px;
  }

  .nav-social svg {
    width: 19px;
    height: 19px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 25px;
    line-height: 1.16;
  }

  .hero {
    padding: 34px 18px 46px;
  }

  .hero-bg {
    background: linear-gradient(180deg, rgba(9, 11, 15, 0.98), rgba(9, 11, 15, 0.88));
  }

  .hero-content {
    max-width: 100%;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
    transform: translateY(-18px);
  }

  .mobile-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(9, 11, 15, 0.08), rgba(9, 11, 15, 0.18)),
      url("assets/hero-autocentar.png") center / cover no-repeat;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    margin: 18px 0 0;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .btn {
    min-height: 44px;
    font-size: 14px;
    padding: 11px 14px;
  }

  .status-panel,
  .booking-form,
  .confirmation,
  .service-card {
    font-size: 14px;
  }

  .section {
    padding: 56px 18px;
  }

  .service-card,
  .booking-form,
  .confirmation {
    padding: 18px;
  }

  .status-panel {
    padding: 16px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
