/* ============================================================
   ANA INTERIOR — Landing Page Rebuild
   Design tokens + components
   ============================================================ */
:root {
  --blue: #3e8ef7;
  --blue-dark: #2c6fd0;
  --blue-soft: #e8f1fe;
  --wa: #25d366;
  --wa-dark: #1eb858;
  --amber: #ffb703;
  --amber-dark: #ffa200;
  --ink: #111111;
  --text: #565a63;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: #e7ebf1;
  --shadow-sm: 0 4px 14px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.12);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.18);
  --radius: 16px;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(62, 142, 247, 0.35);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(62, 142, 247, 0.45); }
.btn-cta .ico { width: 1.25em; height: 1.25em; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.header.scrolled {
  height: 62px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; transition: width 0.3s ease, height 0.3s ease; }
.header.scrolled .brand-logo { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: 0.02em; }
.brand-text small { font-size: 11px; color: var(--blue); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: #33363d;
  border-radius: 8px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; padding: 11px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  position: relative;
  z-index: 10;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.62) 0%, rgba(10, 14, 22, 0.45) 50%, rgba(10, 14, 22, 0.72) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 0 20px; max-width: 900px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.45);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  animation: fadeUp 0.8s ease 0.3s both;
}
.tag-1 { font-size: clamp(17px, 2.6vw, 26px); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 10px; color: rgba(255,255,255,0.92); }
.tag-2 { font-size: clamp(21px, 3.4vw, 34px); font-weight: 800; margin-top: 6px; }
.tag-2 em { font-style: normal; color: var(--amber); }

.hero-desc {
  margin: 22px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16.5px;
  animation: fadeUp 0.8s ease 0.45s both;
}
.hero-desc strong { color: var(--amber); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }
.hero-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero-arrow.next:hover { transform: translateY(-50%) translateX(3px); }

.hero-dots {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
}
.hero-dots button.active { width: 30px; background: var(--amber); }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; }
.mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollWheel 1.8s ease infinite;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 40px 0;
}
.stat { text-align: center; color: #fff; padding: 6px 10px; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
}
.stat-plus, .stat-dash { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3vw, 36px); color: var(--amber); }
.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-desc { margin-top: 14px; font-size: 16.5px; }

/* ---------- Products (flip cards) ---------- */
.products { background: var(--bg-soft); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.flip-card { perspective: 1200px; height: 300px; cursor: pointer; }
.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.flip-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 22, 0.78) 100%);
}
.flip-front-content { position: relative; z-index: 2; padding: 18px; width: 100%; }
.flip-front-content h3 { color: #fff; font-size: 18px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

.flip-back {
  background: linear-gradient(160deg, #ffffff, #eef4fd);
  transform: rotateY(180deg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.flip-back h3 { font-size: 17px; font-weight: 800; color: var(--blue); margin-bottom: 10px; }
.flip-back p { font-size: 14px; color: var(--text); margin-bottom: 16px; }

.flip-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--wa-dark);
  transition: gap 0.25s ease, color 0.25s ease;
}
.flip-wa:hover { gap: 10px; color: var(--wa); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.9), rgba(44, 111, 208, 0.82));
}
.cta-banner-content { position: relative; z-index: 2; max-width: 720px; }
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wa);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  animation: pulseBadge 2.4s ease infinite;
  margin-bottom: 26px;
}
.free-badge .ico { width: 1.3em; height: 1.3em; }
.cta-title { color: #fff; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.cta-desc { color: rgba(255, 255, 255, 0.88); margin: 18px auto 34px; max-width: 600px; font-size: 16.5px; }
.cta-desc strong { color: var(--amber); }

/* ---------- Other products ---------- */
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.other-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.other-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.other-img { height: 230px; overflow: hidden; background: #f0f3f8; }
.other-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.other-card:hover .other-img img { transform: scale(1.08); }
.other-body { padding: 24px; }
.other-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.other-body p { font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Projects ---------- */
.projects { background: var(--bg-soft); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.project-img { height: 210px; overflow: hidden; background: #eef1f6; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.1); }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 13px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 22, 0.85));
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.contact-card.wa:hover { border-color: var(--wa); }
.contact-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}
.contact-card.wa .contact-ico { background: rgba(37, 211, 102, 0.12); color: var(--wa); }
.contact-card:hover .contact-ico { transform: scale(1.1) rotate(-6deg); }
.contact-ico svg { width: 28px; height: 28px; fill: currentColor; }
.contact-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.contact-card p { font-size: 15px; word-break: break-word; }
.contact-link { margin-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--blue); }
.contact-card.wa .contact-link { color: var(--wa-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0d1117; color: #9aa3b2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 70px 0 46px;
}
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: var(--amber); }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 300px; }
.footer-smile { font-weight: 700; color: #fff; }
.footer-smile span { color: var(--amber); }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col a:hover { color: var(--amber); padding-left: 6px; }
.footer-hours { margin-top: 14px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; }
.footer-made { color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatBob 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12) rotate(8deg); box-shadow: 0 16px 38px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.back-top {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s ease;
  box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue); }
.back-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  60% { opacity: 0.2; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); transform: scale(1); }
  50% { box-shadow: 0 12px 44px rgba(37, 211, 102, 0.75); transform: scale(1.05); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   BLOG — page hero, listing, article
   ============================================================ */
.page-hero {
  position: relative;
  padding: 172px 0 88px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13, 17, 23, 0.92), rgba(44, 111, 208, 0.85)); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.45);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.page-hero-title { color: #fff; font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.page-hero-desc { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 14px auto 0; font-size: 16.5px; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- Category badges ---------- */
.post-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
}
.cat-tips { background: var(--blue-soft); color: var(--blue); }
.cat-perbandingan { background: rgba(255, 183, 3, 0.16); color: #b07a00; }
.cat-inspirasi { background: rgba(37, 211, 102, 0.14); color: var(--wa-dark); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 142, 247, 0.3);
}

/* ---------- Featured post ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 38px;
}
.featured-img { position: relative; min-height: 320px; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-body .post-cat { margin-bottom: 2px; }
.featured-body .post-title { font-size: 24px; }
.featured-body .post-excerpt { font-size: 15px; }

/* ---------- Post cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-img { height: 200px; overflow: hidden; background: #eef1f6; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-img img { transform: scale(1.08); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-title { font-size: 17.5px; font-weight: 800; line-height: 1.35; }
.post-title a { transition: color 0.25s ease; }
.post-title a:hover { color: var(--blue); }
.post-excerpt { font-size: 14px; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #8a8f99;
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--blue);
  transition: gap 0.25s ease, color 0.25s ease;
}
.post-more:hover { gap: 10px; color: var(--blue-dark); }
.hidden { display: none !important; }

/* ---------- Article page ---------- */
.article-wrap { max-width: 780px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: 34px; }
.article-head .post-cat { display: inline-block; margin-bottom: 12px; }
.article-title { font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; margin: 0 0 14px; }
.article-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: #8a8f99;
  flex-wrap: wrap;
}
.article-hero { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 34px; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.article-body { font-size: 16.5px; }
.article-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; }
.article-body h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  border-left: 4px solid var(--blue);
  background: var(--bg-soft);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink);
}
.article-cta {
  margin: 42px 0;
  background: linear-gradient(120deg, #0d1117, var(--blue-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.article-cta h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.article-cta p { color: rgba(255, 255, 255, 0.85); font-size: 15px; margin-bottom: 20px; }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.related-title a { font-size: 14px; font-weight: 700; color: var(--blue); float: right; margin-top: 8px; }

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .featured-body { padding: 28px; }
  .latest-blog .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 150px 0 64px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 12.5px; }
  .article-cta { padding: 26px 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    background: #fff;
    padding: 92px 26px 30px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.1, 0.2, 1);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { padding: 13px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-arrow { display: none; }
  .other-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flip-card { height: 240px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .brand-text small { display: none; }
}
