/* ============================================================
   PlantUptime — Design System v2
   Palette: Deep Navy + Electric Blue + Amber Gold
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Backgrounds */
  --clr-bg:        #04091c;
  --clr-surface:   #080f26;
  --clr-surface-2: #0d1630;
  --clr-surface-3: #142040;

  /* Borders */
  --clr-border:        #1a2d50;
  --clr-border-bright: #2a4575;

  /* Primary accent — electric blue */
  --clr-blue:       #3b82f6;
  --clr-blue-light: #60a5fa;
  --clr-blue-dark:  #1d4ed8;

  /* Secondary accent — amber gold */
  --clr-amber:       #f59e0b;
  --clr-amber-light: #fbbf24;
  --clr-amber-dark:  #d97706;

  /* Tertiary — cyan */
  --clr-cyan:       #06b6d4;
  --clr-cyan-light: #22d3ee;

  /* Violet */
  --clr-violet:       #8b5cf6;
  --clr-violet-light: #a78bfa;

  /* State */
  --clr-success: #10b981;
  --clr-warn:    #f59e0b;
  --clr-danger:  #ef4444;

  /* Text */
  --clr-text:       #e8eeff;
  --clr-text-muted: #7a94c0;
  --clr-text-dim:   #3a5278;
  --clr-white:      #ffffff;

  /* Gradients */
  --grad-blue:    linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  --grad-amber:   linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --grad-cyan:    linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  --grad-hero:    linear-gradient(160deg, #080f26 0%, #04091c 60%, #060c20 100%);
  --grad-card:    linear-gradient(145deg, rgba(14,24,48,.9) 0%, rgba(8,15,38,.95) 100%);
  --grad-text:    linear-gradient(135deg, #60a5fa, #a78bfa);
  --grad-text-amber: linear-gradient(135deg, #fbbf24, #f97316);

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Mono', monospace;

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

  /* Spacing */
  --space-section: 5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,.5);
  --shadow-md:   0 4px 16px rgba(0,0,0,.6);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.7);
  --shadow-blue: 0 0 32px rgba(59,130,246,.25);
  --shadow-amber:0 0 32px rgba(245,158,11,.25);
  --shadow-glow: 0 0 60px rgba(59,130,246,.15);

  --max-wide:  1280px;
  --max-prose: 75ch;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--clr-blue-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--clr-cyan-light); }
a:focus-visible { outline: 2px solid var(--clr-blue); outline-offset: 3px; border-radius: 3px; }
ul, ol { padding-left: 1.5rem; }
li { margin-top: .4rem; }
strong { color: var(--clr-white); font-weight: 700; }

/* Code */
code, kbd {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .1em .45em;
  color: var(--clr-cyan-light);
}
pre {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
pre code { background: none; border: none; padding: 0; color: var(--clr-cyan-light); }

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--clr-border); padding: .65rem 1rem; text-align: left; font-size: var(--sz-sm); }
th { background: var(--clr-surface-3); font-family: var(--font-display); font-weight: 600; color: var(--clr-blue-light); text-transform: uppercase; letter-spacing: .05em; font-size: var(--sz-xs); }
tr:nth-child(even) { background: rgba(8,15,38,.5); }
tr:hover { background: rgba(59,130,246,.06); }

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-white);
}
h1 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--sz-4xl)); margin-top: 3rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, var(--sz-2xl)); margin-top: 2rem; }
h4 { font-size: var(--sz-xl); margin-top: 1.5rem; }
p { margin-top: 1rem; }

/* === UTILITIES === */
.container { max-width: var(--max-wide); margin-inline: auto; padding-inline: 1.5rem; }
.prose { max-width: var(--max-prose); }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-amber { background: var(--grad-text-amber); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-blue { color: var(--clr-blue-light); }
.text-amber { color: var(--clr-amber-light); }
.text-cyan { color: var(--clr-cyan-light); }
.text-muted { color: var(--clr-text-muted); }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--clr-blue); color: var(--clr-white);
  padding: .6rem 1.2rem; border-radius: var(--radius-md);
  font-weight: 700; z-index: 300; font-family: var(--font-display);
}
.skip-link:focus { top: 1rem; }

/* === SITE HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4,9,28,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(59,130,246,.12);
}
.site-header .inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  color: var(--clr-white); text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: var(--clr-white); }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.site-logo .logo-accent { color: var(--clr-blue-light); }

/* Nav */
.site-nav {
  display: flex; align-items: center; gap: .15rem; flex-wrap: wrap;
}
.site-nav a {
  color: var(--clr-text-muted);
  font-size: var(--sz-sm);
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: var(--radius-md);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--clr-white); background: rgba(59,130,246,.1); text-decoration: none; }
.site-nav a.active { color: var(--clr-blue-light); }
.site-nav a.nav-products { color: var(--clr-amber-light); }
.site-nav a.nav-products:hover { background: rgba(245,158,11,.1); }
.nav-cta {
  background: var(--grad-blue); color: #fff !important;
  font-weight: 700 !important; padding: .5rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
  transition: opacity .15s, transform .15s !important;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); background: var(--grad-blue) !important; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--clr-border);
  color: var(--clr-text); padding: .45rem .75rem;
  border-radius: var(--radius-md); cursor: pointer; font-size: var(--sz-lg);
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: .8rem 0;
  font-size: var(--sz-sm);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb li + li::before { content: '/'; margin-right: .25rem; color: var(--clr-text-dim); }
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-blue-light); }
.breadcrumb [aria-current] { color: var(--clr-text); }

/* === HERO === */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(59,130,246,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,.06) 0%, transparent 50%);
  pointer-events: none;
}
/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow,
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--sz-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--clr-blue-light);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  padding: .35rem 1rem; border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--clr-blue-light); border-radius: 50%; }

/* Hero tick-strip (row of checkmark items) */
.hero .feature-strip {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  padding: 0; background: none; border: none; border-radius: 0;
}
.hero .feature-strip:hover { background: none; border-color: transparent; }
.feature-item {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--sz-sm); color: var(--clr-text-muted); font-weight: 500;
}
.feature-item svg { color: var(--clr-blue-light); flex-shrink: 0; }

.hero-title { margin-top: 0; letter-spacing: -.02em; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--sz-xl));
  color: var(--clr-text-muted); margin-top: 1.25rem;
  max-width: 58ch; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; align-items: center; }

/* Split hero */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-visual {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-blue);
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--sz-base);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer; transition: all .2s;
  border: none; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--grad-blue); color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(59,130,246,.55); transform: translateY(-2px); color: #fff; }
.btn-amber {
  background: var(--grad-amber); color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
}
.btn-amber:hover { box-shadow: 0 6px 28px rgba(245,158,11,.5); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent; color: var(--clr-blue-light);
  border: 2px solid rgba(59,130,246,.4);
}
.btn-outline:hover { border-color: var(--clr-blue); background: rgba(59,130,246,.08); color: var(--clr-blue-light); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--clr-white); transform: translateY(-1px); }
.btn-sm { font-size: var(--sz-sm); padding: .5rem 1.1rem; }
.btn-lg { font-size: var(--sz-lg); padding: 1rem 2.25rem; }

/* === GLASS CARDS === */
.card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.4), transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover { border-color: rgba(59,130,246,.4); box-shadow: var(--shadow-blue); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
}
.card-icon-amber { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.2); }
.card-icon-cyan  { background: rgba(6,182,212,.12);  border-color: rgba(6,182,212,.2); }
.card-icon-violet{ background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); }

.card-title { font-family: var(--font-display); font-size: var(--sz-lg); font-weight: 700; margin-top: 0; color: var(--clr-white); }
.card-desc  { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .5rem; line-height: 1.6; }
.card-meta  { font-size: var(--sz-xs); color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.card-link  { display: flex; align-items: center; gap: .35rem; color: var(--clr-blue-light); font-size: var(--sz-sm); font-weight: 600; margin-top: 1.25rem; transition: gap .2s; }
.card:hover .card-link { gap: .6rem; }

/* Feature card — larger prominent card */
.card-feature {
  background: linear-gradient(145deg, var(--clr-surface-2), var(--clr-surface));
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 2.5rem;
}
.card-feature-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .75rem; border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.badge-blue   { background: rgba(59,130,246,.15); color: var(--clr-blue-light); border: 1px solid rgba(59,130,246,.25); }
.badge-amber  { background: rgba(245,158,11,.15); color: var(--clr-amber-light); border: 1px solid rgba(245,158,11,.25); }
.badge-cyan   { background: rgba(6,182,212,.15);  color: var(--clr-cyan-light);  border: 1px solid rgba(6,182,212,.25); }
.badge-violet { background: rgba(139,92,246,.15); color: var(--clr-violet-light);border: 1px solid rgba(139,92,246,.25); }

/* Article card */
.article-card {
  display: flex; flex-direction: column;
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.article-card:hover { border-color: rgba(59,130,246,.4); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.article-card .meta { font-size: var(--sz-xs); color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.article-card h3 { font-family: var(--font-display); font-size: var(--sz-base); margin-top: 0; color: var(--clr-white); }
.article-card p { font-size: var(--sz-sm); color: var(--clr-text-muted); flex: 1; margin-top: .5rem; }
.article-card .read-more { margin-top: 1rem; font-size: var(--sz-sm); font-weight: 600; color: var(--clr-blue-light); display: flex; align-items: center; gap: .35rem; }

/* Product card */
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-4px); box-shadow: var(--shadow-amber); }
.product-card-image {
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; min-height: 180px;
}
.product-card-body { padding: 1.5rem; }
.product-card-sku { font-size: var(--sz-xs); color: var(--clr-blue-light); font-family: var(--font-mono); margin-bottom: .4rem; }
.product-card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--clr-white); }
.product-card-spec { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .4rem; }
.product-card-price { font-family: var(--font-display); font-size: var(--sz-xl); font-weight: 700; color: var(--clr-amber-light); margin-top: .75rem; }
.product-card-actions { padding: 0 1.5rem 1.5rem; display: flex; gap: .75rem; }

/* === SECTION STYLES === */
.section { padding: var(--space-section) 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.04); }
.section-dark { background: var(--clr-surface); border-radius: var(--radius-xl); padding: 3rem; }
.section-eyebrow {
  font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--clr-blue-light); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--clr-blue); }
.section-eyebrow.amber-eye { color: var(--clr-amber-light); }
.section-eyebrow.amber-eye::before { background: var(--clr-amber); }
.section-title { margin-top: 0; letter-spacing: -.02em; }
.section-desc { color: var(--clr-text-muted); font-size: var(--sz-lg); max-width: 58ch; margin-top: .75rem; }

/* Stats */
.stat-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 2.5rem 0; }
.stat-box {
  flex: 1 1 140px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.stat-box::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-blue);
}
.stat-val { font-family: var(--font-display); font-size: var(--sz-4xl); font-weight: 800; color: var(--clr-blue-light); line-height: 1; }
.stat-val.amber { color: var(--clr-amber-light); }
.stat-val.cyan  { color: var(--clr-cyan-light); }
.stat-label { font-size: var(--sz-xs); color: var(--clr-text-muted); margin-top: .5rem; text-transform: uppercase; letter-spacing: .07em; }

/* === ANSWER BOX (AEO) === */
.answer-box {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.05));
  border: 1px solid rgba(59,130,246,.3);
  border-left: 4px solid var(--clr-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  position: relative;
}
.answer-box .answer-label,
.answer-box-label {
  font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--clr-blue-light); margin-bottom: .6rem;
  font-family: var(--font-display); display: block;
}
.answer-box p { margin-top: 0; }

/* === CALLOUTS === */
.callout {
  border-radius: var(--radius-md); padding: 1rem 1.25rem; margin: 1.75rem 0;
  display: flex; gap: .85rem; align-items: flex-start;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.7; }
.callout p { margin: 0; font-size: var(--sz-sm); }
.callout-tip,
.callout-info  { background: rgba(59,130,246,.08);  border: 1px solid rgba(59,130,246,.25); }
.callout-warn,
.callout-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); }
.callout-danger{ background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); }
.callout-success{ background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); }

/* === TABLE OF CONTENTS === */
.toc {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.toc-title { font-family: var(--font-display); font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-blue-light); margin-bottom: 1rem; }
.toc ol { font-size: var(--sz-sm); }
.toc a { color: var(--clr-text-muted); }
.toc a:hover { color: var(--clr-blue-light); }

/* === FAQ === */
.faq-list { margin: 1.75rem 0; }
.faq-item { border: 1px solid var(--clr-border); border-radius: var(--radius-md); margin-bottom: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; background: var(--clr-surface-2); border: none;
  color: var(--clr-text); font-family: var(--font-display); font-size: var(--sz-base);
  font-weight: 600; text-align: left; padding: 1.1rem 1.4rem;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; transition: background .15s;
}
.faq-question:hover { background: var(--clr-surface-3); }
.faq-question[aria-expanded="true"] { color: var(--clr-blue-light); background: rgba(59,130,246,.08); }
.faq-icon { flex-shrink: 0; transition: transform .25s; color: var(--clr-text-dim); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--clr-blue-light); }
.faq-answer { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-answer.open { max-height: 800px; padding: 1rem 1.4rem; }
.faq-answer p:first-child { margin-top: 0; }

/* === PILLAR LAYOUT (sidebar) === */
.pillar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.pillar-sidebar { position: sticky; top: 5.5rem; }
.pillar-nav {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 1.4rem;
}
.pillar-nav h3 { font-family: var(--font-display); font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-text-muted); margin-top: 0; margin-bottom: .85rem; }
.pillar-nav ul { list-style: none; padding: 0; }
.pillar-nav li { margin-bottom: .2rem; }
.pillar-nav a { font-size: var(--sz-sm); color: var(--clr-text-muted); display: block; padding: .4rem .6rem; border-radius: var(--radius-sm); transition: all .15s; }
.pillar-nav a:hover { color: var(--clr-white); background: rgba(59,130,246,.1); text-decoration: none; }

/* === ARTICLE STYLES === */
.article-header { padding: 2.5rem 0 2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: 1rem; }
.tag {
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2);
  color: var(--clr-blue-light); padding: .25rem .65rem; border-radius: var(--radius-full);
  font-size: var(--sz-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.tag-amber  { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.2); color: var(--clr-amber-light); }
.tag-cyan   { background: rgba(6,182,212,.12);  border-color: rgba(6,182,212,.2);  color: var(--clr-cyan-light); }
.tag-violet { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); color: var(--clr-violet-light); }

.article-body h2 { border-top: 1px solid var(--clr-border); padding-top: 2.5rem; margin-top: 3.5rem; }
.article-body h2:first-of-type { border-top: none; }
.article-body ul,
.article-body ol { margin: 1rem 0 1.25rem; padding-left: 1.75rem; }
.article-body li { margin-top: .55rem; color: var(--clr-text-muted); line-height: 1.7; }
.article-body li strong { color: var(--clr-white); }
.article-body ul li::marker { color: var(--clr-blue-light); }
.article-body ol li::marker { color: var(--clr-blue-light); font-weight: 700; font-family: var(--font-display); }
.article-body p + ul,
.article-body p + ol { margin-top: .5rem; }

/* Related section */
.related-section { border-top: 1px solid var(--clr-border); padding-top: 3.5rem; margin-top: 5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.75rem; }

/* === CALCULATOR / TOOL === */
.calc-wrapper {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 2.5rem; margin: 2.5rem 0;
  position: relative; overflow: hidden;
}
.calc-wrapper::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-blue);
}
.calc-title { font-family: var(--font-display); font-size: var(--sz-2xl); margin-top: 0; }
.calc-form { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.form-row { display: grid; gap: .5rem; }
.form-label { font-family: var(--font-display); font-size: var(--sz-sm); font-weight: 600; color: var(--clr-text); display: flex; justify-content: space-between; align-items: baseline; }
.form-hint { font-size: var(--sz-xs); color: var(--clr-text-muted); font-weight: 400; }
.form-input {
  background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); color: var(--clr-text);
  font-size: var(--sz-base); padding: .7rem 1rem;
  width: 100%; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.form-input:focus { outline: none; border-color: var(--clr-blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-select {
  appearance: none;
  background: var(--clr-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a94c0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  color: var(--clr-text); font-size: var(--sz-base);
  padding: .7rem 2.5rem .7rem 1rem; width: 100%; cursor: pointer;
  transition: border-color .15s; font-family: var(--font-body);
}
.form-select:focus { outline: none; border-color: var(--clr-blue); }
.calc-result {
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 1.75rem;
  display: none;
}
.calc-result.visible { display: block; }
.result-primary { font-family: var(--font-display); font-size: var(--sz-5xl); font-weight: 800; color: var(--clr-blue-light); line-height: 1; }
.result-label { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .35rem; }
.result-breakdown { margin-top: 1.5rem; border-top: 1px solid var(--clr-border); padding-top: 1.25rem; }
.result-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: var(--sz-sm); border-bottom: 1px solid rgba(255,255,255,.04); }
.result-row:last-child { border-bottom: none; }
.result-row span:last-child { font-weight: 600; color: var(--clr-white); }

/* === CHECKLISTS === */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: var(--sz-sm);
}
.checklist li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--clr-border-bright); border-radius: 4px; margin-top: 1px;
}

/* === SPEC TABLE === */
.spec-table th { width: 40%; }
.spec-val { font-family: var(--font-mono); color: var(--clr-blue-light); }

/* === PRODUCT SPEC CARD === */
.spec-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.spec-card-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.spec-card-icon {
  width: 72px; height: 72px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--clr-surface-3); border: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* === HERO BANNER (for product category pages) === */
.category-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  position: relative; overflow: hidden;
}
.category-hero::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,.07), transparent 70%);
}

/* === FOOTER === */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 2rem; margin-top: 6rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border);
}
.footer-brand p { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .75rem; max-width: 30ch; line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--clr-surface-2); border: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: center; color: var(--clr-text-muted); font-size: .9rem; transition: all .2s; }
.footer-social a:hover { background: var(--clr-blue); border-color: var(--clr-blue); color: #fff; }
.footer-col h4 { font-family: var(--font-display); font-size: var(--sz-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: var(--sz-sm); color: var(--clr-text-dim); transition: color .15s; }
.footer-col a:hover { color: var(--clr-blue-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem;
  font-size: var(--sz-xs); color: var(--clr-text-dim);
}
.footer-bottom a { color: var(--clr-text-dim); }
.footer-bottom a:hover { color: var(--clr-blue-light); }

/* === HOMEPAGE SPECIAL SECTIONS === */

/* Feature strip — horizontal layout with icon left */
.feature-strip {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 1.5rem; background: var(--clr-surface-2);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  transition: all .2s;
}
.feature-strip:hover { border-color: rgba(59,130,246,.3); background: var(--clr-surface-3); }
.feature-strip-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature-strip-body h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-top: 0; color: var(--clr-white); }
.feature-strip-body p { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .35rem; }

/* Metrics bar */
.metrics-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--clr-surface-2); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.metric-item {
  padding: 2rem; text-align: center; border-right: 1px solid var(--clr-border);
  position: relative;
}
.metric-item:last-child { border-right: none; }
.metric-item::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--grad-blue); border-radius: 2px 2px 0 0; }
.metric-num,
.metric-val { font-family: var(--font-display); font-size: var(--sz-4xl); font-weight: 800; color: var(--clr-white); line-height: 1; }
.metric-num span,
.metric-val span { font-size: var(--sz-2xl); color: var(--clr-blue-light); }
.metric-label { font-size: var(--sz-xs); color: var(--clr-text-muted); margin-top: .4rem; text-transform: uppercase; letter-spacing: .07em; }

/* Category grid with large tiles */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}
.silo-tile {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 2rem;
  display: flex; flex-direction: column;
  transition: all .25s;
  text-decoration: none;
  position: relative; overflow: hidden;
}
.silo-tile::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(59,130,246,.06), transparent 70%);
  border-radius: 0 var(--radius-xl) 0 0;
}
.silo-tile:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.4); box-shadow: var(--shadow-blue); text-decoration: none; }
.silo-tile-large { grid-column: span 2; }
.silo-tile-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.silo-tile h3 { font-family: var(--font-display); font-size: var(--sz-xl); font-weight: 700; margin-top: 0; color: var(--clr-white); }
.silo-tile p { font-size: var(--sz-sm); color: var(--clr-text-muted); margin-top: .5rem; flex: 1; }
.silo-tile-count { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--sz-xs); color: var(--clr-blue-light); margin-top: 1.25rem; }

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--clr-surface-2), var(--clr-surface));
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 3.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59,130,246,.08), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--clr-text-muted); max-width: 55ch; margin-inline: auto; }

/* Breadcrumb trail */
.process-steps { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.step-pill {
  display: flex; align-items: center; gap: .5rem;
  background: var(--clr-surface-2); border: 1px solid var(--clr-border);
  border-radius: var(--radius-full); padding: .5rem 1rem;
  font-size: var(--sz-sm); font-weight: 500;
}
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-blue); color: #fff;
  font-size: var(--sz-xs); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.05));
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.highlight-box h3 { margin-top: 0; color: var(--clr-blue-light); }

/* === PRINT === */
@media print {
  .site-header, .site-footer, .pillar-sidebar, .toc, .related-section { display: none; }
  body { background: white; color: #111; }
  a { color: #111; }
  .answer-box { border-left: 4px solid #333; background: #f5f5f5; }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .silo-grid { grid-template-columns: repeat(2, 1fr); }
  .silo-tile-large { grid-column: span 2; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .metrics-bar .metric-item:nth-child(2) { border-right: none; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar-layout { grid-template-columns: 1fr; }
  .pillar-sidebar { position: static; }
}
@media (max-width: 768px) {
  .silo-grid { grid-template-columns: 1fr; }
  .silo-tile-large { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--clr-surface); padding: 1rem; border-bottom: 1px solid var(--clr-border); flex-direction: column; gap: .25rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  :root { --space-section: 3.5rem; }
  h2 { margin-top: 2rem; }
}

/* === GSAP ANIMATION HELPERS === */
.gsap-fade { opacity: 0; }
.gsap-up  { opacity: 0; transform: translateY(30px); }
.gsap-left{ opacity: 0; transform: translateX(-30px); }
.gsap-right{ opacity: 0; transform: translateX(30px); }
.gsap-scale{ opacity: 0; transform: scale(.92); }
.counter-num { display: inline-block; }

/* Animated gradient border */
@keyframes borderGlow {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
.card-glow:hover::before { animation: borderGlow 2s ease-in-out infinite; }

/* Pulse dot */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}
.pulse-dot { animation: pulse 2.5s ease-in-out infinite; }

/* Shimmer on loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
