/* ==========================================================================
   TemplixHub — Design System (dùng chung cho MỌI trang)
   ==========================================================================
   Load file này trên mọi trang, ngay sau Google Fonts, trước bất kỳ CSS
   riêng của từng trang (nếu có).

   Cấu trúc bên dưới (đọc theo section-comment để biết cái gì dùng ở đâu):
   - Variables + base + buttons + header + footer  → dùng ở TOÀN BỘ trang
   - .p-card, .grid, .filter-row, .section-head     → dùng lại được ở trang
                                                        Catalog / Category
   - .hero, .hex-field, .mock-card, .cta-band,
     .review-card/.feature-icon                      → hiện chỉ dùng ở trang
                                                        chủ, nhưng để chung
                                                        file cho tiện bảo trì
   ========================================================================== */

:root {
  --ink: #12181f;
  --ink-soft: #57626d;
  --ink-faint: #8b95a0;
  --bg: #ffffff;
  --bg-soft: #f4f8f2;
  --bg-deep: #0f1a10;
  --border: #e3e9e0;
  --border-soft: #edf1ea;

  --green: #5cc143;
  --green-light: #8fe06b;
  --green-deep: #2f8f22;
  --green-ink: #1f5c17;

  --amber: #f0a324;
  --teal: #2e9e8f;
  --indigo: #6b7fd7;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 1px 2px rgba(18, 24, 31, 0.04),
    0 8px 20px -8px rgba(18, 24, 31, 0.1);
  --shadow-card-hover: 0 4px 10px rgba(18, 24, 31, 0.06),
    0 24px 40px -16px rgba(47, 143, 34, 0.28);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
section {
  position: relative;
}

::selection {
  background: var(--green-light);
  color: var(--green-ink);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
}
.btn-primary {
  color: #0d2007;
  background: linear-gradient(
    135deg,
    var(--green-light) 0%,
    var(--green) 45%,
    var(--green-deep) 100%
  );
  background-size: 160% 160%;
  background-position: 0% 0%;
  box-shadow: 0 10px 24px -10px rgba(47, 143, 34, 0.55);
}
.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(47, 143, 34, 0.65);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-dark {
  color: #eafce3;
  background: linear-gradient(135deg, #1c2b17, #0f1a10 60%);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.55);
}
.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
header.site.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(18, 24, 31, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  transform: rotate(45deg);
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}
nav.main-nav a:hover {
  color: var(--ink);
}
nav.main-nav a:hover::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  background: #fff;
}
.icon-btn:hover {
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 20px 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open {
  max-height: 320px;
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--green);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-ink);
  background: linear-gradient(180deg, transparent 62%, var(--green-light) 62%);
}
.hero p.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}

.search-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.search-panel:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(92, 193, 67, 0.15), var(--shadow-card);
}
.search-panel svg {
  flex-shrink: 0;
  color: var(--ink-faint);
}
.search-panel input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
}
.search-panel input::placeholder {
  color: var(--ink-faint);
}

#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -16px rgba(18, 24, 31, 0.25);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
#search-results a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s ease;
}
#search-results a:last-child {
  border-bottom: none;
}
#search-results a:hover {
  background: var(--bg-soft);
}
#search-results img {
  width: 44px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.search-no-results-msg {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  text-align: center;
  margin-bottom:10px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.quick-tags a {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  background: var(--bg-soft);
  transition: all 0.2s ease;
}
.quick-tags a:hover {
  background: #fff;
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-1px);
}

/* hero visual: hexagon of layered browser mockups */
.hero-visual {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-field {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%);
  background: radial-gradient(
      120% 90% at 25% 15%,
      rgba(255, 255, 255, 0.55),
      transparent 55%
    ),
    linear-gradient(
      150deg,
      var(--green-light) 0%,
      var(--green) 42%,
      var(--green-deep) 100%
    );
}
.hex-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: overlay;
}
.mock-card {
  position: absolute;
  width: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px -14px rgba(15, 26, 16, 0.45);
  animation: float 6s ease-in-out infinite;
}
.mock-card .bar {
  height: 22px;
  background: #eef1ec;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
}
.mock-card .bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9d2c4;
}
.mock-card .body {
  padding: 12px;
}
.mock-card .line {
  height: 7px;
  border-radius: 3px;
  background: #e7ebe3;
  margin-bottom: 7px;
}
.mock-card .line.w60 {
  width: 60%;
}
.mock-card .line.w40 {
  width: 40%;
}
.mock-card .block {
  height: 46px;
  border-radius: 8px;
  margin-top: 8px;
}
.mock-1 {
  top: 6%;
  left: 2%;
  transform: rotate(-7deg);
  animation-delay: 0s;
  z-index: 3;
}
.mock-1 .block {
  background: linear-gradient(135deg, var(--green-light), var(--green));
}
.mock-2 {
  bottom: 4%;
  left: 22%;
  width: 250px;
  transform: rotate(4deg);
  animation-delay: 1.3s;
  z-index: 2;
}
.mock-2 .block {
  background: linear-gradient(135deg, var(--amber), #f6c26a);
}
.mock-3 {
  top: 38%;
  right: 0%;
  width: 200px;
  transform: rotate(9deg);
  animation-delay: 0.6s;
  z-index: 4;
}
.mock-3 .block {
  background: linear-gradient(135deg, var(--indigo), #95a4ea);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--r, 0deg));
  }
}
.mock-1 {
  --r: -7deg;
}
.mock-2 {
  --r: 4deg;
}
.mock-3 {
  --r: 9deg;
}

.badge-float {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 30px -12px rgba(18, 24, 31, 0.3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.badge-float .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  color: #0d2007;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.badge-1 {
  bottom: 10%;
  right: 8%;
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head .eyebrow {
  justify-content: center;
}
.section-head .eyebrow::before {
  display: none;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

/* ---------- Category filter chips ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-row button,
.filter-chip {
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.filter-row button.active,
.filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter-row button:not(.active):hover,
.filter-chip:not(.active):hover {
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-1px);
}

/* ---------- Pagination ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.pager-btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.pager-btn:hover {
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-1px);
}
.pager-num {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.pager-num:hover {
  background: var(--bg-soft);
}
.pager-num.active {
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  color: #0d2007;
  box-shadow: 0 6px 14px -6px rgba(47, 143, 34, 0.5);
}

/* ---------- Product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}
.p-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(92, 193, 67, 0.35);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16/11.5;
  overflow: hidden;
  background: var(--bg-soft);
}
.thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.thumb .chrome {
  height: 24px;
  background: #eef1ec;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.thumb .chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9d2c4;
}
.thumb img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.p-card:hover .thumb img {
  transform: scale(1.03);
}
.thumb .canvas {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.thumb .cline {
  height: 8px;
  border-radius: 3px;
  background: #e7ebe3;
}
.thumb .cline.w70 {
  width: 70%;
}
.thumb .cline.w45 {
  width: 45%;
}
.thumb .cblock {
  flex: 1;
  border-radius: 8px;
  margin-top: 2px;
  transition: transform 0.5s ease;
}
.p-card:hover .cblock {
  transform: scale(1.03);
}

.new-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(18, 24, 31, 0.12);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(15, 26, 16, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.p-card:hover .preview-overlay {
  opacity: 1;
}
.preview-overlay .btn {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s ease 0.05s, opacity 0.3s ease 0.05s;
}
.p-card:hover .preview-overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

.p-body {
  padding: 16px 16px 18px;
}
.p-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.p-title-row h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.free-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--green-ink);
  background: rgba(92, 193, 67, 0.13);
  border: 1px solid rgba(92, 193, 67, 0.4);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.p-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 7px;
  color: #fff;
}
.price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: #6b4404;
  background: linear-gradient(135deg, #fbe3ab, #f0c069);
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px -2px rgba(178, 120, 10, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p-card:hover .price-tag {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(178, 120, 10, 0.5);
}

/* accent variants */
.acc-1 .cblock,
.acc-1 .cat-tag {
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
}
.acc-1 .cat-tag {
  color: #0d2007;
}
.acc-2 .cblock,
.acc-2 .cat-tag {
  background: linear-gradient(135deg, #57c2b3, var(--teal));
}
.acc-3 .cblock,
.acc-3 .cat-tag {
  background: linear-gradient(135deg, #f6c26a, var(--amber));
}
.acc-3 .cat-tag {
  color: #402a05;
}
.acc-4 .cblock,
.acc-4 .cat-tag {
  background: linear-gradient(135deg, #95a4ea, var(--indigo));
}

.cta-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Sections spacing ---------- */
.section-pad {
  padding: 80px 0;
}
.bg-soft {
  background: var(--bg-soft);
}

/* ---------- Why choose us ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.review-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}
.review-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 600;
}
.review-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, #132015, var(--bg-deep) 65%);
  border-radius: 28px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 193, 67, 0.35), transparent 70%);
  top: -180px;
  right: -120px;
}
.cta-band h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
  position: relative;
}
.cta-band p {
  color: #b9c8b3;
  margin: 0;
  font-size: 15px;
  position: relative;
  max-width: 420px;
}
.cta-band .actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- FAQ Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion-item:hover {
  border-color: rgba(92, 193, 67, 0.35);
  box-shadow: var(--shadow-card);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.accordion-trigger .chev {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--ink-faint);
}
.accordion-trigger[aria-expanded="true"] {
  color: var(--green-ink);
}
.accordion-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  color: var(--green);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.accordion-panel-inner {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.accordion-panel-inner a {
  text-decoration: underline;
}

/* ---------- License article ---------- */
.license-article {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.license-section {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.license-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  color: #0d2007;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}
.license-section h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
}
.license-section p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}

/* ---------- Support: status badge ---------- */
.support-status {
  max-width: 640px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}
.support-status.is-online {
  background: rgba(92, 193, 67, 0.08);
  border-color: rgba(92, 193, 67, 0.3);
}
.support-status.is-offline {
  background: var(--bg-soft);
}
.support-status strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  margin-bottom: 4px;
}
.support-status.is-online strong {
  color: var(--green-ink);
}
.support-status p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.status-dot {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
}
.is-online .status-dot {
  background: var(--green);
}
.is-online .status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse-ring 1.8s ease-out infinite;
}
.is-offline .status-dot {
  background: var(--ink-faint);
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Support: contact channels ---------- */
.contact-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transition: opacity 0.35s ease;
}
.contact-grid.is-dim {
  opacity: 0.45;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.contact-grid:not(.is-dim) .contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(92, 193, 67, 0.35);
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--green-ink);
}
.contact-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 2px;
}
.contact-text span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- Reusable form card ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: var(--ink);
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(92, 193, 67, 0.14);
}
.form-card textarea {
  resize: vertical;
  min-height: 120px;
}
.honeypot {
  position: absolute;
  left: -9999px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 0 20px;
}
.alert.success {
  background: rgba(92, 193, 67, 0.1);
  color: var(--green-ink);
  border: 1px solid rgba(92, 193, 67, 0.3);
}
.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- Hire DEV: hero illustration ---------- */
.hire-hero .hero-visual {
  height: auto;
}
.hire-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hire-blob {
  position: absolute;
  inset: 6% 4%;
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(
    160deg,
    var(--green-light) 0%,
    var(--green) 45%,
    var(--green-deep) 100%
  );
}
.code-window {
  position: relative;
  width: 78%;
  max-width: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: #12181f;
  box-shadow: 0 24px 48px -16px rgba(15, 26, 16, 0.5);
}
.code-window .chrome {
  height: 26px;
  background: #1c242b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.code-window .chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4650;
}
.code-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.code-line {
  height: 9px;
  border-radius: 4px;
  background: #2a343d;
}
.avatar-float {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 20px -8px rgba(15, 26, 16, 0.4);
  animation: float 6s ease-in-out infinite;
}
.af-1 {
  top: 10%;
  left: 4%;
  background: linear-gradient(135deg, var(--indigo), #4f60c2);
  animation-delay: 0s;
}
.af-2 {
  bottom: 16%;
  right: 2%;
  background: linear-gradient(135deg, var(--amber), #d98d10);
  animation-delay: 1s;
}
.af-3 {
  top: 46%;
  right: 12%;
  background: linear-gradient(135deg, var(--teal), #1f7a6d);
  animation-delay: 2s;
}

/* ---------- Hire DEV: service checkboxes ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-check:has(input:checked),
.service-check.is-checked {
  border-color: var(--green);
  background: rgba(92, 193, 67, 0.06);
  color: var(--green-ink);
}
.service-check input {
  accent-color: var(--green);
  display: none;
}

/* ---------- Hire DEV: 2-column contact fields ---------- */
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-2col label {
  margin-bottom: 6px;
}

/* ---------- Hire DEV: why our devs ---------- */
.why-devs {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.why-devs-visual {
  flex-shrink: 0;
}
.dev-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green-light), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d2007;
  box-shadow: 0 20px 40px -14px rgba(47, 143, 34, 0.5);
}
.why-devs-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  flex: 1;
}
.why-devs-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 600;
}
.why-devs-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Hire DEV: process timeline ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--border-soft),
    var(--green-light),
    var(--border-soft)
  );
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.process-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  color: #0d2007;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 14px -6px rgba(47, 143, 34, 0.5);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  margin: 0 0 6px;
  font-weight: 600;
}
.process-step p {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Template Detail: 2-column layout ---------- */
.td-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: start;
}

.td-name-block h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.td-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cat-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.cat-badge:hover {
  border-color: var(--green);
  color: var(--green-ink);
  background: rgba(92, 193, 67, 0.06);
}

/* ---------- Template Detail: hero thumbnail ---------- */
.td-thumb {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.td-thumb .thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.td-thumb .thumb img {
  transition: filter 0.4s ease, transform 0.4s ease;
}
.td-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 16, 0.15),
    rgba(15, 26, 16, 0.55)
  );
}
.td-thumb:hover .td-thumb-overlay {
  opacity: 1;
}
.td-thumb:hover .thumb img {
  filter: brightness(0.55) blur(1px);
  transform: scale(1.02);
}

/* ---------- Template Detail: description blocks ---------- */
.td-desc-block {
  margin-bottom: 28px;
}
.td-desc-block h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  margin: 0 0 12px;
  font-weight: 600;
}
.td-desc-block p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}
.td-desc-html {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}
.td-desc-html p {
  margin: 0 0 12px;
}
.td-desc-html h2,
.td-desc-html h3,
.td-desc-html h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 18px 0 10px;
  font-weight: 600;
}
.td-desc-html a {
  color: var(--green-ink);
  text-decoration: underline;
}
.td-desc-html ul,
.td-desc-html ol {
  padding-left: 20px;
  margin: 0 0 12px;
}
.td-feature-list,
.td-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.td-feature-list li,
.td-file-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.td-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
}
.td-feature-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8.5px;
  width: 6px;
  height: 3.5px;
  border-left: 2px solid #0d2007;
  border-bottom: 2px solid #0d2007;
  transform: rotate(-45deg);
}
.td-file-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 11px;
  border: 1.6px solid var(--ink-faint);
  border-radius: 2px;
}

/* ---------- Template Detail: download box ---------- */
.download-box {
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.download-tier {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.download-tier.is-premium {
  border-color: rgba(240, 163, 36, 0.4);
  background: linear-gradient(180deg, #fffdf7, #fff);
}
.download-tier-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.download-tier-head strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.download-tier p {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.td-mini-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13.5px;
  margin-bottom: 9px;
  outline: none;
  transition: border-color 0.2s ease;
}
.td-mini-form input:focus {
  border-color: var(--green);
}

/* ---------- Template Detail: specs box ---------- */
.specs-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #fff;
  margin-bottom: 28px;
}
.specs-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
}
.specs-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.specs-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.specs-list dt {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}
.specs-list dd {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  text-align: right;
}
.specs-label {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compat-badges,
.tag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.compat-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
}
.tag-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(107, 127, 215, 0.08);
  color: var(--indigo);
  border: 1px solid rgba(107, 127, 215, 0.25);
}

/* ---------- Template Detail: related ---------- */
.related-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.related-grid .p-card .p-body {
  padding: 11px 12px 13px;
}
.related-grid .p-card .p-title-row h3 {
  font-size: 13px;
}
.related-grid .p-card .cat-tag,
.related-grid .p-card .price-tag {
  font-size: 10px;
  padding: 3px 8px;
}
.related-grid .p-card .free-badge {
  font-size: 9px;
  padding: 3px 7px;
}

/* ---------- Status pages (download landing / result) ---------- */
.status-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  box-shadow: var(--shadow-card);
}
.status-card h1 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 700;
}
.status-hint {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  line-height: 1.6;
}
.status-back-link {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.status-back-link:hover {
  color: var(--green-ink);
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  text-align: left;
}
.status-info > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.status-info dt {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
}
.status-info dd {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

.status-spinner {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 22px;
}
.status-spinner span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  animation: spinner-bounce 1s ease-in-out infinite;
}
.status-spinner span:nth-child(2) {
  animation-delay: 0.15s;
}
.status-spinner span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes spinner-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.status-icon-error {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Checkout ---------- */
.checkout-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.checkout-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.checkout-thumb {
  width: 76px;
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.checkout-summary strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  margin-bottom: 2px;
}
.checkout-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
}
.checkout-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */
footer.site {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}
.footer-grid p.slogan {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 230px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 11px;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--green-ink);
}
.newsletter h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
}
.newsletter p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.sub-form {
  display: flex;
  gap: 8px;
}
.sub-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.sub-form input:focus {
  border-color: var(--green);
}
.subscribe-msg {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--green-ink);
}
.subscribe-msg.is-error {
  color: #991b1b;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-bottom .socials {
  display: flex;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    height: 300px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-devs {
    flex-direction: column;
    text-align: center;
  }
  .why-devs-reasons {
    grid-template-columns: 1fr;
  }
  .process-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }
  .process-track::before {
    display: none;
  }
  .td-grid {
    grid-template-columns: 1fr;
  }
  .download-box {
    position: static;
  }
}
@media (max-width: 640px) {
  .pager {
    gap: 6px;
  }
  .pager-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .pager-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .header-actions .btn-dark {
    display: none;
  } /* Hire DEV vẫn có trong mobile-nav, tránh trùng lặp trên thanh header chật */
  .hero-visual {
    height: 230px;
  }
  .mock-card {
    width: 145px !important;
  }
  .mock-card .body {
    padding: 9px;
  }
  .mock-card .block {
    height: 32px;
  }
  .mock-2 {
    width: 165px !important;
    left: 16%;
  }
  .mock-3 {
    width: 150px !important;
  }
  .badge-float {
    font-size: 11px;
    padding: 7px 12px 7px 7px;
  }
  .badge-float .n {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .search-panel {
    flex-wrap: wrap;
    padding: 14px 14px 14px 16px;
  }
  .search-panel input {
    width: 100%;
    order: 1;
    padding: 6px 0;
  }
  .search-panel svg {
    order: 0;
  }
  .search-panel button {
    order: 2;
    width: 100%;
  }
  .service-grid,
  .form-2col {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 40px 26px;
    flex-direction: column;
    align-items: flex-start;
  }
  .header-inner {
    padding: 14px 0;
  }
}
