/*
Theme Name: Veltra
Author: Nuanasa Dev
Description: Theme katalog & company profile bergaya teknikal — tipografi sans, aksen monospace, animasi GSAP.
Version: 1.0.0
Text Domain: veltra
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --ink: #141920;
  --ink-2: #3c4450;
  --muted: #5f6874;
  --line: #e3e6ea;
  --accent: #e02b2b;
  --accent-dark: #b71f1f;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --disp: "Space Grotesk", var(--sans);
  --r: 4px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(20, 25, 32, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--mono); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #15803d; border-color: #15803d; }
.btn-wa:hover { background: #126933; border-color: #126933; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-shrunk { box-shadow: 0 6px 24px rgba(20, 25, 32, 0.07); }
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  transition: padding 0.3s ease;
}
.site-header.is-shrunk .header-in { padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-name { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; }
.brand-name em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); }
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  place-items: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 80;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  padding: 170px 0 90px;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink-2);
}
.tag strong { color: var(--accent); }

/* rotor visual */
.rotor-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.rotor-wrap svg { width: 100%; height: 100%; overflow: visible; }
#rotor-disc { transform-origin: 250px 250px; }
.badge-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.badge-float strong { display: block; font-size: 1.05rem; color: var(--ink); }
.badge-1 { top: 8%; right: -4%; }
.badge-2 { bottom: 12%; left: -6%; }
.badge-3 { top: 44%; right: -10%; }

/* ── Marquee ────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track .dot { color: #ff8080; }

/* ── Sections ───────────────────────────────── */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}
.section-head .label { margin-bottom: 14px; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 30px 26px;
}
.stat .num {
  font-family: var(--disp);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat .num .plus { color: var(--accent); }
.stat .desc {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Product cards ──────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfd4da; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-media .art {
  width: 62%;
  height: 62%;
  transition: transform 0.5s ease;
}
.card:hover .card-media .art { transform: scale(1.08) rotate(-2deg); }
.card-kode {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--r);
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-kat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 { font-size: 1.12rem; }
.card .spec {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.card .price { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }
.card-actions { display: flex; gap: 10px; margin-top: 12px; }
.card-actions .btn { padding: 11px 16px; font-size: 0.72rem; flex: 1; justify-content: center; }

/* filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink-2);
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Why us ─────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature:hover { transform: translateY(-5px); border-color: var(--ink); }
.feature .ico {
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

/* ── About split ────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split .visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
.split .visual .art { position: absolute; inset: 12%; width: 76%; height: 76%; }
.check-list { list-style: none; margin: 26px 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-family: var(--mono);
}

/* ── Steps ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 34px 28px;
}
.step .idx {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ── CTA band ───────────────────────────────── */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  padding: clamp(38px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 22ch; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--accent); }
.cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Page hero (inner pages) ────────────────── */
.page-hero {
  padding: 150px 0 70px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .crumb a:hover { color: var(--accent); }

/* ── Kontak ─────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--ink); }
.contact-card .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact-card .v { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; }
.contact-card .s { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-q .pm {
  flex: none;
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.is-open .pm { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a { overflow: hidden; height: 0; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ── Single produk ──────────────────────────── */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-media {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .art { width: 64%; height: 64%; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.spec-table th, .spec-table td {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.spec-table th { width: 42%; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #c7ccd3;
  padding: 70px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #c7ccd3; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 0.93rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 16px 0 20px; font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b929c;
}

/* ── WA float ───────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #15803d;
  color: #fff;
  padding: 15px 22px;
  border-radius: var(--r);
  box-shadow: 0 14px 34px rgba(21, 128, 61, 0.38);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  border: 2px solid rgba(21, 128, 61, 0.6);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-float:hover { background: #126933; }
.site-footer .btn { color: #fff; }

/* ── reveal defaults (GSAP sets final states) ─ */
.reveal { opacity: 0; transform: translateY(28px); }
html.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rotor-wrap { max-width: 380px; }
  .badge-3 { right: 0; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 55;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; }
  .burger { display: grid; z-index: 65; }
  .header-cta .btn { display: none; }
  .hero { padding: 130px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; border-radius: 50px; }
  .badge-1 { right: 0; }
  .badge-2 { left: 0; }
  .badge-3 { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
