/* ===================================================================
   OPENAUTOSAMPLER - SAM GAS AUTOSAMPLER STYLESHEET
   Clean Scientific-Instrument Aesthetic • Responsive • Zero Build Steps
   =================================================================== */

:root {
  /* Color Palette - Precision Scientific Instrument Theme */
  --color-bg-base: #060b14;
  --color-bg-surface: #0b1324;
  --color-bg-card: #101c33;
  --color-bg-card-hover: #152442;
  --color-bg-card-elevated: #1a2c4e;
  --color-bg-glass: rgba(11, 19, 36, 0.85);

  --color-border-subtle: rgba(255, 255, 255, 0.09);
  --color-border-light: rgba(255, 255, 255, 0.16);
  --color-border-accent: rgba(0, 210, 255, 0.4);

  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  --color-cyan: #00e5ff;
  --color-cyan-glow: rgba(0, 229, 255, 0.25);
  --color-blue: #0284c7;
  --color-indigo: #6366f1;
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-amber: #f59e0b;
  --color-purple: #a855f7;

  /* Gradients */
  --gradient-laser: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  --gradient-laser-text: linear-gradient(135deg, #5eead4 0%, #38bdf8 50%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, rgba(20, 35, 65, 0.7) 0%, rgba(11, 19, 36, 0.95) 100%);
  --gradient-hero-overlay: radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.12) 0%, rgba(6, 11, 20, 0.95) 75%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Layout & Spacing */
  --container-max: 1240px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows & Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, #060b14, #080f1d, #060b14);
  background-size: 32px 32px, 100% 100%;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

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

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background-color: rgba(11, 19, 36, 0.45);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-laser);
  color: #04101e;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  color: #020914;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-cyan);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.btn-outline-cyan:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--color-cyan);
  color: #ffffff;
}

/* Status Indicator Dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
  border: 1px solid var(--color-cyan);
  border-radius: var(--radius-sm);
  color: var(--color-cyan);
}

.brand-text span {
  color: var(--color-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.78) 0%, rgba(6, 11, 20, 0.88) 55%, var(--color-bg-primary) 100%),
    radial-gradient(circle at 75% 25%, rgba(0, 229, 255, 0.16) 0%, transparent 60%),
    url('./assets/agricultural_fields_panoramic.jpg') center top / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: var(--gradient-laser-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 2rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-val {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Hero Media Display */
.hero-media-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform var(--transition-smooth);
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-media-card:hover .hero-image-wrap img {
  transform: scale(1.03);
}

.hero-overlay-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-meta h4 {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: 0.15rem;
}

.overlay-meta p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-family: var(--font-mono);
}

/* ===================================================================
   SECTION 1: WHY SAM?
   =================================================================== */
.pioneer-banner {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(16, 28, 51, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.pioneer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-laser);
}

.pioneer-text-group {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.pioneer-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
}

.pioneer-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--color-text-primary);
}

.pioneer-content p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.pioneer-content p strong {
  color: #ffffff;
}

.pioneer-content .picarro-highlight {
  color: var(--color-cyan);
  font-weight: 600;
}

.pioneer-media-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: var(--shadow-md);
  background: #020914;
}

.pioneer-media-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s ease;
}

.pioneer-media-card:hover .pioneer-media-img {
  transform: scale(1.05);
}

.pioneer-media-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(6, 11, 20, 0.92) 0%, rgba(6, 11, 20, 0.72) 70%, transparent 100%);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a5f3fc;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 1024px) {
  .pioneer-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pioneer-banner {
    padding: 1.5rem;
  }

  .pioneer-text-group {
    flex-direction: column;
    gap: 1rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 229, 255, 0.08);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--color-cyan);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-feature-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.25rem;
}

.card-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.card-feature-list li:last-child {
  margin-bottom: 0;
}

.card-feature-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-emerald);
}

/* Comparison Callout Matrix */
.comparison-banner {
  background: linear-gradient(135deg, rgba(16, 28, 51, 0.9) 0%, rgba(11, 19, 36, 0.95) 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.comparison-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-laser);
}

.comp-header {
  text-align: center;
  margin-bottom: 2rem;
}

.comp-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.comp-table-wrap {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comp-table th, 
.comp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.comp-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.comp-table th.highlight-col {
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-left: 1px solid rgba(0, 229, 255, 0.2);
  border-right: 1px solid rgba(0, 229, 255, 0.2);
}

.comp-table td.highlight-col {
  background: rgba(0, 229, 255, 0.04);
  border-left: 1px solid rgba(0, 229, 255, 0.15);
  border-right: 1px solid rgba(0, 229, 255, 0.15);
  font-weight: 600;
  color: var(--color-text-primary);
}

.comp-badge-good {
  color: #34d399;
  font-weight: 600;
}

.comp-badge-warn {
  color: #fbbf24;
}

.comp-badge-bad {
  color: #f87171;
}

/* ===================================================================
   SECTION 2: HOW SAM WORKS & KEY FEATURES
   =================================================================== */
.process-diagram-wrap {
  margin-bottom: 4.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-4px);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.step-timing {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Feature Deep-Dive Grid */
.features-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-box-body h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.feature-box-body p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.feature-box-body ul {
  list-style: none;
}

.feature-box-body li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

/* Instrument Gallery Strip */
.gallery-strip {
  margin-top: 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem 1.25rem;
  background: var(--color-bg-card);
}

.gallery-caption h5 {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-family: var(--font-mono);
}

/* ===================================================================
   SECTION 3: TECHNICAL SPECIFICATIONS TABLE
   =================================================================== */
.specs-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.specs-tabs-header {
  display: flex;
  background: rgba(6, 11, 20, 0.7);
  border-bottom: 1px solid var(--color-border-subtle);
  overflow-x: auto;
}

.specs-tab-btn {
  padding: 1.15rem 1.85rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.specs-tab-btn:hover {
  color: var(--color-text-primary);
}

.specs-tab-btn.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.specs-tab-content {
  display: none;
  padding: 2rem;
}

.specs-tab-content.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.specs-table td {
  padding: 1.15rem 1rem;
  font-size: 0.96rem;
}

.specs-table td.spec-name {
  width: 32%;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-table td.spec-val {
  width: 48%;
  color: var(--color-text-secondary);
}

.specs-table td.spec-note {
  width: 20%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.specs-callout-footer {
  background: rgba(0, 229, 255, 0.03);
  border-top: 1px solid var(--color-border-subtle);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.specs-downloads {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   SECTION 4: COMPATIBLE ANALYZERS & LAB APPLICATIONS
   =================================================================== */
.analyzers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.analyzer-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.analyzer-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md);
}

.analyzer-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.analyzer-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.analyzer-type {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.analyzer-gases {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.gas-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
}

.gas-pill.isotope {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.analyzer-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.analyzer-specs-mini {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mini-spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.mini-spec-row:last-child {
  margin-bottom: 0;
}

.mini-spec-row span:last-child {
  font-family: var(--font-mono);
  color: var(--color-text-primary);
}

/* Applications Showcase */
.apps-showcase-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.15);
}

.app-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #020914;
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-img {
  transform: scale(1.06);
}

.app-card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  z-index: 2;
}

.app-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-card-body h4 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
  color: var(--color-text-primary);
  line-height: 1.35;
}

.app-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Interactive Calculator Widget */
.calculator-banner {
  margin-top: 4.5rem;
  background:
    linear-gradient(135deg, rgba(6, 11, 20, 0.90) 0%, rgba(16, 28, 51, 0.92) 100%),
    url('./assets/wheat_background.jpg') center center / cover no-repeat;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.calc-info p {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-control-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.calc-control-group input[type="range"] {
  width: 100%;
  accent-color: var(--color-cyan);
  cursor: pointer;
}

.calc-control-group .range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.calc-results-card {
  background: rgba(6, 11, 20, 0.8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.calc-stat {
  display: flex;
  flex-direction: column;
}

.calc-stat-val {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.calc-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================================================
   SECTION 5: SCIENTIFIC PUBLICATIONS
   =================================================================== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.pub-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pub-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md);
}

.pub-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pub-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.08);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pub-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  font-style: italic;
}

.pub-abstract {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

/* Citation Copy Box */
.citation-box {
  background: rgba(6, 11, 20, 0.75);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.citation-header h4 {
  font-size: 1rem;
  color: var(--color-text-primary);
}

.citation-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
}

/* ===================================================================
   SECTION 6: CONTACT & INQUIRY SECTION
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
}

.email-contact-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.email-primary-channel {
  margin-bottom: 1.25rem;
}

.email-address-link {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: inline-block;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.email-actions-wrap {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.email-guide-box {
  background: rgba(6, 11, 20, 0.6);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.email-guide-box h5 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.email-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.email-guide-list li:last-child {
  margin-bottom: 0;
}

.email-guide-list svg {
  flex-shrink: 0;
  color: var(--color-cyan);
  margin-top: 3px;
}

.pilot-note-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.87rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pilot-note-icon {
  flex-shrink: 0;
  color: var(--color-cyan);
  margin-top: 2px;
}

.contact-meta-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-channel:last-child {
  margin-bottom: 0;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.channel-details h4 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.channel-details p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.channel-details a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.faq-card {
  background: rgba(11, 19, 36, 0.6);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.faq-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-q {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
}

.faq-a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--color-cyan);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(6, 11, 20, 0.7);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
  background: rgba(6, 11, 20, 0.95);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-help {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 0.35rem;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-privacy-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Success notification message */
.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--color-border-subtle);
  padding: 4.5rem 0 2.5rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.85rem;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--color-text-muted);
}

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

/* ===================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .features-deep-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-form-panel {
    padding: 1.75rem;
  }

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

  .specs-table td.spec-name {
    width: 40%;
  }

  .specs-table td.spec-val {
    width: 60%;
  }

  .specs-table td.spec-note {
    display: none;
  }
}
