:root {
  --bg: #070707;
  --bg-2: #101011;
  --card: #141415;
  --line: #262628;
  --text: #ffffff;
  --muted: #9b9ba3;
  --red: #e31b23;
  --red-2: #c4141b;
  --red-text: #ff4d55;
  --radius: 14px;
  --display: "Montserrat", "Arial Black", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.red { color: var(--red); }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.15rem; letter-spacing: .01em; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.dot { width: 8px; height: 8px; background: var(--red); transform: skewX(-20deg); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Pola kotak bendera finish (ambil dari logo) ---------- */
.checker {
  --c: 22px;
  background: conic-gradient(var(--red) 25%, transparent 0 50%, var(--red) 0 75%, transparent 0) 0 0 / calc(var(--c) * 2) calc(var(--c) * 2);
}
.checker--band { --c: 11px; height: 22px; animation: flag 1.2s linear infinite; opacity: .9; }
@keyframes flag { to { background-position: 44px 0; } }
.checker--hero {
  --c: 46px;
  position: absolute; right: -6vw; top: 0; width: 46vw; height: 100%;
  transform: skewX(-20deg); opacity: .07;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%);
  mask: linear-gradient(90deg, transparent, #000 60%);
  animation: flag 3s linear infinite;
}
.checker--small { --c: 10px; width: 80px; height: 20px; transform: skewX(-20deg); margin-bottom: 1.2rem; }

/* ---------- Mobil SVG ---------- */
.car-body { fill: var(--car, var(--red)); }
.spin { animation: spin .5s linear infinite; animation-play-state: var(--wheels, running); transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; font-weight: 700; font-size: .85rem; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--ghost { background: #1c1c1e; color: var(--text); }
.btn--ghost:hover { background: #2a2a2d; }
.btn--sm { padding: .65rem 1.2rem; font-size: .75rem; }
.btn--full { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-road { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--line); z-index: 60; }
.scroll-road__fill { height: 100%; width: 0; background: var(--red); }
.scroll-road__car { position: absolute; top: -2px; left: 0; width: 46px; transform: translateX(-50%); --car: var(--red); --wheels: paused; }
.scroll-road.is-moving .scroll-road__car { --wheels: running; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 4px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(16px, 4vw, 48px);
  background: rgba(7,7,7,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.brand img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 2rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Tombol menu (HP & tablet) */
.nav__toggle { display: none; order: 3; width: 44px; height: 44px; align-content: center; justify-items: center; gap: 5px; background: #1c1c1e; border: 0; border-radius: 8px; cursor: pointer; }
.nav__toggle span { width: 20px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fokus keyboard & skip link */
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: .7rem 1rem; font-weight: 600; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 12px; }
.noscript { padding: 1rem; text-align: center; background: var(--red); }
.noscript a { text-decoration: underline; }

/* ---------- Media sosial ---------- */
.social__label { margin-top: 2rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1rem; background: #1c1c1e; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: background .2s, transform .2s; }
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; flex: none; }
.social--compact { justify-content: flex-end; margin-top: .4rem; }
.social--compact a { padding: 0; width: 44px; justify-content: center; }
.social--compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vh, 4.5rem) clamp(16px, 4vw, 48px) 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; max-width: 1240px; margin: 0 auto; }
.hero__text > * { opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__text > *:nth-child(2) { animation-delay: .1s; }
.hero__text > *:nth-child(3) { animation-delay: .2s; }
.hero__text > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin: 1.5rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Logo besar: muncul dengan efek "melesat" dari kiri */
.hero__logo { justify-self: end; width: 100%; max-width: 520px; }
.hero__logo img { width: 100%; height: auto; animation: logoIn 1.4s cubic-bezier(.2,.8,.2,1) .2s both, glow 3s ease-in-out 1.6s infinite; filter: drop-shadow(0 0 40px rgba(227,27,35,.35)); }
@keyframes logoIn {
  0% { clip-path: inset(0 100% 0 0); transform: translateX(-30px) skewX(-12deg); opacity: 0; }
  60% { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
}
@keyframes glow { 50% { filter: drop-shadow(0 0 70px rgba(227,27,35,.6)); } }

.stage { position: relative; height: clamp(170px, min(26vw, 30vh), 280px); margin: 1.5rem calc(-1 * clamp(16px, 4vw, 48px)) 0; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #121213; border-top: 2px solid #232325; overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; width: 200%; bottom: 0; height: 8px; background: conic-gradient(var(--red) 25%, #fff 0 50%, var(--red) 0 75%, #fff 0) 0 0 / 16px 16px; opacity: .8; animation: lines .5s linear infinite; }
.road__lines {
  position: absolute; top: 45%; left: 0; width: 200%; height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 50px, transparent 50px 100px);
  opacity: .55; animation: lines .5s linear infinite;
}
@keyframes lines { to { transform: translateX(-100px); } }

.hero-car {
  position: absolute; bottom: 30px; left: 50%; width: clamp(240px, 34vw, 440px);
  transform: translateX(-160vw); animation: driveIn 1.6s cubic-bezier(.15,.8,.25,1) .5s forwards;
  --car: var(--red);
}
.hero-car__svg { width: 100%; overflow: visible; animation: bob .35s ease-in-out infinite alternate; filter: drop-shadow(0 18px 14px rgba(0,0,0,.7)); }
@keyframes driveIn { to { transform: translateX(-50%); } }
@keyframes bob { to { transform: translateY(-2px); } }
.beam {
  position: absolute; right: -40%; top: 38%; width: 55%; height: 40%;
  background: linear-gradient(90deg, rgba(255,232,163,.35), transparent);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); filter: blur(4px); animation: flicker 3s infinite;
}
@keyframes flicker { 50% { opacity: .6; } }
.exhaust { position: absolute; left: -2%; bottom: 22%; }
.exhaust i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: rgba(200,200,210,.25); animation: smoke 1.2s ease-out infinite; }
.exhaust i:nth-child(2) { animation-delay: .4s; }
.exhaust i:nth-child(3) { animation-delay: .8s; }
@keyframes smoke { from { transform: translate(0,0) scale(.4); opacity: .8; } to { transform: translate(-70px,-20px) scale(2.2); opacity: 0; } }
.speedlines { position: absolute; inset: 0 0 30%; }
.speedlines i { position: absolute; height: 2px; width: 120px; background: linear-gradient(90deg, transparent, rgba(227,27,35,.8)); animation: dash 1.1s linear infinite; }
.speedlines i:nth-child(1) { top: 10%; }
.speedlines i:nth-child(2) { top: 30%; animation-delay: .3s; width: 200px; }
.speedlines i:nth-child(3) { top: 50%; animation-delay: .6s; }
.speedlines i:nth-child(4) { top: 70%; animation-delay: .15s; width: 80px; }
.speedlines i:nth-child(5) { top: 85%; animation-delay: .8s; width: 160px; }
.speedlines i:nth-child(6) { top: 20%; animation-delay: .5s; width: 60px; }
@keyframes dash { from { transform: translateX(110vw); } to { transform: translateX(-30vw); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 1rem 0; }
.marquee__track { display: flex; width: max-content; gap: 3rem; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--display); font-size: 1.3rem; font-weight: 800; font-style: italic; text-transform: uppercase; color: #7a7a82; }
.marquee span::after { content: "◆"; color: var(--red); margin-left: 3rem; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Gauges ---------- */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 4rem clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.gauge { text-align: center; }
.gauge svg { width: 100%; max-width: 220px; }
.gauge__track, .gauge__fill { fill: none; stroke-width: 12; }
.gauge__track { stroke: var(--line); stroke-dasharray: 6 4; }
.gauge__fill { stroke: var(--red); stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1); }
.gauge__needle { stroke: var(--text); stroke-width: 4; stroke-linecap: round; transform-origin: 100px 110px; transform: rotate(-90deg); transition: transform 1.8s cubic-bezier(.3,1.4,.4,1); }
.gauge__num { display: block; font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; margin-top: -.3rem; }
.gauge span { color: var(--muted); font-size: .88rem; }

/* ---------- Section ---------- */
.section { scroll-margin-top: 70px; padding: clamp(4rem, 8vw, 7rem) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.section__head { max-width: 660px; margin-bottom: 2.5rem; }
.section__head .muted { margin-top: 1rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Kategori ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s, opacity .8s; }
.cat:hover { transform: translateY(-6px); border-color: var(--red); }
.cat__img { position: relative; height: 120px; background: radial-gradient(ellipse at 50% 120%, #242426, #0f0f10 70%); overflow: hidden; }
.cat__img svg { position: absolute; left: 50%; bottom: 14px; width: 82%; transform: translateX(-50%); transition: transform .6s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 8px 6px rgba(0,0,0,.6)); --wheels: paused; }
.cat:hover .cat__img svg { transform: translateX(-36%); --wheels: running; }
.cat__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: repeating-linear-gradient(90deg, #3a3a3e 0 16px, transparent 16px 32px); }
.cat__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.cat__body p { color: var(--muted); font-size: .82rem; line-height: 1.45; flex: 1; }
.cat__go { margin-top: .6rem; font-family: var(--display); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red-text); }
.cat__go::after { content: " →"; display: inline-block; transition: transform .3s; }
.cat:hover .cat__go::after { transform: translateX(5px); }

.finder { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.finder h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .8rem; }
.finder .form { background: transparent; border: 0; padding: 0; }

/* ---------- Form ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: .8rem .9rem; font: 400 1rem var(--sans); width: 100%; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }

/* ---------- Proses ---------- */
.track { position: relative; padding-top: 110px; }
.track__road { position: absolute; top: 70px; left: 0; right: 0; height: 26px; background: #121213; overflow: hidden; }
.track__lines { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #55555b 0 24px, transparent 24px 48px); }
.track__finish { position: absolute; right: 0; top: 0; bottom: 0; width: 26px; background: conic-gradient(#fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 0 / 13px 13px; }
.track__car { position: absolute; top: 34px; left: 0; width: 120px; --car: var(--red); --wheels: paused; }
.track.is-moving .track__car { --wheels: running; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { border-left: 3px solid var(--line); padding-left: 1rem; transition: border-color .4s, opacity .8s, transform .8s; }
.steps li.lit { border-color: var(--red); }
.steps span { font-family: var(--display); font-size: .9rem; color: var(--red-text); font-weight: 800; }
.steps h3 { margin: .3rem 0 .5rem; }
.steps p { color: var(--muted); font-size: .9rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; margin-block: 0 clamp(4rem, 8vw, 7rem); }
.why__item { background: var(--bg-2); padding: 2rem; position: relative; overflow: hidden; }
.why__item b { position: absolute; right: 1rem; top: .2rem; font-family: var(--display); font-size: 4rem; font-weight: 900; font-style: italic; color: #1d1d1f; }
.why__item h3 { margin-bottom: .6rem; position: relative; }
.why__item p { color: var(--muted); font-size: .93rem; position: relative; }

/* ---------- Jual ---------- */
.sell { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sell__car { width: 80%; margin-top: 2.5rem; --car: #2b2f38; --wheels: paused; }

/* ---------- Lokasi ---------- */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.addr { font-size: 1.1rem; margin: 1rem 0 1.5rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin-bottom: 2rem; font-size: .95rem; }
.hours dt { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.92) hue-rotate(180deg); }

/* ---------- Footer & WA ---------- */
.footer { padding: 2.5rem clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: center; font-size: .85rem; }
.footer__logo { height: 70px; width: auto; }
.footer__meta { display: grid; gap: .3rem; text-align: right; }
.footer__meta a { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.footer__meta a:hover { color: var(--red); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav .btn--sm { margin-left: auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #070707; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.6);
    padding: 0 clamp(16px, 4vw, 48px); max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav.open .nav__links { max-height: 320px; padding-block: .5rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo { order: -1; justify-self: start; max-width: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
  .sell, .location, .finder { grid-template-columns: 1fr; }
  .sell__car { display: none; }
}
@media (max-width: 560px) {
  .brand img { height: 42px; }
  .hero__logo { max-width: 240px; }
  .hero__logo img { filter: drop-shadow(0 0 18px rgba(227,27,35,.3)); animation: logoIn 1.4s cubic-bezier(.2,.8,.2,1) .2s both; }
  .gauges { gap: .5rem; padding-block: 3rem; }
  .gauge__num { font-size: 1.4rem; }
  .gauge span { font-size: .78rem; display: block; line-height: 1.3; }
  .cat__img { height: 90px; }
  .cat__body { padding: .8rem; }
  .cat__body h3 { font-size: .95rem; }
  .footer { padding-bottom: 6rem; }
  .finder { padding: 1.25rem; }
  .form { padding: 1.25rem; }
  .nav .btn--sm { padding: .55rem .9rem; }
  .cats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .track { padding-top: 90px; }
  .form .row { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
  .social--compact { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .nav .btn--sm { font-size: .75rem; padding: .7rem .75rem; }
  .brand img { height: 36px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .5rem; }
  .hero-car { transform: translateX(-50%); }
}

/* ---------- Pengaman layout: grid item tidak boleh melebar melebihi layar ---------- */
.hero__inner > *, .finder > *, .sell > *, .location > *, .cats > *, .steps > *, .why > *, .gauges > * { min-width: 0; }
input, select, textarea { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
