:root {
  --bg-deep: #050914;
  --bg-navy: #0a1230;
  --navy-900: #0d1a4a;
  --navy-700: #14237a;
  --blue-500: #1a73e8;
  --blue-400: #2f9df5;
  --cyan: #4fc9ff;
  --ink: #eef3fb;
  --ink-dim: #9fb0cc;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: linear-gradient(155deg, #16269a 0%, #0f1a82 32%, #0a1460 62%, #050a35 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background-image:
    radial-gradient(38% 30% at 18% 18%, rgba(120, 160, 255, 0.25), transparent 70%),
    radial-gradient(34% 28% at 82% 12%, rgba(79, 201, 255, 0.14), transparent 70%),
    radial-gradient(45% 38% at 78% 55%, rgba(8, 12, 60, 0.4), transparent 70%),
    radial-gradient(50% 40% at 20% 75%, rgba(5, 8, 40, 0.45), transparent 70%),
    radial-gradient(40% 35% at 60% 95%, rgba(79, 201, 255, 0.1), transparent 70%);
  filter: blur(40px);
  animation: driftBlobs 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes driftBlobs {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.05); }
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 18px;
}

.avatar-wrap {
  position: relative;
  width: 164px;
  height: 164px;
  margin-bottom: 22px;
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue-500), var(--navy-700), var(--blue-500), var(--cyan));
  animation: spin 9s linear infinite;
  filter: blur(0.3px);
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-navy);
}

.avatar {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -12px rgba(3, 8, 20, 0.8);
}

.avatar img.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome {
  font-size: 16px;
  color: var(--ink);
  margin: 18px 0 6px;
  font-weight: 600;
}

.welcome-sub {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 26px;
}

/* ---------- CTA BUTTONS ---------- */
.cta-row {
  width: 100%;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 14px 30px -8px rgba(20, 35, 122, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn .icon-wrap {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  position: relative;
  z-index: 1;
}

.cta-btn .cta-text {
  position: relative;
  z-index: 1;
}

.cta-btn .icon-wrap svg {
  width: 100%;
  height: 100%;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.45) 42%, transparent 64%);
  background-size: 240% 100%;
  background-position: 140% 0;
  pointer-events: none;
}

.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-whats {
  background: linear-gradient(135deg, #3eeb9a, #16b378 55%, #0a7a4f);
  color: #fff;
  animation: pulse-glow-whats 1.7s ease-in-out infinite;
}

.cta-whats::before {
  animation: shine-sweep 2.6s ease-in-out infinite;
}

.cta-whats .icon-wrap svg {
  animation: icon-wiggle 1.7s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes pulse-glow-whats {
  0%, 100% {
    box-shadow: 0 14px 30px -8px rgba(22, 179, 120, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  }
  50% {
    box-shadow: 0 16px 38px -6px rgba(62, 235, 154, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 0 26px 3px rgba(62, 235, 154, 0.55);
  }
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-14deg) scale(1.05); }
  20% { transform: rotate(11deg) scale(1.05); }
  30% { transform: rotate(-8deg) scale(1.03); }
  40% { transform: rotate(5deg) scale(1); }
  50%, 100% { transform: rotate(0deg) scale(1); }
}

@keyframes shine-sweep {
  0%, 55% { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}

.cta-docs {
  background: linear-gradient(135deg, var(--cyan), var(--blue-500) 60%, var(--navy-700));
  color: #06111f;
  animation: pulse-glow-docs 2.4s ease-in-out infinite;
}

.cta-docs::before {
  animation: shine-sweep 3.4s 0.6s ease-in-out infinite;
}

@keyframes pulse-glow-docs {
  0%, 100% {
    box-shadow: 0 14px 30px -8px rgba(26, 115, 232, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
  50% {
    box-shadow: 0 16px 36px -6px rgba(79, 201, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  }
}

/* section divider */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.catalog-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 40px 0 34px;
}

.catalog-heading {
  font-size: 40px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

.catalog-sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0 0 26px;
  max-width: 320px;
}

.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(3, 6, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(3, 8, 20, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.scroll-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.scroll-cta-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3eeb9a;
  color: #06231a;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

.scroll-cta-arrow svg {
  width: 18px;
  height: 18px;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- CATALOG ---------- */
.catalog {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.car-card {
  width: 100%;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.car-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 201, 255, 0.35);
}

.car-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-900), var(--bg-navy));
  background-size: cover;
  background-position: center;
}

.car-photo.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(159, 176, 204, 0.45);
}

.car-photo.placeholder svg {
  width: 40px;
  height: 40px;
}

.car-photo.placeholder span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.car-body {
  padding: 18px 20px 20px;
}

.car-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.car-version {
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.car-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 14px;
}

.car-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
}

.car-specs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.car-specs li span {
  font-size: 10.5px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.car-specs li b {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.car-actions {
  display: flex;
  gap: 10px;
}

.car-buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue-500) 60%, var(--navy-700));
  color: #06111f;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(26, 115, 232, 0.55);
}

.car-call {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.car-call svg {
  width: 20px;
  height: 20px;
}

/* ---------- SELLERS ---------- */
.sellers {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.seller-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 201, 255, 0.35);
}

.seller-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(79, 201, 255, 0.25), 0 10px 24px -10px rgba(3, 8, 20, 0.8);
}

.seller-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.seller-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.seller-whats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}

.seller-whats svg {
  width: 14px;
  height: 14px;
}

/* ---------- MAP ---------- */
.map-card {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 30px -12px rgba(3, 8, 20, 0.8);
}

.map-link {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.map-link svg {
  width: 15px;
  height: 15px;
}

/* footer */
.footer {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer small {
  color: rgba(159, 176, 204, 0.5);
  font-size: 11px;
}

.footer .credit {
  color: rgba(159, 176, 204, 0.35);
  font-size: 10px;
  margin-top: -4px;
}

@media (max-width: 380px) {
  .name { font-size: 27px; }
  .avatar-wrap { width: 140px; height: 140px; }
  .car-specs { grid-template-columns: 1fr 1fr; }
  .cta-btn { font-size: 13px; padding: 14px 10px; }
}
