:root {
  --hq-blue: #0555ae;
  --hq-blue-bright: #3a8fd4;
  --hq-blue-rgb: 5, 85, 174;
  --hq-gold: #c59d5f;
  --hq-gold-rgb: 197, 157, 95;
  --bg: #f4f7fb;
  --bg-deep: #e8eef6;
  --text: #1a2332;
  --text-muted: #5a6577;
  --line: rgba(5, 85, 174, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 58px;
  /* Match HiQ spacing + type scale */
  --space-3xs: 0.3125rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.8125rem;
  --space-sm: 1.3125rem;
  --space-md: 2.125rem;
  --space-lg: 3.4375rem;
  --space-xl: 5.5625rem;
  --pad: clamp(var(--space-sm), 4vw, var(--space-lg));
  --fs-sm: 0.875rem;
  --page-pad: var(--pad);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(var(--hq-blue-rgb), 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Nav — matched to HiQ marketing site */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo img {
  height: clamp(20px, 2vw, 26px);
  width: auto;
  display: block;
}

@media (min-width: 1600px) {
  .nav-logo img {
    height: clamp(32px, 2.5vw, 44px);
  }
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.2vw, 2.5rem);
  min-width: 0;
}

.nav-links a {
  font-family: var(--font);
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--hq-blue);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xs);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + clamp(var(--space-sm), 4.5vh, var(--space-md))) var(--page-pad) 0;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand {
  display: block;
  width: clamp(90px, 16vw, 158px);
  height: auto;
  margin: 0 auto clamp(var(--space-xs), 2vh, var(--space-sm));
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin-inline: auto;
}

/* Products */
.products {
  padding: var(--space-xl) var(--page-pad) var(--space-md);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: var(--max);
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 4px;
  overflow: visible;
  transition: transform 0.45s var(--ease-out);
}

.product-card-cta-btn {
  margin-top: var(--space-sm);
}

.btn-nav {
  padding: 0.2rem 0.75rem;
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(var(--hq-blue-rgb), 0.16);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-card-link:hover .product-card-media,
.product-card-link:focus-visible .product-card-media {
  transform: scale(1.02);
}

.product-card-link:hover .product-card-title,
.product-card-link:focus-visible .product-card-title {
  color: var(--hq-blue);
}

.product-card-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
  transition: transform 0.55s var(--ease-out);
}

.product-card--hiq .product-card-media {
  background: #fff;
}

.product-card--hiq .product-card-media img {
  width: 95%;
  height: 95%;
  margin: auto;
  object-fit: cover;
  object-position: center;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card-media--placeholder {
  position: relative;
}

.placeholder-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.product-card--ar .product-card-media--placeholder {
  background:
    linear-gradient(145deg, rgba(var(--hq-blue-rgb), 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #020a14 0%, #062847 100%);
  color: rgba(255, 255, 255, 0.7);
}

.product-card--hiq .product-card-media--placeholder {
  background:
    linear-gradient(145deg, rgba(var(--hq-gold-rgb), 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
  color: var(--text-muted);
  border: 1px solid rgba(var(--hq-blue-rgb), 0.08);
}

.product-card-body {
  padding: clamp(1.125rem, 2.5vw, 1.5rem) 0 0;
  width: 100%;
  text-align: left;
}

.product-card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact */
.contact {
  padding: var(--space-md) var(--page-pad) clamp(4rem, 10vh, 6rem);
  border-top: 1px solid rgba(var(--hq-blue-rgb), 0.1);
}

.contact-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-xs) var(--space-sm);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: 0.55rem;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn-primary {
  background: var(--hq-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--hq-blue-rgb), 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #044890;
  transform: translateY(-1px);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-sm);
  padding: 1.5rem var(--page-pad) 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(var(--hq-blue-rgb), 0.08);
}

.footer-copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-marks {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  line-height: 1.4;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex-shrink: 0;
  margin-left: auto;
}

.footer a {
  color: var(--hq-blue);
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 879px) {
  .footer-marks {
    flex-basis: 100%;
    order: 3;
    text-align: left;
  }

  .footer-links {
    margin-left: 0;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.products-grid .product-card:nth-child(2).reveal.visible {
  transition-delay: 0.1s;
}

@media (max-width: 879px) {
  .nav {
    gap: var(--space-2xs);
  }

  .nav-logo img {
    height: clamp(18px, 4.5vw, 22px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2xs) var(--pad) var(--space-xs);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(26, 35, 50, 0.08);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

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

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card-media {
    transition: none;
  }
}
