/* ============================================================
   DATACRAFT — DESERT TECH DESIGN SYSTEM
   ============================================================ */

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

/* === TOKENS === */
:root {
  /* Core palette — Desert Tech */
  --bg:            #fff8f6;
  --surface:       #ffffff;
  --surface-low:   #fff1eb;
  --primary:       #92400e;   /* terracotta — buttons, actions, brand */
  --primary-dk:    #712c00;   /* deep terracotta — hover/pressed */
  --primary-lt:    #ffdbcb;   /* warm blush — light tint */
  --secondary:     #665f3d;   /* sand-olive */
  --secondary-lt:  #eae0b5;   /* sand — secondary surfaces */
  --tertiary:      #663400;   /* ochre-brown */
  --tertiary-lt:   #ffdcc3;   /* pale ochre */

  /* Semantic accents — kept for product badges */
  --blue:          #5B8BF5;
  --blue-lt:       #DCE9FF;
  --teal:          #2EC4A3;
  --teal-lt:       #D4F5EC;
  --amber:         #d97706;
  --amber-lt:      #FFF3D4;
  --violet:        #7C3AED;
  --violet-lt:     #EDE9FE;
  --indigo:        #3730A3;
  --indigo-lt:     #E0E7FF;
  --slate:         #475569;
  --slate-lt:      #F1F5F9;
  --emerald:       #059669;
  --emerald-lt:    #D1FAE5;
  --pink:          #DB2777;
  --pink-lt:       #FCE7F3;

  /* Text & structure */
  --dark:          #392e2a;   /* inverse-surface — dark section bg */
  --dark-surface:  #4a3a35;
  --text:          #231a15;   /* on-surface */
  --muted:         #55433a;   /* on-surface-variant */
  --border:        #dcc1b6;   /* outline-variant — warm sand */
  --outline:       #887269;   /* outline — medium sand */

  /* Typography */
  --f-display: 'Space Grotesk', 'Inter', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing (8px base) */
  --s1: .25rem;  --s2: .5rem;  --s3: .75rem;  --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;  --s20: 5rem;   --s24: 6rem;

  /* Radii — Soft-Geometric */
  --r-sm:   .125rem;   /*  2px */
  --r-md:   .375rem;   /*  6px */
  --r-lg:   .5rem;     /*  8px — cards */
  --r-xl:   .75rem;    /* 12px — large containers */
  --r-full: 9999px;

  /* Shadows — "Dust Shadow" (terracotta tint, wide blur) */
  --sh-sm: 0 1px 4px  rgba(146,64,14,.06);
  --sh-md: 0 4px 16px rgba(146,64,14,.08);
  --sh-lg: 0 8px 32px rgba(146,64,14,.10);
  --sh-xl: 0 16px 48px rgba(146,64,14,.13);

  /* Motion */
  --ease: 250ms ease;
  --ease-fast: 150ms ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
p { max-width: 66ch; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem);   font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem);  font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
.mono { font-family: var(--f-mono); }

/* === LAYOUT === */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--s6); }
.section { padding: var(--s24) 0; }
.section-header { text-align: center; margin-bottom: var(--s12); }
.section-header h2 { margin-bottom: var(--s3); }
.section-header .lead { color: var(--muted); font-size: 1.125rem; margin: 0 auto; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: .625rem 1.25rem; border-radius: var(--r-full);
  font-family: var(--f-display); font-weight: 600; font-size: .9375rem;
  transition: all var(--ease); white-space: nowrap; line-height: 1;
}
/* Primary — solid terracotta fill + matching border */
.btn-primary {
  background: var(--primary); color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 2px 8px rgba(146,64,14,.25);
}
.btn-primary:hover {
  background: var(--primary-dk); border-color: var(--primary-dk);
  box-shadow: 0 4px 20px rgba(146,64,14,.35);
  transform: translateY(-1px);
}
/* Secondary — sand fill, terracotta text + border */
.btn-secondary {
  background: var(--secondary-lt); color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-lt); }
/* Ghost — warm outline */
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }
/* Outline — for dark sections */
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .875rem; font-size: .8125rem; }
.btn-icon { gap: var(--s3); }
.arrow { transition: transform var(--ease-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* === BADGES === */
.badge {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: .2rem .65rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.badge-defense   { background: var(--blue-lt);    color: #1D4ED8; }
.badge-security  { background: #DBEAFE;            color: #1E3A8A; }
.badge-fintech   { background: var(--primary-lt);  color: var(--primary-dk); }
.badge-safety    { background: var(--amber-lt);    color: #92400E; }
.badge-education { background: var(--teal-lt);     color: #0F766E; }
.badge-transport { background: #FED7AA;             color: #C2410C; }
.badge-industrial{ background: var(--slate-lt);    color: var(--slate); }
.badge-enterprise{ background: var(--indigo-lt);   color: var(--indigo); }
.badge-opensource{ background: var(--violet-lt);   color: var(--violet); }
.badge-web3      { background: var(--emerald-lt);  color: var(--emerald); }
.badge-csr       { background: var(--pink-lt);     color: var(--pink); }
.badge-labs      { background: var(--secondary-lt); color: var(--secondary); }

/* === NAVIGATION === */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,248,246,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
#header.scrolled { box-shadow: var(--sh-md); }

.navbar {
  display: flex; align-items: center;
  height: 72px; gap: var(--s6);
}

.logo {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--f-display); font-size: 1.375rem; font-weight: 700;
  color: var(--primary); flex-shrink: 0;
}
.logo-mark { width: 32px; height: 32px; }

.nav-links {
  display: flex; align-items: center; gap: var(--s1); margin-left: auto;
}
.nav-link {
  padding: var(--s2) var(--s3); color: var(--muted);
  font-size: .9375rem; font-weight: 500; border-radius: var(--r-md);
  transition: all var(--ease-fast);
}
.nav-link:hover { color: var(--text); background: rgba(146,64,14,.05); }

/* Mega-menu */
.nav-has-mega { position: relative; }
.mega-trigger {
  display: flex; align-items: center; gap: var(--s1);
  padding: var(--s2) var(--s3); color: var(--muted);
  font-size: .9375rem; font-weight: 500; border-radius: var(--r-md);
  transition: all var(--ease-fast);
}
.mega-trigger:hover { color: var(--text); background: rgba(146,64,14,.05); }
.mega-trigger svg { transition: transform var(--ease-fast); }
.nav-has-mega:hover .mega-trigger svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: calc(100% + .5rem);
  left: 50%; transform: translateX(-50%) translateY(8px);
  width: 720px; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  border: 1px solid var(--border); padding: var(--s8);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s6); opacity: 0; visibility: hidden;
  transition: all var(--ease); pointer-events: none;
}
.nav-has-mega:hover .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0); pointer-events: all;
}
.mega-col-title {
  font-size: .6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  margin-bottom: var(--s3); padding: 0 var(--s3);
}
.mega-col-title + .mega-col-title { margin-top: var(--s5); }
.mega-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) var(--s3); border-radius: var(--r-md);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: all var(--ease-fast);
}
.mega-link:hover { background: var(--surface-low); color: var(--primary); }
.mega-link .badge { font-size: .65rem; }

.nav-cta { margin-left: var(--s4); }

/* Mobile nav */
.mobile-btn {
  display: none; padding: var(--s2); color: var(--text);
  border-radius: var(--r-md); margin-left: auto;
}
.mobile-nav {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--surface); padding: var(--s6);
  overflow-y: auto; z-index: 999;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-section-title {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  margin: var(--s6) 0 var(--s3);
}
.mobile-section-title:first-child { margin-top: 0; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s2); border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-cta { margin-top: var(--s6); width: 100%; justify-content: center; }

/* === HERO === */
.hero {
  padding-top: calc(72px + var(--s20)); padding-bottom: 0;
  position: relative; overflow: hidden;
}
/* Subtle dot grid — terracotta tint on parchment */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(146,64,14,.07) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s12); align-items: center;
  padding-bottom: var(--s20);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--primary-lt); color: var(--primary-dk);
  border-radius: var(--r-full); font-size: .875rem; font-weight: 700;
  margin-bottom: var(--s6);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero h1 { margin-bottom: var(--s6); }
/* Warm gradient — terracotta → amber → sand-olive */
.gradient-word {
  font-style: normal;
  background: linear-gradient(120deg, #92400e 0%, #d97706 50%, #665f3d 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1875rem; color: var(--muted); line-height: 1.75;
  margin-bottom: var(--s8);
}
.hero-actions { display: flex; gap: var(--s4); flex-wrap: wrap; }

/* Constellation */
.constellation-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.constellation { width: 100%; max-width: 500px; height: auto; overflow: visible; }

/* Lines — warm terracotta tint */
.c-line {
  stroke: rgba(146,64,14,.16); stroke-width: 1.5; fill: none;
  stroke-dasharray: 5 8; animation: dash 28s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -260; } }

.c-glow { animation: c-glow 3.5s ease-in-out infinite; }
@keyframes c-glow {
  0%, 100% { opacity: .5; }
  50%       { opacity: .9; }
}

.c-node {
  animation: c-float 5s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes c-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.cn1 { animation-duration: 6s;   animation-delay:  0s; }
.cn2 { animation-duration: 5s;   animation-delay: -1s; }
.cn3 { animation-duration: 7s;   animation-delay: -2s; }
.cn4 { animation-duration: 5.5s; animation-delay: -3s; }
.cn5 { animation-duration: 6.5s; animation-delay: -.5s; }
.cn6 { animation-duration: 4.5s; animation-delay: -1.5s; }
.cn7 { animation-duration: 7s;   animation-delay: -4s; }
.cn8 { animation-duration: 5.5s; animation-delay: -2.5s; }

/* Stats bar — warm dark */
.stats-bar { background: var(--dark); }
.stats-inner {
  display: flex; align-items: center; justify-content: space-around;
  padding: var(--s8) var(--s6);
}
.stat { text-align: center; }
.stat-n { display: block; font-family: var(--f-display); font-size: 2.25rem; font-weight: 700; color: var(--primary-lt); line-height: 1; }
.stat-l { display: block; font-size: .75rem; color: rgba(255,255,255,.45); margin-top: var(--s1); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-sep { width: 1px; height: 44px; background: rgba(255,255,255,.12); }

/* === PRODUCTS === */
.products-section { padding: var(--s24) 0; }

.filter-row {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  justify-content: center; margin-bottom: var(--s10);
}
.chip {
  padding: .4rem 1rem; border-radius: var(--r-full);
  font-family: var(--f-display); font-size: .875rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--border);
  transition: all var(--ease-fast);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(146,64,14,.28);
}

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s6);
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4);
  transition: all var(--ease); position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--primary));
  transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.product-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--outline); }
.product-card:hover::before { transform: scaleX(1); }
.product-card[hidden] { display: none; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.625rem;
  background: var(--card-icon-bg, var(--primary-lt));
}
.card-name { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 700; margin-bottom: .125rem; }
.card-desc { font-size: .9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--border);
}
.card-cta {
  font-size: .875rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 4px; transition: gap var(--ease-fast);
}
.card-cta:hover { gap: 8px; }

/* === STAND FOR === */
.stand-for {
  background: var(--dark); padding: var(--s24) 0;
  position: relative; overflow: hidden;
}
.stand-for::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='30' stroke='%23fff' stroke-width='1' opacity='.04'/%3E%3Ccircle cx='40' cy='40' r='18' stroke='%23fff' stroke-width='1' opacity='.04'/%3E%3Ccircle cx='40' cy='40' r='6' fill='%23fff' opacity='.04'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.stand-for .container { position: relative; }
.stand-for h2 { color: #fff; text-align: center; margin-bottom: var(--s3); }
.stand-for .lead { color: rgba(255,255,255,.5); text-align: center; margin: 0 auto var(--s16); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.pillar {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: var(--s8);
  transition: all var(--ease);
}
.pillar:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.pillar-icon { font-size: 2.25rem; margin-bottom: var(--s4); }
.pillar h3 { color: #fff; margin-bottom: var(--s3); }
.pillar p { color: rgba(255,255,255,.58); font-size: .9375rem; line-height: 1.75; max-width: none; }

/* === OPEN SOURCE === */
.oss-section {
  padding: var(--s24) 0;
  background: linear-gradient(180deg, var(--surface-low) 0%, var(--bg) 60%);
}
.oss-label {
  display: inline-block; padding: var(--s2) var(--s5);
  background: var(--secondary-lt); color: var(--secondary);
  border-radius: var(--r-full); font-size: .8125rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s4);
}
.oss-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s10); }
.oss-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s8);
  transition: all var(--ease);
}
.oss-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.oss-card.csr-card {
  border-color: #F9A8D4;
  background: linear-gradient(140deg, #FFF5F9 0%, var(--surface) 60%);
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center;
}
.oss-card-icon { font-size: 2.5rem; margin-bottom: var(--s4); }
.oss-card h3 { font-size: 1.375rem; margin-bottom: var(--s3); }
.oss-card p { color: var(--muted); font-size: .9375rem; line-height: 1.75; margin-bottom: var(--s6); }
.oss-links { display: flex; gap: var(--s3); flex-wrap: wrap; }
.oss-meta { font-family: var(--f-mono); font-size: .8125rem; color: var(--muted); margin-top: var(--s4); }
.csr-highlight { background: var(--pink-lt); border-radius: var(--r-lg); padding: var(--s6); }
.csr-highlight h4 { color: var(--pink); margin-bottom: var(--s3); }
.csr-highlight p { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: none; }

/* === LABS === */
.labs-section { padding: var(--s24) 0; }
.labs-label {
  display: inline-block; padding: var(--s2) var(--s5);
  background: var(--secondary-lt); color: var(--secondary);
  border-radius: var(--r-full); font-size: .8125rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s4);
}
.labs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s10); }
.lab-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s8);
  display: flex; gap: var(--s6); align-items: flex-start;
  transition: all var(--ease);
}
.lab-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.lab-icon { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.lab-body h3 { margin-bottom: var(--s2); }
.lab-body p { color: var(--muted); font-size: .9375rem; line-height: 1.7; max-width: none; }
.lab-tag {
  display: inline-block; margin-top: var(--s4);
  font-size: .8125rem; font-weight: 700; color: var(--secondary);
  background: var(--secondary-lt); border: 1px solid var(--border);
  padding: .2rem .75rem; border-radius: var(--r-full);
}

/* === BLOG PREVIEW === */
.blog-preview { padding: var(--s24) 0; background: var(--bg); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s6); margin-top: var(--s10);
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--ease);
}
.blog-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--outline); }
.blog-thumb {
  height: 160px; display: flex;
  align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.blog-body { padding: var(--s6); flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: var(--s2); }
.blog-title { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; margin-bottom: var(--s3); flex: 1; }
.blog-meta { font-size: .8125rem; color: var(--muted); display: flex; gap: var(--s3); align-items: center; }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.blog-read-more { display: inline-flex; align-items: center; gap: var(--s1); font-size: .875rem; font-weight: 700; color: var(--primary); margin-top: var(--s4); }
.blog-read-more:hover { gap: var(--s2); }

/* === CTA === */
.cta-section {
  padding: var(--s24) 0;
  background: linear-gradient(135deg, var(--primary-lt) 0%, var(--secondary-lt) 100%);
}
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-inner h2 { margin-bottom: var(--s4); }
.cta-inner > p { color: var(--muted); margin: 0 auto var(--s10); font-size: 1.125rem; }

/* Input fields — bottom-border "schematic" style per spec */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s4); text-align: left;
}
.f-field { display: flex; flex-direction: column; gap: var(--s2); }
.f-field.full { grid-column: 1 / -1; }
.f-field label {
  font-family: var(--f-display); font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.f-field input,
.f-field select,
.f-field textarea {
  padding: .75rem 1rem;
  border: none; border-bottom: 1.5px solid var(--outline);
  border-radius: 0;
  font-family: var(--f-body); font-size: .9375rem;
  background: var(--surface-low); transition: border-color var(--ease-fast); width: 100%;
  color: var(--text);
}
.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 2px 0 rgba(146,64,14,.15);
  background: var(--surface);
}
.f-field textarea { resize: vertical; min-height: 120px; }
.form-submit { grid-column: 1 / -1; text-align: center; padding-top: var(--s2); }
.cta-note { text-align: center; margin-top: var(--s6); color: var(--muted); font-size: .9375rem; }
.cta-note a { color: var(--primary); font-weight: 600; }
.cta-note a:hover { text-decoration: underline; }

/* === FOOTER === */
footer {
  background: var(--dark);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s10); margin-bottom: var(--s10);
  padding-bottom: var(--s10); border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: var(--primary-lt); margin-bottom: var(--s4); }
.footer-brand p { color: rgba(255,255,255,.42); font-size: .875rem; line-height: 1.8; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--f-display); font-size: .6875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.32);
  margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col a { color: rgba(255,255,255,.58); font-size: .9rem; transition: color var(--ease-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: rgba(255,255,255,.32); font-size: .8125rem; }
.footer-legal { display: flex; gap: var(--s6); }
.footer-legal a { color: rgba(255,255,255,.32); font-size: .8125rem; transition: color var(--ease-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* === PRODUCT PAGES === */
.product-hero {
  padding-top: calc(72px + var(--s20)); padding-bottom: var(--s20);
  background: linear-gradient(180deg, var(--hero-bg, var(--primary-lt)) 0%, var(--bg) 100%);
}
.product-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s12); align-items: center;
}
.product-hero-eyebrow { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.product-hero h1 { margin-bottom: var(--s5); }
.product-hero .lead { font-size: 1.125rem; color: var(--muted); margin-bottom: var(--s8); line-height: 1.75; }
.product-hero-actions { display: flex; gap: var(--s4); flex-wrap: wrap; }
.product-hero-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s8);
  box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; font-size: 6rem;
}

.features-section { padding: var(--s24) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s10); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6);
  transition: all var(--ease);
}
.feature-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: var(--s4); }
.feature-card h4 { margin-bottom: var(--s3); }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: none; }

.specs-section { padding: var(--s20) 0; background: var(--surface-low); }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s10); }
.spec-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6);
}
.spec-block h4 { margin-bottom: var(--s4); color: var(--primary); }
.spec-list { display: flex; flex-direction: column; gap: var(--s2); }
.spec-item {
  display: flex; align-items: flex-start; gap: var(--s3);
  font-size: .9rem; color: var(--muted);
}
.spec-item::before { content: '→'; color: var(--primary); flex-shrink: 0; font-weight: 700; }

.product-cta {
  padding: var(--s20) 0;
  background: var(--dark); text-align: center;
}
.product-cta h2 { color: #fff; margin-bottom: var(--s4); }
.product-cta p { color: rgba(255,255,255,.55); margin: 0 auto var(--s8); font-size: 1.0625rem; }
.product-cta-btns { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* === BLOG PAGES === */
.blog-hero { padding-top: calc(72px + var(--s16)); padding-bottom: var(--s12); }
.blog-hero h1 { margin-bottom: var(--s4); }
.blog-hero p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }
.blog-filter-row { display: flex; gap: var(--s2); margin: var(--s8) 0; flex-wrap: wrap; }
.blog-grid-main {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s6); margin-top: var(--s8);
}

/* Post page */
.post-hero { padding-top: calc(72px + var(--s12)); padding-bottom: var(--s12); max-width: 780px; margin: 0 auto; }
.post-hero .blog-cat { font-size: .875rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s4); }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: var(--s6); }
.post-meta { display: flex; align-items: center; gap: var(--s4); color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.post-author { display: flex; align-items: center; gap: var(--s2); }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-lt); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.post-body { max-width: 780px; margin: 0 auto; padding: var(--s12) var(--s6); }
.post-body h2 { font-size: 1.75rem; margin: var(--s10) 0 var(--s4); }
.post-body h3 { font-size: 1.375rem; margin: var(--s8) 0 var(--s3); color: var(--primary); }
.post-body p { margin-bottom: var(--s5); font-size: 1.0625rem; line-height: 1.85; color: var(--text); max-width: none; }
.post-body ul, .post-body ol { margin: 0 0 var(--s5) var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.post-body li { font-size: 1.0625rem; line-height: 1.75; color: var(--text); list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body blockquote { border-left: 4px solid var(--primary); padding-left: var(--s6); margin: var(--s8) 0; }
.post-body blockquote p { font-size: 1.125rem; font-style: italic; color: var(--muted); }
.post-body pre { background: var(--dark); border-radius: var(--r-lg); padding: var(--s6); margin: var(--s6) 0; overflow-x: auto; }
.post-body code { font-family: var(--f-mono); font-size: .875rem; color: var(--tertiary-lt); }
.post-body p code { background: var(--secondary-lt); color: var(--secondary); padding: .1em .4em; border-radius: var(--r-sm); font-size: .875em; }
.post-callout { background: var(--primary-lt); border: 1px solid rgba(146,64,14,.2); border-radius: var(--r-lg); padding: var(--s6); margin: var(--s8) 0; }
.post-callout p { margin: 0; color: var(--primary-dk); }

/* === ABOUT PAGE === */
.about-hero { padding-top: calc(72px + var(--s20)); padding-bottom: var(--s20); }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); align-items: center; }
.about-hero h1 { margin-bottom: var(--s6); }
.about-hero p { color: var(--muted); font-size: 1.125rem; line-height: 1.8; }
.about-map { background: var(--primary-lt); border-radius: var(--r-lg); padding: var(--s12); text-align: center; font-size: 6rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s10); }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); transition: all var(--ease); }
.value-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.value-icon { font-size: 2rem; margin-bottom: var(--s4); }
.value-card h4 { margin-bottom: var(--s3); }
.value-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: none; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); margin-top: var(--s10); }
.team-card { text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto var(--s4); background: var(--primary-lt); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.team-name { font-weight: 700; margin-bottom: var(--s1); }
.team-role { color: var(--muted); font-size: .875rem; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-auto { margin-top: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .constellation-wrap { display: none; }
  .hero h1 { text-align: center; }
  .hero-eyebrow { margin: 0 auto var(--s6); }
  .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats-inner { flex-wrap: wrap; gap: var(--s6); }
  .stat-sep { display: none; }
  .pillars { grid-template-columns: 1fr; gap: var(--s4); }
  .oss-card.csr-card { grid-column: span 1; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-visual { min-height: 200px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .labs-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid-main { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s4); text-align: center; }
  .footer-legal { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats-inner { flex-direction: column; align-items: center; gap: var(--s6); }
  .filter-row { gap: var(--s1); }
  .chip { font-size: .8125rem; padding: .35rem .85rem; }
}

/* ─── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--dark);
  padding: var(--s24) 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(146,64,14,.1) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.newsletter-eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-lt);
  margin-bottom: var(--s4);
}
.newsletter-section h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--s4);
}
.newsletter-section .lead {
  color: rgba(255,255,255,.55);
  margin-bottom: var(--s8);
}
.newsletter-form-row {
  display: flex;
  gap: var(--s3);
  max-width: 480px;
  margin: 0 auto var(--s4);
}
.newsletter-form-row input[type="email"] {
  flex: 1;
  padding: .75rem 1.125rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 1rem;
  font-family: var(--f-body);
  outline: none;
  transition: border-color var(--ease);
}
.newsletter-form-row input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form-row input[type="email"]:focus { border-color: var(--primary-lt); background: rgba(255,255,255,.1); }
.newsletter-fine {
  font-size: .8125rem;
  color: rgba(255,255,255,.32);
  line-height: 1.6;
}
.newsletter-fine a { color: rgba(255,255,255,.48); text-decoration: underline; }
.newsletter-success-msg {
  display: none;
  color: var(--primary-lt);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.5rem 0;
}
.newsletter-success-msg.show { display: block; }

/* Inline newsletter widget — bottom of blog posts */
.newsletter-widget {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: var(--s10) var(--s12);
  margin: var(--s12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(146,64,14,.1) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  border-radius: var(--r-lg);
}
.newsletter-widget > * { position: relative; }
.newsletter-widget h3 { color: #fff; margin-bottom: var(--s2); }
.newsletter-widget p { color: rgba(255,255,255,.55); font-size: .9375rem; margin-bottom: var(--s6); }

@media (max-width: 768px) {
  .newsletter-form-row { flex-direction: column; }
  .newsletter-widget { padding: var(--s8) var(--s6); }
}
