/* Mark Maker — Global Pharma Engineering
   Light technical palette, premium industrial aesthetic */

:root {
  /* Brand palette */
  --graphite: #0B1117;
  --graphite-soft: #131C25;
  --navy: #102338;
  --navy-2: #1A3253;
  --pharma: #1D6FE8;
  --pharma-deep: #155BC6;
  --cyan: #20C7E8;
  --cyan-soft: #E6F8FC;
  --white: #F8FAFC;
  --paper: #FFFFFF;
  --metal: #D9E1EA;
  --metal-2: #ECF1F6;
  --metal-3: #F3F6FA;
  --signal: #F5A524;
  --ink: #0B1117;
  --ink-2: #2A3744;
  --ink-3: #5A6878;
  --ink-4: #8A97A6;
  --line: #E3E9F0;
  --line-2: #EEF2F7;

  /* Typography */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--pharma);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}

/* Display headings — tight, technical */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
}
.display-xl { font-size: clamp(48px, 6.4vw, 92px); font-weight: 500; letter-spacing: -0.035em; }
.display-lg { font-size: clamp(40px, 4.8vw, 64px); letter-spacing: -0.03em; }
.display-md { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.025em; line-height: 1.08; }
.display-sm { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }

.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 180ms cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--pharma); }
.btn-pharma {
  background: var(--pharma);
  color: white;
}
.btn-pharma:hover { background: var(--pharma-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark {
  background: rgba(255,255,255,0.06);
  color: white;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.btn-dark-solid {
  background: white;
  color: var(--graphite);
}
.btn-dark-solid:hover { background: var(--cyan-soft); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform 180ms;
}
.btn:hover .arrow { transform: translateX(2px); }

/* Tag / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper);
}
.chip.dark {
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.03);
}
.chip.cyan {
  border-color: rgba(32,199,232,0.3);
  color: var(--cyan);
  background: rgba(32,199,232,0.06);
}

/* Section frames */
.section { padding: 120px 0; position: relative; }
.section.dark { background: var(--graphite); color: white; }
.section.dark .display { color: white; }
.section.dark .lede { color: rgba(255,255,255,0.7); }
.section.dark .eyebrow { color: rgba(255,255,255,0.5); }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Blueprint grid background */
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}
.blueprint-grid.dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Crosshair tick — small + at corners */
.tick { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.tick::before, .tick::after {
  content: ""; position: absolute; background: currentColor; opacity: 0.5;
}
.tick::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.tick::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

/* Divider with mono label */
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.section-label::before {
  content: ""; width: 6px; height: 6px; background: var(--pharma); border-radius: 50%;
}
.section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.section.dark .section-label { color: rgba(255,255,255,0.5); }
.section.dark .section-label::after { background: rgba(255,255,255,0.1); }

/* Spec table */
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-row .k {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spec-row .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}
.dark .spec-row { border-bottom-color: rgba(255,255,255,0.08); }
.dark .spec-row .k { color: rgba(255,255,255,0.5); }
.dark .spec-row .v { color: white; }

/* Hotspot pulse */
.hotspot-pulse {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(32,199,232,0.5);
  animation: hp-pulse 2.4s infinite cubic-bezier(.4,0,.6,1);
  cursor: pointer;
  display: grid; place-items: center;
}
.hotspot-pulse::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: white;
}
@keyframes hp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(32,199,232,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(32,199,232,0); }
  100% { box-shadow: 0 0 0 0 rgba(32,199,232,0); }
}

/* Soft cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 200ms, transform 200ms;
}
.card:hover { border-color: var(--ink-4); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs .tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: -0.005em;
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tabs .tab.active {
  color: var(--ink);
  border-bottom-color: var(--pharma);
}
.tabs .tab:hover:not(.active) { color: var(--ink-2); }
.dark .tabs { border-bottom-color: rgba(255,255,255,0.1); }
.dark .tabs .tab { color: rgba(255,255,255,0.5); }
.dark .tabs .tab.active { color: white; border-bottom-color: var(--cyan); }

/* Helpers */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* Scroll snap horizontal */
.h-snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding-bottom: 8px; }
.h-snap > * { scroll-snap-align: start; flex-shrink: 0; }
.h-snap::-webkit-scrollbar { height: 6px; }
.h-snap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.dark .h-snap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* Subtle line draw on enter */
@keyframes line-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .product-hero-model {
    height: min(72vw, 440px) !important;
    min-height: 300px;
  }
}
