:root {
  /* Core Palette — Dark Architectural System */
  --bg: #08090e;
  --bg-elev: #0e1018;
  --bg-card: rgba(17, 19, 29, 0.78);
  --bg-card-solid: #11131d;
  --b1: rgba(255, 255, 255, 0.08);
  --b2: rgba(251, 146, 60, 0.38);

  /* Accents */
  --ac: #ea580c;
  --ac-h: #fb923c;
  --ac2: #22d3ee;
  --link: #38bdf8;
  --amber: #e0a336;
  --green: #3fb950;

  /* Text Hierarchy */
  --tx: #f3f4f8;
  --tx2: #b4bac8;
  --tx3: #7d8597;
  --tx4: #52596b;

  /* Typography */
  --font-main: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'Google Sans Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Legacy Variable Aliases (preserves compatibility with admin.html & store.js) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-elev);
  --border-color: var(--b1);
  --border-glow: var(--b2);
  --accent-cyan: var(--ac2);
  --accent-blue: var(--link);
  --accent-purple: var(--ac-h);
  --accent-gold: #fbbf24;
  --accent-green: var(--green);
  --text-main: var(--tx);
  --text-muted: var(--tx2);
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-neon: 0 20px 50px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--tx);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ambient top light instead of heavy neon grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(234, 88, 12, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 85% 78%, rgba(34, 211, 238, 0.04) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--mono);
}

.container,
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Accessibility & Focus ================= */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--ac);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--ac-h);
  outline-offset: 3px;
}

/* ================= Scroll Reveal ================= */
.rv {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-ready .rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .js-ready .rv.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= Sleek Single-Tier Sticky Navbar ================= */
header.top,
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 9, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b1);
}

.nav-bar-inner,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.logo,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.45));
}

.brand-name {
  font-family: var(--mono);
  color: var(--ac-h);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  background: rgba(234, 88, 12, 0.14);
  color: var(--ac-h);
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-links-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links-inline a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--tx2);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links-inline a:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links-inline a[aria-current="page"],
.nav-links-inline a.active {
  color: var(--tx);
  background: rgba(234, 88, 12, 0.16);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.28);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Legacy two-tier support if referenced */
.nav-top {
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-bottom {
  border-top: 1px solid var(--b1);
  background: rgba(8, 9, 14, 0.85);
}

.subnav-container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 24px;
}

.subnav-container::-webkit-scrollbar {
  display: none;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.subnav-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--tx2);
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.subnav-links a:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
}

.subnav-links a[aria-current="page"],
.mobile-nav-links a[aria-current="page"] {
  color: var(--ac-h);
  background: rgba(234, 88, 12, 0.14);
  font-weight: 700;
}

/* Mobile Hamburger Toggle */
.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b1);
  color: var(--tx);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-toggle-btn:hover {
  border-color: var(--b2);
  background: rgba(255, 255, 255, 0.08);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn.p,
.btn-cyan {
  background: var(--ac);
  color: #ffffff !important;
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.28);
}

.btn.p:hover,
.btn-cyan:hover {
  background: #f97316;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.42);
}

.btn.s,
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
  color: var(--tx);
}

.btn.s:hover,
.btn-outline:hover {
  border-color: var(--b2);
  background: rgba(234, 88, 12, 0.1);
  transform: translateY(-1px);
}

/* Prominent Hero QR Primary CTA */
.btn-qr-hero {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #ea580c 0%, #d94e07 55%, #b83b0a 100%);
  border: 1px solid rgba(251, 146, 60, 0.68);
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.42), 0 0 22px rgba(249, 115, 22, 0.22);
}

.btn-qr-hero:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 52%, #c2410c 100%);
  border-color: rgba(253, 186, 116, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(234, 88, 12, 0.54), 0 0 28px rgba(249, 115, 22, 0.34);
}

.btn-qr-hero:active {
  transform: translateY(0) scale(0.98);
}

.btn-qr-hero:focus-visible,
.hero-qr-stage:focus-visible,
.hero-qr-mode:focus-visible {
  outline: 2px solid var(--ac-h);
  outline-offset: 3px;
}

.btn-qr-icon {
  flex-shrink: 0;
}

.btn-qr-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-iptv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(234, 88, 12, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #ffedd5 !important;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-iptv-pill:hover {
  background: var(--ac);
  color: #ffffff !important;
  border-color: var(--ac-h);
}

.btn-cart {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b1);
  color: var(--tx);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cart:hover {
  background: rgba(234, 88, 12, 0.12);
  border-color: var(--b2);
}

.cart-count-badge {
  background: var(--ac);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
}

/* ================= Hero with Flow-Field Canvas ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(36px, 4.5vw, 52px);
  border-bottom: 1px solid var(--b1);
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 376px);
  gap: clamp(22px, 3.2vw, 38px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  margin-bottom: 16px;
}

.hero-copy .heromark {
  margin-top: 10px;
  margin-bottom: 14px;
}

.hero-copy .lead {
  margin-bottom: 22px;
}

/* Interactive Hero QR Simulation Card */
.hero-qr-sim {
  background: rgba(14, 16, 26, 0.84);
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 36px rgba(234, 88, 12, 0.14);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hero-qr-sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-qr-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ac-h);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-qr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
  flex-shrink: 0;
}

.hero-qr-chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--tx2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--b1);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-qr-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hero-qr-mode {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--b1);
  color: var(--tx2);
  border-radius: 7px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.hero-qr-mode:hover {
  border-color: var(--b2);
  color: var(--tx);
}

.hero-qr-mode:active {
  transform: scale(0.96);
}

.hero-qr-mode.active {
  background: rgba(234, 88, 12, 0.25);
  border-color: rgba(251, 146, 60, 0.72);
  color: #ffffff;
}

.hero-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-qr-stage:hover {
  border-color: rgba(251, 146, 60, 0.75);
  background: rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-qr-stage:active {
  transform: translateY(0) scale(0.99);
}

.hero-qr-frame {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-qr-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  min-height: 168px;
}

.hero-qr-canvas svg {
  width: 168px;
  height: auto;
  display: block;
}

.hero-qr-scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #fb923c 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.85);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-qr-dot {
    animation: heroQrPulse 2s ease-in-out infinite;
  }

  .hero-qr-scanline {
    opacity: 0.85;
    animation: heroQrScan 3.2s ease-in-out infinite;
  }
}

@keyframes heroQrPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes heroQrScan {
  0%, 100% {
    transform: translateY(4px);
    opacity: 0.25;
  }
  50% {
    transform: translateY(162px);
    opacity: 0.9;
  }
}

.hero-qr-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.hero-qr-payload {
  font-size: 0.72rem;
  color: var(--tx2);
  background: rgba(8, 9, 14, 0.72);
  border: 1px solid var(--b1);
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-qr-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.34);
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-qr-stage:hover .hero-qr-action,
.hero-qr-stage:focus-visible .hero-qr-action {
  background: var(--ac);
  border-color: rgba(251, 146, 60, 0.75);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-qr-sim {
    max-width: 420px;
  }
}

.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 24% 38%, rgba(8, 9, 14, 0.12) 0%, rgba(8, 9, 14, 0.68) 100%),
    linear-gradient(180deg, rgba(8, 9, 14, 0.08) 0%, rgba(8, 9, 14, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap,
.hero .container {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tx2);
}

.heromark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.heromark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(234, 88, 12, 0.45));
}

.heromark .mk {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--ac-h);
  letter-spacing: -0.02em;
}

.hero h1,
.hero-title {
  font-size: clamp(2.25rem, 4.9vw, 3.75rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--tx);
  margin-bottom: 20px;
  max-width: 820px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #fdba74 54%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-copy h1 {
  font-size: clamp(1.95rem, 3.25vw, 2.85rem);
  margin-bottom: 16px;
}

.hero .lead,
.hero-description {
  max-width: 660px;
  color: var(--tx2);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.65;
  margin: 0 0 24px;
}

.cta,
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Stats Strip inside Hero */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.stat {
  position: relative;
  overflow: hidden;
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat:hover {
  border-color: var(--b2);
  transform: translateY(-2px);
}

.stat b {
  display: block;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx);
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--tx3);
}

.stat i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--ac) 0%, #fbbf24 100%);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ================= Sections & Headings ================= */
.section-block {
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--b1);
}

.section-block.alt {
  background: rgba(255, 255, 255, 0.012);
}

.shead,
.section-header {
  margin-bottom: 34px;
  text-align: left;
}

.shead h2,
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--tx);
  margin-bottom: 10px;
  line-height: 1.18;
}

.shead p,
.section-desc {
  color: var(--tx2);
  font-size: 0.98rem;
  max-width: 660px;
  line-height: 1.65;
  margin: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ac-h);
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.28);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ================= Editorial System Cards (.fam & .card) ================= */
.fam {
  margin-top: 38px;
}

.fam:first-of-type {
  margin-top: 12px;
}

.fam > h2,
.fam > h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 4px;
}

.fam > p {
  font-size: 0.9rem;
  color: var(--tx3);
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.card:hover {
  border-color: var(--b2);
  background: rgba(23, 26, 40, 0.9);
  transform: translateY(-2px);
}

.card .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ac-h);
  font-weight: 600;
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--tx);
  line-height: 1.3;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card p {
  font-size: 0.89rem;
  color: var(--tx2);
  line-height: 1.6;
  flex: 1;
}

.card .meta {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card .ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ac-h);
  transition: gap 0.2s ease, color 0.2s ease;
}

.card:hover .ver {
  gap: 9px;
  color: #ffffff;
}

/* ================= Hardware Store Catalog ================= */
.catalog-section {
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--b1);
}

.catalog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
  color: var(--tx2);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(234, 88, 12, 0.16);
  border-color: var(--ac-h);
  color: #ffffff;
}

.catalog-search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--tx);
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
  max-width: 280px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search-input:focus {
  border-color: var(--ac-h);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--b2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.product-img-box {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #05060a;
  border-bottom: 1px solid var(--b1);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 9, 14, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid var(--b2);
  color: var(--tx);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--tx2);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--tx2);
}

.product-pricing-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.price-cash-label {
  font-size: 0.72rem;
  color: var(--tx3);
}

.price-cash-val {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -0.02em;
}

.price-inst-box {
  text-align: right;
}

.price-inst-label {
  font-size: 0.72rem;
  color: var(--ac-h);
  font-weight: 600;
}

.price-inst-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ac2);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* ================= Video Showcase ================= */
.video-showcase-section {
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--b1);
}

.video-card-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #05060a;
  border: 1px solid var(--b1);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

.showcase-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-caption-bar {
  padding: 14px 20px;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--b1);
  font-size: 0.86rem;
  color: var(--tx2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Methodology Flow (.flujo / .paso) ================= */
.flujo {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.paso {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.paso:hover {
  border-color: var(--b2);
  transform: translateY(-2px);
}

.paso .np {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ac-h);
  letter-spacing: 0.08em;
}

.paso h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tx);
}

.paso p {
  font-size: 0.86rem;
  color: var(--tx2);
  line-height: 1.58;
  flex: 1;
}

.paso .sal {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--tx3);
}

@media (max-width: 1080px) {
  .flujo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .flujo {
    grid-template-columns: 1fr;
  }
}

/* ================= Infinite Marquee Rail (.ia / .ia-riel) ================= */
.ia {
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--b1);
  overflow: hidden;
}

.ia-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ia-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac2);
  margin-bottom: 10px;
  font-weight: 600;
}

.ia-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
  color: var(--tx2);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ia-toggle-btn:hover {
  border-color: var(--b2);
  color: var(--tx);
}

.ia-riel {
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ia-pista {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 24px;
}

.ia-copia {
  display: flex;
  gap: 16px;
}

.ia-card {
  width: 310px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}

.ia-card:hover {
  border-color: var(--b2);
}

.ia-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 8px;
}

.ia-card p {
  font-size: 0.85rem;
  color: var(--tx2);
  line-height: 1.55;
}

@media (prefers-reduced-motion: no-preference) {
  .ia-pista {
    animation: ia-scroll 48s linear infinite;
  }

  .ia-riel:hover .ia-pista,
  .ia-riel:focus-within .ia-pista,
  .ia-riel.is-paused .ia-pista {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ia-riel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ia-copia {
    display: none;
  }
}

@keyframes ia-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= Feature Detail Hero, Chips & Problem/Solution ================= */
.crumb {
  padding: 20px 24px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--tx3);
}

.crumb a {
  color: var(--tx2);
  transition: color 0.15s ease;
}

.crumb a:hover {
  color: var(--ac-h);
}

.fhero {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--b1);
}

.fhero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--tx);
  margin-bottom: 10px;
}

.fhero .tagline {
  font-size: 1.08rem;
  color: var(--tx2);
  max-width: 720px;
  margin-bottom: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--tx2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
}

.chip.tech {
  color: var(--tx);
  border-color: color-mix(in srgb, var(--tc, var(--ac-h)) 38%, transparent);
  background: color-mix(in srgb, var(--tc, var(--ac-h)) 9%, transparent);
}

.chip .ti {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--tc, var(--ac-h));
}

/* Two-Column Problem / Solution Boxes */
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.box {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.box h3 {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  font-weight: 700;
}

.box.pr {
  border-color: rgba(224, 163, 54, 0.25);
}

.box.pr h3 {
  color: var(--amber);
}

.box.so {
  border-color: rgba(251, 146, 60, 0.28);
}

.box.so h3 {
  color: var(--ac-h);
}

.box p {
  color: var(--tx2);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .two {
    grid-template-columns: 1fr;
  }
}

/* ================= Interactive System Architecture SVG Diagram ================= */
.dg {
  background: #0b0d14;
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dg-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--b1);
  font-family: var(--mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.dg-tit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tx);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dg-badge-tipo {
  background: rgba(234, 88, 12, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: var(--ac-h);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.08em;
}

.dg-ctl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dg-vivo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ac-h);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.dg-vivo::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.dg-rep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
  color: var(--tx2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dg-rep:hover {
  border-color: var(--b2);
  color: var(--tx);
}

.dg-lienzo {
  display: block;
  width: 100%;
  height: auto;
}

/* SVG internal classes */
.dg-zona {
  fill: rgba(255, 255, 255, 0.014);
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.dg-eyebrow {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--tx3);
}

.dg-sublabel {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  fill: var(--tx4);
}

.dg-node-rect {
  fill: #10131e;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  rx: 6;
  transition: stroke 0.25s ease, fill 0.25s ease;
}

.dg-node-rect.focal {
  fill: #121528;
  stroke: rgba(251, 146, 60, 0.55);
  stroke-width: 1.4;
}

.dg-u.is-active .dg-node-rect {
  stroke: var(--ac-h);
}

.dg-u.is-ok .dg-node-rect {
  stroke: rgba(63, 185, 80, 0.65);
}

.dg-u.is-warn .dg-node-rect {
  stroke: rgba(224, 163, 54, 0.7);
}

.dg-node-chip {
  fill: rgba(234, 88, 12, 0.16);
  stroke: rgba(251, 146, 60, 0.3);
  stroke-width: 0.8;
  rx: 3;
}

.dg-node-chip.focal {
  fill: rgba(34, 211, 238, 0.14);
  stroke: rgba(34, 211, 238, 0.4);
}

.dg-node-chip-t {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--ac-h);
}

.dg-node-chip-t.focal {
  fill: var(--ac2);
}

.dg-node-watermark {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  fill: rgba(255, 255, 255, 0.06);
}

.dg-node-title {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  fill: var(--tx);
}

.dg-node-sub {
  font-family: var(--font-main);
  font-size: 9.5px;
  fill: var(--tx3);
}

.dg-mini {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.dg-mono {
  font-family: var(--mono);
}

.dg-pista {
  fill: rgba(255, 255, 255, 0.06);
}

.dg-llena {
  fill: var(--green);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dg-plazo {
  fill: var(--ac-h);
  transition: width 0.55s ease, fill 0.3s ease;
}

.dg-conn {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.dg-conn.focal {
  stroke: rgba(251, 146, 60, 0.6);
  stroke-width: 1.6;
  stroke-dasharray: none;
}

.dg-conn-mask {
  fill: #0b0d14;
}

.dg-conn-label {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--ac-h);
}

.dg-est-t {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--tx2);
}

.dg-cifra {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--ac2);
}

.dg-cur {
  fill: var(--ac2);
}

/* ================= Capabilities List, Numbered Steps & Editorial Content ================= */
.caps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}

.caps li {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--tx2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.caps li::before {
  content: "✓";
  font-family: var(--mono);
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.fsec {
  margin-top: 44px;
}

.fsec h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx);
  margin-bottom: 14px;
}

.fsec > p {
  color: var(--tx2);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 820px;
}

.fpasos {
  list-style: none;
  counter-reset: fpaso;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fpasos li {
  counter-increment: fpaso;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 18px 22px 18px 56px;
}

.fpasos li::before {
  content: "0" counter(fpaso);
  position: absolute;
  left: 20px;
  top: 19px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-h);
}

.fpasos li b {
  display: block;
  font-size: 1rem;
  color: var(--tx);
  margin-bottom: 4px;
}

.fpasos li span {
  font-size: 0.91rem;
  color: var(--tx2);
  line-height: 1.6;
}

/* ================= CTA Box (.cbox) ================= */
.cbox {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 90% at 50% 0%, rgba(234, 88, 12, 0.16) 0%, transparent 70%),
    var(--bg-card);
  border: 1px solid var(--b2);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 52px) 28px;
  text-align: center;
  margin: 48px 0;
}

.cbox h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--tx);
  margin-bottom: 12px;
}

.cbox p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--tx2);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ================= Featured Hub & Keops Story ================= */
.featured-hub {
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(234, 88, 12, 0.15) 0%, transparent 70%),
    var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  margin: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.hub-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hub-desc {
  color: var(--tx2);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 650px;
}

.keops-story {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--b1);
}

.story-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--tx);
}

.story-left p {
  color: var(--tx2);
  margin-bottom: 14px;
  font-size: 0.96rem;
  line-height: 1.68;
}

.story-features {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--tx);
}

.story-features span {
  color: var(--ac-h);
}

.story-right {
  display: flex;
  justify-content: center;
}

.story-symbol {
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 0 28px rgba(234, 88, 12, 0.38));
}

/* ================= Guides & Services Grids (Legacy + Enhanced) ================= */
.store-features-guide {
  margin: 56px 0;
  padding: clamp(26px, 4vw, 38px);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
}

.features-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--b2);
}

.guide-card-icon {
  font-size: 1.5rem;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--tx);
}

.guide-card-text {
  font-size: 0.88rem;
  color: var(--tx2);
  line-height: 1.62;
}

.services-section {
  padding: 56px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.service-card:hover {
  border-color: var(--b2);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--tx2);
  font-size: 0.89rem;
  line-height: 1.58;
}

/* ================= Subpages: Page Hero, Editorial, Tables, Tools ================= */
.page-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--b1);
  margin-bottom: 36px;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.95rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  color: var(--tx);
}

.page-hero p {
  max-width: 740px;
  color: var(--tx2);
  font-size: 1.04rem;
  line-height: 1.68;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.editorial-card:hover {
  transform: translateY(-2px);
  border-color: var(--b2);
}

.editorial-card h2,
.editorial-card h3 {
  color: var(--tx);
  font-weight: 700;
  line-height: 1.3;
}

.editorial-card p,
.editorial-card li {
  color: var(--tx2);
  font-size: 0.92rem;
  line-height: 1.68;
}

.editorial-list {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}

.tech-pill {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.26);
  color: var(--ac-h);
}

.article-shell {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.8vw, 38px);
  margin-bottom: 28px;
}

.article-shell h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  color: var(--tx);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article-shell h3 {
  font-size: 1.12rem;
  color: var(--ac-h);
  font-weight: 700;
  margin: 20px 0 8px;
}

.article-shell p,
.article-shell li {
  color: var(--tx2);
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-shell p + p {
  margin-top: 12px;
}

.toc-nav {
  background: rgba(14, 16, 24, 0.78);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 30px;
}

.toc-nav h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ac-h);
  margin-bottom: 10px;
}

.toc-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
}

.toc-nav a {
  color: var(--tx2);
  font-size: 0.9rem;
  font-weight: 500;
}

.toc-nav a:hover {
  color: var(--ac-h);
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  margin: 18px 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.89rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--b1);
}

.spec-table th {
  background: rgba(234, 88, 12, 0.1);
  color: var(--ac-h);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

/* ================= FAQ Accordion (.faq & .faq-accordion) ================= */
.faq,
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details,
.faq-accordion details {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.faq details[open],
.faq-accordion details[open] {
  border-color: var(--b2);
}

.faq summary,
.faq-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tx);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker,
.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.faq-accordion summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ac-h);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq details[open] summary::after,
.faq-accordion details[open] summary::after {
  content: "−";
}

.faq details p,
.faq-accordion details p,
.fq-c p {
  margin-top: 12px;
  color: var(--tx2);
  font-size: 0.92rem;
  line-height: 1.68;
}

details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details::details-content {
    transition: block-size 0.28s ease, content-visibility 0.28s ease;
    transition-behavior: allow-discrete;
  }
}

/* ================= Interactive Tool Panels ================= */
.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 28px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tool-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tx2);
  margin-bottom: 6px;
}

.tool-result-box {
  margin-top: 20px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.tool-metric-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-metric-value {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--ac2);
  margin-top: 4px;
}

.callout-box {
  background: rgba(63, 185, 80, 0.07);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 15px 18px;
  margin: 18px 0;
  color: var(--tx);
  font-size: 0.93rem;
}

/* ================= Tools Extensions (QR, Passwords, Lists, Pillars) ================= */
.tool-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-panel h2 {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--tx);
  margin-top: 6px;
}

.tool-desc {
  color: var(--tx2);
  font-size: 0.92rem;
  margin-top: 6px;
  max-width: 720px;
}

.qr-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.qr-preview-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.qr-preview-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 248px;
  min-height: 248px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.qr-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.qr-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--b1);
  color: var(--tx2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.qr-type-btn:hover {
  border-color: var(--b2);
  color: var(--tx);
}

.qr-type-btn.active {
  background: rgba(234, 88, 12, 0.22);
  border-color: var(--ac-h);
  color: #ffffff;
}

.qr-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .qr-custom-grid {
    grid-template-columns: 1fr;
  }
}

.qr-color-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qr-color-input {
  width: 42px;
  height: 38px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--b1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.pwd-output-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pwd-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px 14px;
  align-content: center;
}

.pwd-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 0.85rem;
  cursor: pointer;
}

.tool-list-box {
  border: 1px solid var(--b1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.tool-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--b1);
}

.tool-list-row:last-child {
  border-bottom: none;
}

.tool-list-row.is-done strong {
  text-decoration: line-through;
  color: var(--tx3);
}

.tool-check-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.tool-check-wrap span {
  display: flex;
  flex-direction: column;
}

.tool-check-wrap small {
  color: var(--tx3);
  font-size: 0.78rem;
}

.tool-del-btn {
  background: transparent;
  border: 1px solid var(--b1);
  color: var(--tx3);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tool-del-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
}

/* Homepage 4-Pillar & Tools Launchpad */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--b2);
  transform: translateY(-2px);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ac2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar-card h3 {
  font-size: 1.05rem;
  color: var(--tx);
}

.pillar-card p {
  font-size: 0.86rem;
  color: var(--tx2);
  line-height: 1.55;
  flex: 1;
}

.tools-launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tool-mini-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tool-mini-card:hover {
  border-color: var(--b2);
  background: rgba(234, 88, 12, 0.08);
  transform: translateY(-2px);
}

.tool-mini-card a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tool-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ac-h);
}

.tool-mini-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx);
}

.tool-mini-card p {
  font-size: 0.8rem;
  color: var(--tx3);
  line-height: 1.45;
}

/* Interactive Mini-Apps Stage on Homepage */
.qr-featured-stage {
  scroll-margin-top: 84px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 25%, rgba(34, 211, 238, 0.08) 0%, transparent 65%),
    var(--bg-card);
  border: 1px solid var(--b2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.qr-featured-stage.is-highlighted {
  border-color: var(--ac-h);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.26), 0 22px 54px rgba(234, 88, 12, 0.35);
}

.home-tools-stage {
  scroll-margin-top: 84px;
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.home-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b1);
  margin-bottom: 18px;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b1);
  color: var(--tx2);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.tool-tab-btn .tab-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ac-h);
}

.tool-tab-btn:hover {
  border-color: var(--b2);
  color: var(--tx);
  background: rgba(234, 88, 12, 0.09);
}

.tool-tab-btn.active {
  background: var(--ac);
  border-color: var(--ac-h);
  color: #ffffff;
}

.tool-tab-btn.active .tab-num {
  color: #ffedd5;
}

.home-tool-pane {
  display: none;
}

.home-tool-pane.is-active {
  display: block;
}

.home-tool-pane .tool-panel {
  background: transparent;
  border: none;
  padding: 4px 0 0;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qr-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= Slide-Over Shopping Cart Drawer ================= */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #0d0f18;
  border-left: 1px solid var(--b2);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--b1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.cart-drawer-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--b1);
  color: var(--tx);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--tx2);
  gap: 14px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--b1);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--b1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tx);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ac2);
  margin-top: 2px;
}

.cart-item-installment {
  font-size: 0.75rem;
  color: var(--tx3);
}

.cart-item-qty-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--b1);
  color: var(--tx);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-num {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  margin-left: 6px;
}

.remove-btn:hover {
  opacity: 1;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--b1);
  background: var(--bg-elev);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tx);
}

.cart-inst-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ac2);
  margin-bottom: 14px;
}

/* ================= Mobile Navigation Drawer ================= */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 285px;
  height: 100%;
  background: #0d0f18;
  border-right: 1px solid var(--b2);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx2);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-links a:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
}

/* ================= Form Inputs & Modals (Preserved for Admin & Contact) ================= */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(8, 9, 14, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  background: #0e1018;
  border: 1px solid var(--b2);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88);
  margin: auto;
}

.modal-card::-webkit-scrollbar {
  display: none !important;
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--b1);
  color: var(--tx2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--tx);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--ac-h);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.form-input::placeholder {
  color: var(--tx3);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-input option {
  background: #0e1018;
  color: var(--tx);
}

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--b1);
  padding: 52px 0 28px;
  background: #06070b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  color: var(--tx);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-menu-links a {
  color: var(--tx3);
  font-size: 0.86rem;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.footer-menu-links a:hover {
  color: var(--ac-h);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--b1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--tx3);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-lock-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tx4);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.admin-lock-link:hover {
  color: var(--ac-h);
  background: rgba(234, 88, 12, 0.1);
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1024px) {
  .nav-links-inline {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .featured-hub {
    flex-direction: column;
    text-align: center;
  }

  .keops-story {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-right {
    order: -1;
  }

  .story-features {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .wrap {
    padding: 0 16px;
  }

  .nav-bar-inner {
    gap: 10px;
  }

  .brand-tag {
    display: none;
  }

  .logo {
    font-size: 0.96rem;
    gap: 8px;
  }

  .btn-cart {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search-input {
    max-width: 100%;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (forced-colors: active) {
  .nav-links-inline a[aria-current="page"],
  .subnav-links a[aria-current="page"],
  .mobile-nav-links a[aria-current="page"] {
    border-bottom: 2px solid LinkText;
  }
}
