/* =========================================================
   HCY Medical — Sampling Swabs Theme
   Design system + front-end styles
   ========================================================= */

:root {
  --ink: #0b1f1c;
  --ink-soft: #314743;
  --ink-muted: #6b7d78;
  --teal-950: #073b36;
  --teal-900: #0a4740;
  --teal-800: #0d554d;
  --teal-700: #0f6b60;
  --teal-600: #137a6b;
  --teal-500: #1b917f;
  --teal-400: #38a892;
  --mint-100: #e7f5ef;
  --mint-200: #ccebe0;
  --mint-300: #a9dccd;
  --paper: #f7f5ef;
  --paper-2: #f2efe6;
  --sand: #efe8d8;
  --sand-2: #e6dcc6;
  --coral: #e36b4e;
  --coral-dark: #c95439;
  --sky: #e8f1f3;
  --lilac: #eeeaf5;
  --peach: #f8e9e1;
  --white: #ffffff;
  --line: rgba(11, 31, 28, 0.12);
  --line-strong: rgba(11, 31, 28, 0.22);
  --shadow-sm: 0 8px 24px rgba(11, 31, 28, 0.06);
  --shadow-md: 0 22px 50px rgba(11, 63, 58, 0.12);
  --shadow-lg: 0 40px 90px rgba(7, 59, 54, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --container: 1200px;
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

h3,
h4 {
  font-weight: 700;
}

::selection {
  background: var(--mint-300);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--teal-950);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

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

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--white);
}

.section--mint {
  background: var(--mint-100);
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--teal-950);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section--dark .eyebrow {
  color: var(--mint-300);
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-title em {
  color: var(--teal-600);
  font-style: normal;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.8;
}

.text-muted {
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(227, 107, 78, 0.28);
}

.btn--primary:hover {
  background: var(--coral-dark);
}

.btn--dark {
  background: var(--teal-950);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--teal-800);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--teal-950);
}

.btn--light:hover {
  background: var(--mint-100);
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.96);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(11, 31, 28, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--teal-950);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--ink);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

.nav-menu li {
  position: relative;
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: -14px;
  z-index: 20;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu .sub-menu a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.nav-menu .sub-menu a::after {
  display: none;
}

.nav-menu .sub-menu a:hover {
  background: var(--mint-100);
}

.brand--logo img {
  max-height: 48px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--teal-950);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 86px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -140px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(56, 168, 146, 0.18), rgba(56, 168, 146, 0) 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 107, 78, 0.10), rgba(227, 107, 78, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero h1 em {
  display: block;
  color: var(--teal-600);
  font-style: normal;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  color: var(--teal-950);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-orbit {
  position: absolute;
  inset: 8% 4% 8% 6%;
  border: 1px dashed rgba(15, 107, 96, 0.24);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.visual-orbit::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(15, 107, 96, 0.12);
  border-radius: 50%;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 28, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.visual-card--main {
  top: 34px;
  right: 8px;
  width: min(68%, 400px);
  padding: 22px 22px 26px;
}

.visual-card--small {
  left: 0;
  bottom: 20px;
  width: 170px;
  padding: 18px;
  background: var(--teal-950);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.visual-card--small .visual-label {
  color: var(--mint-300);
}

.visual-card--small strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.visual-card--small span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.visual-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-label b {
  color: var(--teal-600);
  font-size: 10px;
}

.swab-stage {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 8px 0 4px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(204, 235, 224, 0.9), transparent 46%),
    linear-gradient(145deg, #f4fbf8 0%, #e4f3ed 100%);
}

.swab-stage img {
  width: min(76%, 300px);
  filter: drop-shadow(0 24px 24px rgba(7, 59, 54, 0.16));
  transform: rotate(-6deg);
}

.visual-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.visual-meta strong {
  font-size: 16px;
}

.visual-meta span {
  color: var(--ink-muted);
  font-size: 12px;
}

.visual-badge {
  position: absolute;
  top: 12%;
  left: 12%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(15, 107, 96, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transform: rotate(-10deg);
}

.visual-badge::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(15, 107, 96, 0.28);
  border-radius: 50%;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--mint-100);
  color: var(--teal-700);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.trust-item span {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 12px;
}

/* ---------- Product filters / grid ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--teal-950);
  background: var(--teal-950);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 122, 107, 0.32);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 22px;
  background: var(--product-tint, var(--mint-100));
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(11, 31, 28, 0.08);
  border-radius: 50%;
}

.product-media img {
  position: relative;
  z-index: 1;
  width: min(78%, 190px);
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(7, 59, 54, 0.12));
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-media img {
  transform: rotate(-4deg) scale(1.03);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-800);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

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

.product-kicker {
  margin-bottom: 8px;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-body h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.product-body h3 a:hover {
  color: var(--teal-700);
}

.product-body p {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.product-specs span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.product-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.product-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.product-card:hover .product-arrow svg {
  transform: translateX(4px);
}

.product-card.is-hidden {
  display: none;
}

/* ---------- Feature / why ---------- */
.feature {
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.feature-copy p {
  max-width: 520px;
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  color: var(--teal-600);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.feature-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.feature-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
}

.stat-panel {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 168, 146, 0.32), transparent 38%),
    linear-gradient(145deg, var(--teal-950), var(--teal-800));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.stat-panel::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.stat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-panel-head span {
  color: var(--mint-300);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-panel-head b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 10px;
}

.stat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 24px;
}

.stat:nth-child(even) {
  padding-left: 24px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.stat-note {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Applications ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 122, 107, 0.3);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--mint-100);
  color: var(--teal-700);
}

.app-icon svg {
  width: 22px;
  height: 22px;
}

.app-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.app-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
}

.app-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(11, 31, 28, 0.08);
  border-radius: 50%;
}

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.resource-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.resource-card p {
  margin-bottom: 24px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.resource-link svg {
  width: 15px;
  height: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--teal-950);
  color: var(--white);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: 80px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.cta-band h2 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
}

.cta-band p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cta-contact {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: right;
}

.cta-contact a {
  color: var(--mint-300);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 28px;
  background: #061a17;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
  gap: 48px;
  padding-bottom: 54px;
}

.footer-brand .brand-mark {
  background: var(--mint-300);
  color: var(--teal-950);
}

.footer-brand p {
  max-width: 300px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--mint-300);
}

.footer-contact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--mint-300);
}

/* ---------- Page / archive / single ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.breadcrumbs a:hover {
  color: var(--teal-700);
}

.breadcrumbs span + span::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}

.prose {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.prose h2 {
  margin: 44px 0 16px;
  color: var(--ink);
  font-size: 30px;
}

.prose h3 {
  margin: 30px 0 12px;
  color: var(--ink);
  font-size: 21px;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 26px 0;
}

.prose blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--teal-500);
  background: var(--mint-100);
  color: var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--paper-2);
  font-weight: 800;
}

/* Product single */
.product-hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--mint-100) 0%, var(--paper) 100%);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.product-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.product-hero .lead {
  max-width: 560px;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 50%),
    linear-gradient(145deg, var(--mint-200), var(--sky));
  box-shadow: var(--shadow-md);
}

.product-visual img {
  width: min(70%, 360px);
  filter: drop-shadow(0 30px 30px rgba(7, 59, 54, 0.18));
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.product-badges span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.spec-item {
  padding: 18px 20px;
  background: var(--white);
}

.spec-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.product-content {
  padding: 72px 0;
}

.product-content-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.product-aside {
  position: sticky;
  top: 110px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.product-aside h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.product-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-aside li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.product-aside li:last-child {
  border-bottom: 0;
}

.product-aside li span {
  color: var(--ink-muted);
}

.product-aside li strong {
  text-align: right;
}

.related-products {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: var(--mint-100);
}

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

.post-card-body {
  padding: 24px;
}

.post-card-body h3 {
  margin: 12px 0 10px;
  font-size: 19px;
}

.post-card-body p {
  color: var(--ink-muted);
  font-size: 13px;
}

.post-meta {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list strong,
.contact-list a {
  font-size: 15px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal-500);
  background: var(--white);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.pagination .current,
.pagination a:hover {
  background: var(--teal-950);
  border-color: var(--teal-950);
  color: var(--white);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .product-hero-grid,
  .product-content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    min-height: 480px;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .product-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

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

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu a {
    min-height: 50px;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }

  .nav-menu .sub-menu a {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .nav-cta {
    margin-top: 16px;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .cta-actions {
    justify-content: flex-start;
  }

  .cta-contact {
    text-align: left;
  }

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

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container,
  .container--narrow {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding: 44px 0 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 22px;
  }

  .hero-stat strong {
    font-size: 24px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-card--main {
    width: 92%;
    right: 0;
    top: 20px;
  }

  .visual-card--small,
  .visual-badge {
    display: none;
  }

  .product-grid,
  .resource-grid,
  .post-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

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

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

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

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

  .product-visual {
    min-height: 320px;
  }

  .stat-panel {
    padding: 28px;
  }

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

  .stat:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .stat:nth-child(even) {
    padding-left: 0;
  }
}

/* WordPress core alignment */
.alignwide {
  width: min(1400px, calc(100vw - 48px));
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
