/* ==========================================================
   NEXTuino — Design System & Stylesheet  v1.0
   Industrial Arduino PLC brand
   NOTE: Uses Google Fonts (Inter). CN version: swap to
         self-hosted fonts and remove googleapis links.
   ========================================================== */

/* ── 1. TOKENS ────────────────────────────────────────────── */
:root {
  /* Palette */
  --clr-bg:          #07090E;
  --clr-bg-2:        #0C1018;
  --clr-surface:     #101520;
  --clr-surface-2:   #141C28;
  --clr-border:      #1A2336;
  --clr-border-2:    #202C40;

  /* Accent — brand yellow */
  --clr-accent:            #FFDE00;
  --clr-accent-light:      #FFE84D;
  --clr-accent-dark:       #D4B900;
  --clr-accent-glow:       rgba(255, 222, 0, 0.10);
  --clr-accent-glow-strong:rgba(255, 222, 0, 0.22);

  /* Text */
  --clr-text:        #E2E8F0;
  --clr-text-2:      #8899B2;
  --clr-text-muted:  #48566A;

  /* Status */
  --clr-green:  #22C55E;
  --clr-amber:  #F59E0B;
  --clr-red:    #EF4444;

  /* Typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;
  --r-xl: 16px; --r-2xl: 24px;

  /* Motion */
  --t-fast: 140ms ease;
  --t-base: 220ms ease;
  --t-slow: 360ms ease;

  /* Shadow */
  --shadow-sm:     0 1px 4px rgba(0,0,0,.45);
  --shadow-md:     0 4px 16px rgba(0,0,0,.50);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.60);
  --shadow-accent: 0 0 28px rgba(255,222,0,.18);

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── 3. BASE TYPOGRAPHY ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--clr-text);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p  { color: var(--clr-text-2); line-height: 1.75; }
strong { font-weight: 600; color: var(--clr-text); }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: .12em .4em;
  border-radius: var(--r-sm);
  color: var(--clr-accent-light);
}

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section     { padding: var(--sp-24) 0; }
.section-sm  { padding: var(--sp-16) 0; }
.section-dark {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-16);
}
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p  { font-size: var(--text-lg); }

/* ── 5. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,9,14,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--clr-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-2);
  flex: 1;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-2);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-text);
  background: var(--clr-surface);
}
.nav-chevron {
  font-size: 9px;
  transition: transform var(--t-fast);
  margin-top: 1px;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  min-width: 190px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.dropdown a:hover { color: var(--clr-text); background: var(--clr-surface-2); }
.dd-group-label {
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent) !important;
  pointer-events: none;
  padding-top: var(--sp-3) !important;
  border-top: 1px solid var(--clr-border);
  margin-top: var(--sp-1) !important;
}
.dd-sub {
  padding-left: var(--sp-5) !important;
  font-size: var(--text-xs) !important;
  color: var(--clr-text-muted) !important;
}
.dd-sub:hover { color: var(--clr-text-2) !important; }

/* Mega dropdown */
.mega-dropdown {
  left: 0;
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-5);
}
.mega-col { display: flex; flex-direction: column; gap: var(--sp-1); }
.mega-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-1);
  display: block;
}
.mega-link {
  display: block;
  padding: var(--sp-2) var(--sp-3) !important;
  border-radius: var(--r-md);
}
.mega-link strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
}
.mega-link small { /* subtitle under product name in mega menu */
  display: block;
  font-size: var(--text-xs);
  color: var(--clr-text-2);
  margin-top: 1px;
}

/* Nav right */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
/* The .nav-actions inside the <ul> is mobile-only — hide on desktop */
.nav-links > .nav-actions { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn-sm  { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn-lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }

.btn-primary {
  background: var(--clr-accent);
  color: #07090E;
  border-color: var(--clr-accent);
}
.btn-primary:hover {
  background: var(--clr-accent-light);
  border-color: var(--clr-accent-light);
  box-shadow: 0 4px 20px rgba(255,222,0,.40);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border-2);
}
.btn-outline:hover {
  background: var(--clr-surface);
  border-color: var(--clr-accent);
  color: var(--clr-accent-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-accent);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
  gap: var(--sp-1);
}
.btn-ghost:hover { color: var(--clr-accent-light); }
.btn-ghost .arrow { transition: transform var(--t-base); display: inline-block; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── 7. BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid;
}
.badge-blue   { color: #B89800; background: rgba(255,222,0,.10); border-color: rgba(255,222,0,.28); }
.badge-green  { color: var(--clr-green);        background: rgba(34,197,94,.10);  border-color: rgba(34,197,94,.22);  }
.badge-amber  { color: var(--clr-amber);        background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.22); }
.badge-neutral{ color: var(--clr-text-2);       background: var(--clr-surface-2); border-color: var(--clr-border);    }

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(255,222,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255,222,0,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,35,54,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,35,54,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
}
.hero-content { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--clr-accent-glow);
  border: 1px solid rgba(255,222,0,.22);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent-light);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: blink 2.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.5); }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
}
.hero-content h1 .hl {
  background: linear-gradient(135deg, var(--clr-accent-light) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content > p {
  font-size: var(--text-lg);
  color: var(--clr-text-2);
  margin-bottom: var(--sp-8);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.hero-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
}
.hero-check::before {
  content: '✓';
  font-weight: 700;
  color: var(--clr-green);
  font-size: var(--text-xs);
}

/* Hero device illustration */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.device-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 5/4;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-frame::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-light) 50%, transparent 100%);
}

/* ── 9. TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-4) 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-2);
  white-space: nowrap;
}
.trust-item svg { width: 16px; height: 16px; color: var(--clr-accent); flex-shrink: 0; }
.trust-sep { width: 1px; height: 18px; background: var(--clr-border-2); flex-shrink: 0; }

/* ── 10. VALUE GRID ───────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.value-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.value-card:hover {
  border-color: rgba(255,222,0,.4);
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
}
.value-icon {
  width: 48px; height: 48px;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(255,222,0,.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.value-icon svg { width: 24px; height: 24px; color: var(--clr-accent); }
.value-card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-3); }
.value-card p  { font-size: var(--text-sm); }

/* ── 11. PRODUCT FAMILY CARDS ─────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
  /* when used as <a> tag */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card.featured {
  border-color: rgba(255,222,0,.35);
  background: linear-gradient(135deg, var(--clr-surface), rgba(255,222,0,.04));
}
.product-card.featured::before { transform: scaleX(1); }
.product-family {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-2);
}
.product-card h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-3);
}
.product-card > p {
  font-size: var(--text-sm);
  flex: 1;
  margin-bottom: var(--sp-5);
}
.product-specs-mini {
  background: var(--clr-bg-2);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}
.spec-row .sk { color: var(--clr-text-muted); }
.spec-row .sv { color: var(--clr-text); font-weight: 600; }

/* ── 12. TECHNICAL SECTION ────────────────────────────────── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.tech-content h2 { margin-bottom: var(--sp-5); }
.tech-content > p { margin-bottom: var(--sp-8); }
.tech-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.tech-feat {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.tech-feat-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-feat-icon svg { width: 18px; height: 18px; color: var(--clr-accent); }
.tech-feat h4 { font-size: var(--text-sm); margin-bottom: 2px; }
.tech-feat p  { font-size: var(--text-xs); }

.tech-visual {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.tech-visual::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light), transparent);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.stat-block {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.stat-num {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--clr-accent);
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-unit {
  font-size: var(--text-xs);
  color: var(--clr-text-2);
  margin-top: var(--sp-1);
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stat-desc {
  font-size: var(--text-xs);
  color: var(--clr-text-2);
  margin-top: var(--sp-2);
}

/* ── 13. USE CASES ────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.usecase-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base), transform var(--t-base);
}
.usecase-card:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-2px);
}
.usecase-emoji { font-size: 2rem; margin-bottom: var(--sp-4); display: block; }
.usecase-card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-3); }
.usecase-card p  { font-size: var(--text-sm); margin-bottom: var(--sp-4); }
.usecase-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── 14. OEM SECTION ──────────────────────────────────────── */
.oem-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.oem-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--clr-accent) 30%, var(--clr-accent-light) 60%, transparent 100%);
}
.oem-section::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,222,0,.06), transparent 70%);
  pointer-events: none;
}
.oem-content h2 { margin-bottom: var(--sp-4); }
.oem-content > p { font-size: var(--text-lg); margin-bottom: var(--sp-6); }
.oem-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.oem-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
}
.oem-list li::before {
  content: '→';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.oem-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.oem-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}
.oem-stat {
  text-align: center;
  padding: var(--sp-6);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
}
.oem-stat-num {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--clr-accent);
  letter-spacing: -.04em;
  line-height: 1;
}
.oem-stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  margin-top: var(--sp-2);
}

/* ── 15. FAQ ──────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  max-width: 960px;
  margin: 0 auto;
}
.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.open { border-color: rgba(255,222,0,.3); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--t-fast);
}
.faq-question:hover { background: var(--clr-surface-2); }
.faq-toggle {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--clr-accent);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.faq-toggle::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-toggle::after  { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq-item.open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-item.open .faq-answer { max-height: 320px; }
.faq-answer-body {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: 1.75;
}

/* ── 16. CTA BAND ─────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: var(--sp-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,222,0,.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { position: relative; margin-bottom: var(--sp-4); }
.cta-band p  {
  position: relative;
  font-size: var(--text-lg);
  max-width: 540px;
  margin: 0 auto var(--sp-8);
}
.cta-band-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── 17. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-16) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--clr-border);
}
.footer-brand {}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-brand > p {
  font-size: var(--text-sm);
  max-width: 260px;
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}
.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.footer-social {
  display: flex;
  gap: var(--sp-2);
}
.footer-social a {
  width: 34px; height: 34px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.footer-social a:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-glow);
}
.footer-social svg { width: 15px; height: 15px; color: var(--clr-text-2); }

.footer-col h5 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--clr-text);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--clr-accent); }

.footer-bottom {
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--text-xs); color: var(--clr-text-muted); }
.footer-legal {
  display: flex;
  gap: var(--sp-5);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--clr-text-2); }

/* ── 18. PRODUCT PAGE ─────────────────────────────────────── */
.product-hero {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.product-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 75% 50%, rgba(255,222,0,.06) 0%, transparent 65%);
  pointer-events: none;
}
.product-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}
.breadcrumb a { color: var(--clr-text-2); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb-sep { color: var(--clr-border-2); font-size: var(--text-sm); line-height: 1; }
.product-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.product-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--sp-3);
}
.product-tagline {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--clr-text-2);
  margin-bottom: var(--sp-5);
}
.product-hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  max-width: 500px;
}
.product-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.plc-mockup {
  width: 100%;
  max-width: 400px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  overflow: hidden;
  position: relative;
}
.plc-mockup::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light));
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.feat-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base);
}
.feat-item:hover { border-color: rgba(255,222,0,.3); }
.feat-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(255,222,0,.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-ico svg { width: 22px; height: 22px; color: var(--clr-accent); }
.feat-text h4 { font-size: var(--text-base); margin-bottom: var(--sp-2); }
.feat-text p  { font-size: var(--text-sm); }

/* Spec table */
.spec-table-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.spec-table thead th {
  text-align: left;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-border);
}
.spec-table td {
  padding: var(--sp-3) var(--sp-5);
  color: var(--clr-text-2);
  border-bottom: 1px solid var(--clr-border);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--clr-surface-2); }
.spec-table td:first-child { color: var(--clr-text); font-weight: 500; }
.spec-table .spec-section td {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
}

/* Applications */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.app-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base), transform var(--t-base);
}
.app-card:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-2px);
}
.app-card-icon { font-size: 1.8rem; margin-bottom: var(--sp-3); display: block; }
.app-card h4 { font-size: var(--text-base); margin-bottom: var(--sp-2); }
.app-card p  { font-size: var(--text-sm); }

/* Downloads */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.dl-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--t-base), background var(--t-base);
  cursor: pointer;
}
.dl-card:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-glow);
}
.dl-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--clr-surface-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-icon svg { width: 20px; height: 20px; color: var(--clr-accent); }
.dl-info { flex: 1; }
.dl-info strong { display: block; font-size: var(--text-sm); color: var(--clr-text); }
.dl-info span   { font-size: var(--text-xs); color: var(--clr-text-muted); }
.dl-action { font-size: var(--text-xs); font-weight: 600; color: var(--clr-accent); flex-shrink: 0; }

/* Related products */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

/* ── 19. SCROLL ANIMATIONS ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible      { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .26s; }
.delay-4 { transition-delay: .34s; }

/* ── 20. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .tech-layout   { grid-template-columns: 1fr; }
  .oem-section   { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid     { grid-template-columns: repeat(2, 1fr); }
  .downloads-grid{ grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  h2 { font-size: var(--text-3xl); }

  /* Mobile nav */
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    gap: var(--sp-1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open .nav-actions {
    display: flex;
    padding: var(--sp-4) var(--sp-3) 0;
    margin-top: var(--sp-3);
    border-top: 1px solid var(--clr-border);
  }
  .dropdown, .mega-dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--clr-surface-2);
    border-radius: var(--r-md);
    padding: var(--sp-1);
    min-width: unset;
    display: none;
    grid-template-columns: 1fr;
    margin-top: var(--sp-1);
  }
  .nav-item.m-open .dropdown,
  .nav-item.m-open .mega-dropdown { display: flex; flex-direction: column; }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-checks  { justify-content: center; }
  .hero-content { max-width: 100%; }

  /* Grids */
  .value-grid    { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .faq-grid      { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .apps-grid     { grid-template-columns: 1fr; }
  .downloads-grid{ grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stat-grid     { grid-template-columns: repeat(2, 1fr); }
  .oem-stats     { grid-template-columns: repeat(2, 1fr); }

  /* Product hero */
  .product-hero .container { grid-template-columns: 1fr; }
  .product-visual { display: flex; justify-content: center; margin-top: var(--sp-8); }
  .prod-img-card  { max-width: 420px; width: 100%; }

  .trust-sep { display: none; }
}

@media (max-width: 480px) {
  .hero-actions   { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-grid    { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
}

/* ── SOFTWARE PAGE ────────────────────────────────────────── */
.sw-featured {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-8);
}
.sw-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-light) 40%, transparent 100%);
}
.sw-featured::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,222,0,.05), transparent 70%);
  pointer-events: none;
}
.sw-featured-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(255,222,0,.10);
  border: 1px solid rgba(255,222,0,.22);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: var(--sp-5);
}
.sw-featured h2 { font-size: var(--text-4xl); margin-bottom: var(--sp-4); }
.sw-featured > div > p { font-size: var(--text-lg); margin-bottom: var(--sp-8); }
.sw-featured-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Code block */
.sw-code {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.sw-code-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}
.sw-code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-border-2);
}
.sw-code-filename {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--clr-text-muted);
  margin-left: var(--sp-2);
}
.sw-code pre {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  color: var(--clr-text-2);
}
.c-kw  { color: #FFE84D; }           /* keyword — yellow */
.c-fn  { color: #C792EA; }           /* function — purple */
.c-cm  { color: var(--clr-text-muted); font-style: italic; }  /* comment */
.c-str { color: #C3E88D; }           /* string — green */
.c-pp  { color: #FF9580; }           /* preprocessor — coral */
.c-nm  { color: #F78C6C; }           /* number/constant */

/* Software rows */
.sw-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.sw-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.sw-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* Software card */
.sw-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}
.sw-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.sw-card:hover::before { transform: scaleX(1); }
.sw-card:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sw-badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 900;
  font-family: var(--font-mono);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-accent);
  letter-spacing: -.04em;
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}
.sw-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  letter-spacing: -.02em;
}
.sw-card > p { font-size: var(--text-sm); flex: 1; margin-bottom: var(--sp-5); }

/* Responsive — software page */
@media (max-width: 900px) {
  .sw-featured      { grid-template-columns: 1fr; padding: var(--sp-8); }
  .sw-featured h2   { font-size: var(--text-3xl); }
  .sw-row-3         { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sw-row-2,
  .sw-row-3 { grid-template-columns: 1fr; }
}

/* ── PRODUCT DETAIL PAGES ─────────────────────────────────── */
.two-col-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
/* Product FAQ — native details/summary */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: rgba(255,222,0,.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-5) var(--sp-6);
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--clr-accent);
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: 1.75;
  margin: 0;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
}

@media (max-width: 900px) {
  .two-col-specs { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ── PRODUCT IMAGE CARD (ProductLayout hero right col) ───────── */
.prod-img-card {
  width: 100%;
  max-width: 500px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  overflow: hidden;
  position: relative;
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light));
}
.prod-img-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--r-lg);
}

/* ── PRODUCT FEATURES GRID (ProductLayout features section) ──── */
.prod-feat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.prod-feat-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--t-fast);
}
.prod-feat-item:hover { border-color: rgba(255,222,0,.3); }
.prod-feat-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: rgba(255,222,0,.12);
  border: 1px solid rgba(255,222,0,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--clr-accent);
}
.prod-feat-check svg { width: 10px; height: 10px; }

/* ── SPECS TABLE ─────────────────────────────────────────────── */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.specs-table th,
.specs-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
  line-height: 1.6;
}
.specs-table th {
  width: 38%;
  color: var(--clr-text-2);
  font-weight: 500;
  white-space: nowrap;
}
.specs-table td {
  color: var(--clr-text);
  font-weight: 400;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover th,
.specs-table tr:hover td { background: rgba(255,255,255,.025); }

@media (max-width: 900px) {
  .prod-feat-grid { grid-template-columns: 1fr; }
  .prod-img-card  { max-width: 360px; }
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */

/* Hero */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-hero-copy { max-width: 560px; }
.about-lead {
  font-size: var(--text-xl);
  color: var(--clr-text-2);
  line-height: 1.65;
  max-width: 500px;
}
.about-em {
  font-style: italic;
  color: var(--clr-accent);
}

/* Shared image frame */
.about-img-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  position: relative;
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}
.about-img-frame--accent::before {
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light) 50%, transparent);
}
.about-img-frame--light {
  background: var(--clr-surface-2);
}
.about-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--r-lg);
}

/* Split sections (text + image) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-split--reverse { direction: rtl; }
.about-split--reverse > * { direction: ltr; }
.about-split-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.03em;
  margin-bottom: var(--sp-5);
  line-height: 1.2;
}
.about-split-copy p {
  font-size: var(--text-base);
  color: var(--clr-text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.about-split-copy p:last-of-type { margin-bottom: 0; }
.about-split-copy code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--clr-accent);
}
.about-closing {
  font-size: var(--text-lg) !important;
  color: var(--clr-text) !important;
  font-weight: 500;
  border-left: 3px solid var(--clr-accent);
  padding-left: var(--sp-4);
  margin-top: var(--sp-6) !important;
}

/* Values strip */
.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.about-value {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}
.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: rgba(255,222,0,.10);
  border: 1px solid rgba(255,222,0,.22);
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}
.about-value-icon svg { width: 24px; height: 24px; }
.about-value h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}
.about-value p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Open source section */
.about-oss {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-oss-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: var(--sp-5);
}
.about-oss-copy p {
  font-size: var(--text-base);
  color: var(--clr-text-2);
  line-height: 1.75;
}
.about-oss-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.about-oss-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-text);
}
.about-oss-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-hero,
  .about-split,
  .about-oss      { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-split--reverse { direction: ltr; }
  .about-hero-copy { max-width: 100%; }
  .about-lead      { font-size: var(--text-lg); }
}
@media (max-width: 600px) {
  .about-values { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-12);
  align-items: start;
}

/* ── Form wrap ─────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-2);
  letter-spacing: .03em;
}

.form-required {
  color: var(--clr-accent);
  margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form textarea::placeholder {
  color: var(--clr-text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(234,179,8,.15);
}

/* Select wrapper */
.form-select-wrap {
  position: relative;
}

.form-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-select-arrow {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--clr-text-muted);
  pointer-events: none;
}

/* Textarea */
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* Checkbox consent */
.form-group--check { gap: var(--sp-2); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--clr-accent);
  cursor: pointer;
}

.form-submit { align-self: flex-start; }

/* ── Sidebar ───────────────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-info-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.contact-info-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-2);
}

.contact-info-card p {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}

.contact-info-card p:last-of-type {
  margin-bottom: 0;
}

.contact-link {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  margin-top: var(--sp-2);
  transition: color .15s;
}
.contact-link:hover { color: var(--clr-accent); }

.contact-link--secondary {
  color: var(--clr-text-2);
  font-weight: 500;
}
.contact-link--secondary:hover { color: var(--clr-accent); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
  }
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-info-card {
    flex: 1 1 calc(50% - var(--sp-3));
    min-width: 220px;
  }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--sp-6); }
  .contact-sidebar { flex-direction: column; }
  .contact-info-card { flex: unset; }
}
