/* ============================================================
   Trueboon Softech – Healthcare Management System (HMS)
   Modern, responsive, pixel-perfect stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --brand-50:  #ecfdf8;
  --brand-100: #d1fae9;
  --brand-200: #a7f3d8;
  --brand-300: #6ee7c6;
  --brand-400: #34d3ae;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;

  --navy-800: #0e2434;
  --navy-900: #0a1a27;
  --navy-950: #071320;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;

  --bg: #f6faf9;
  --bg-alt: #ffffff;
  --line: #e2e8f0;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --red-500: #ef4444;

  --grad-brand: linear-gradient(120deg, #0d9488, #14b8a6 55%, #22d3ee);
  --grad-navy: linear-gradient(135deg, #0a1a27 0%, #0e2434 55%, #115e59 130%);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Plus Jakarta Sans", sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, .10), 0 4px 8px -4px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px -12px rgba(13, 94, 85, .18);
  --shadow-glow: 0 12px 40px -8px rgba(20, 184, 166, .45);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --header-h: 74px;
  --container: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.22;
  font-weight: 700;
}

::selection { background: var(--brand-600); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eef2f5; }
::-webkit-scrollbar-thumb { background: #b8c4cd; border-radius: 8px; border: 2px solid #eef2f5; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }

/* ---------- Layout utilities ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--grad-navy);
  border-radius: 0;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #b7c9d6; }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  letter-spacing: -.5px;
  margin: 14px 0 14px;
}
.section-head p { font-size: 1.06rem; color: var(--ink-500); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 7px 16px;
  border-radius: 999px;
}
.section-dark .eyebrow { background: rgba(20, 184, 166, .12); border-color: rgba(20, 184, 166, .35); color: var(--brand-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -8px rgba(20, 184, 166, .55); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 1200;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--ink-900); letter-spacing: -.3px; }
.brand-text span { color: var(--brand-600); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-600);
  border-radius: 8px;
  transition: color .25s ease, background .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.active { color: var(--brand-700); }
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: var(--brand-50);
  z-index: 1101;
}
.nav-toggle span {
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: var(--brand-700);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(44px, 6vw, 84px)) 0 clamp(60px, 7vw, 96px);
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 480px; height: 480px; background: #0d9488; top: -160px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #155e75; bottom: -180px; left: -120px; }
.blob-3 { width: 300px; height: 300px; background: #14b8a6; top: 40%; left: 30%; opacity: .25; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(20, 184, 166, .4);
  color: #a7f3d8;
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-400);
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-400);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -.7px;
  margin: 22px 0 18px;
}
.grad-text {
  background: linear-gradient(120deg, #5eead4, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.08rem; color: #b7c9d6; max-width: 560px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: #d7e5ee;
}
.hero-tags svg { width: 17px; height: 17px; color: var(--brand-400); }

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

.hero-contact-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .92rem;
  color: #b7c9d6;
}
.hero-contact-line svg { width: 18px; height: 18px; color: var(--brand-400); }
.hero-contact-line a { color: #e7f2f8; font-weight: 600; transition: color .25s ease; }
.hero-contact-line a:hover { color: var(--brand-300); }
.dot-sep { opacity: .5; }

/* Hero dashboard mockup */
.hero-visual { position: relative; }
.dash-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-title { display: flex; align-items: center; gap: 12px; }
.dash-logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
}
.dash-logo svg { width: 22px; height: 22px; }
.dash-title strong { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.dash-title small { color: #93b1c2; font-size: .76rem; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; color: #a7f3d8;
  background: rgba(20, 184, 166, .15);
  border: 1px solid rgba(20, 184, 166, .4);
  padding: 5px 13px; border-radius: 999px;
}

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.dash-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.dash-stat strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.5rem; }
.dash-stat small { color: #93b1c2; font-size: .74rem; }

.dash-chart {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.dash-chart-label { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #b7c9d6; margin-bottom: 12px; }
.dash-chart-label strong { color: #5eead4; font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 74px; }
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  opacity: .9;
  transition: transform .3s ease;
}
.dash-card:hover .bars span { transform: scaleY(1.04); transform-origin: bottom; }

.dash-rows { display: flex; flex-direction: column; gap: 10px; }
.dash-row {
  display: flex; align-items: center; gap: 12px;
  font-size: .86rem; color: #d7e5ee;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 11px 14px;
}
.dash-row span:first-child { flex-shrink: 0; }
.dash-row em {
  margin-left: auto;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: #5eead4;
  background: rgba(20, 184, 166, .14);
  padding: 3px 10px;
  border-radius: 999px;
}
.row-dot { width: 9px; height: 9px; border-radius: 50%; }
.row-dot.teal { background: #2dd4bf; }
.row-dot.amber { background: var(--amber-400); }
.row-dot.blue { background: #38bdf8; }
.row-dot.purple { background: #a78bfa; }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700;
  color: var(--ink-700);
  background: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--brand-600); }
.chip-1 { top: -20px; left: -26px; }
.chip-2 { bottom: -20px; right: -18px; animation-delay: 2.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--grad-brand);
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #fff;
  letter-spacing: -.5px;
}
.stat span { color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 22px;
}
.products-grid { grid-template-columns: repeat(3, 1fr); }
.range-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 20px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--grad-brand); color: #fff; transform: scale(1.06) rotate(-3deg); }

.card h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -.2px; }
.card p { font-size: .94rem; color: var(--ink-500); }

/* Linkable product card */
.card-title-link { transition: color .25s ease; }
.card-title-link:hover { color: var(--brand-600); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-600);
  transition: color .25s ease;
}
.card-more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.card:hover .card-more { color: var(--brand-700); }
.card:hover .card-more svg { transform: translateX(4px); }

/* Range cards */
.range-card { text-align: center; padding-top: 40px; }
.range-num {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-100);
  line-height: 1;
  transition: color .3s ease;
}
.range-card:hover .range-num { color: var(--brand-300); }
.range-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
  transition: all .3s ease;
}
.range-icon svg { width: 30px; height: 30px; }
.range-card:hover .range-icon { background: var(--grad-brand); color: #fff; border-color: transparent; transform: scale(1.08) rotate(6deg); box-shadow: var(--shadow-glow); }
.range-card h3 { font-size: 1.02rem; }

/* ---------- Focus areas ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.focus-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.focus-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.focus-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.focus-icon svg { width: 28px; height: 28px; }
.focus-card h3 { font-size: 1rem; margin-bottom: 10px; }
.focus-card p { font-size: .88rem; color: var(--ink-500); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.tab-btn {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-600);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 24px;
  transition: all .28s ease;
}
.tab-btn:hover { border-color: var(--brand-400); color: var(--brand-700); transform: translateY(-2px); }
.tab-btn.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.tab-panel { display: none; animation: fadeUp .45s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.panel-icon svg { width: 26px; height: 26px; }
.panel-head h3 { font-size: 1.18rem; margin-bottom: 2px; }
.panel-head p { font-size: .9rem; color: var(--ink-500); }
.count-pill {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 6px 14px;
  border-radius: 999px;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 18px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all .28s ease;
}
.module-list li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-400);
  flex-shrink: 0;
  transition: background .3s ease;
}
.module-list li:hover {
  border-color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--brand-700);
}
.module-list li:hover::before { background: var(--brand-600); }

/* ---------- Module search ---------- */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 36px;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.search-wrap:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.search-wrap svg { width: 20px; height: 20px; color: var(--ink-500); flex-shrink: 0; }
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  min-width: 0;
}
.search-count {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all .28s ease;
}
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--brand-400);
  flex-shrink: 0;
  transition: all .3s ease;
}
.chip:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.chip:hover::before { background: var(--brand-600); transform: rotate(45deg); }
.chip.hidden-chip { display: none; }
.no-results { text-align: center; font-weight: 600; color: var(--ink-500); padding: 20px 0; }

/* ---------- Benefits ---------- */
.benefits-grid { grid-template-columns: repeat(5, 1fr); }
.benefit-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.benefit-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(20, 184, 166, .5);
}
.benefit-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(20, 184, 166, .16);
  border: 1px solid rgba(20, 184, 166, .4);
  color: var(--brand-300);
  margin-bottom: 16px;
  transition: transform .3s ease;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card:hover .benefit-icon { transform: scale(1.1) rotate(-5deg); }
.benefit-card h3 { color: #fff; font-size: .98rem; margin-bottom: 8px; }
.benefit-card p { font-size: .86rem; color: #a9becb; }

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.why-left h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -.5px;
  margin: 16px 0 16px;
}
.why-left > p { color: var(--ink-500); font-size: 1.04rem; margin-bottom: 30px; }

.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.why-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.why-check {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
}
.why-check svg { width: 19px; height: 19px; }
.why-item h3 { font-size: 1rem; margin-bottom: 3px; }
.why-item p { font-size: .88rem; color: var(--ink-500); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 26px;
  align-items: start;
}
.contact-info {
  background: var(--grad-navy);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
a.info-item:hover { background: rgba(255, 255, 255, .11); border-color: rgba(20, 184, 166, .5); transform: translateY(-3px); }
.info-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.info-icon svg { width: 22px; height: 22px; }
.info-item small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7fd6c8; margin-bottom: 2px; }
.info-item strong { color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.45; word-break: break-word; }
.contact-info .btn { margin-top: 8px; }

/* Form */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--bg);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.form-group select { 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='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13);
}
.form-group input.error, .form-group textarea.error { border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.form-note { font-size: .82rem; color: var(--ink-500); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9db4c2; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: .92rem; margin: 18px 0 20px; max-width: 330px; line-height: 1.7; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.footer-contact a { transition: color .25s ease; }
.footer-contact a:hover { color: var(--brand-300); }
.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 18px;
  letter-spacing: .4px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; transition: color .25s ease, padding-left .25s ease; }
.footer-col a:hover { color: var(--brand-300); padding-left: 5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  font-size: .84rem;
}
.footer-address { color: #74899a; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 21px; height: 21px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered delays */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }
.reveal:nth-child(7) { transition-delay: .48s; }
.reveal:nth-child(8) { transition-delay: .56s; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .range-grid { grid-template-columns: repeat(3, 1fr); }
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hide the header CTA to keep the 7-link nav from overflowing */
  .nav-cta { display: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .module-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    background: #fff;
    padding: calc(var(--header-h) + 16px) 26px 30px;
    box-shadow: -20px 0 60px rgba(10, 26, 39, .25);
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
    overflow-y: auto;
    z-index: 1100;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .nav-link { padding: 13px 16px; font-size: 1.02rem; border-radius: 11px; }
  .nav-link::after { display: none; }
  .nav-link.active, .nav-link:hover { background: var(--brand-50); }
  .nav-cta { display: inline-flex; width: 100%; margin-top: 14px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .products-grid, .range-grid, .focus-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .module-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head p { font-size: .98rem; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .products-grid, .range-grid, .focus-grid, .benefits-grid, .chip-grid { grid-template-columns: 1fr; }
  .hero-tags { flex-direction: column; align-items: flex-start; gap: 8px; }
  .float-chip { display: none; }
  .search-wrap { border-radius: 18px; flex-wrap: wrap; padding: 10px 14px; }
  .search-count { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
