/* ==========================================================================
   Ingenious Solutions — Maker's Workshop v6
   Direction B: Blueprint grid, mechanical transitions, typographic hierarchy
   Palette: Blue (primary), Orange (heat accent — sparse)
   No lasers. No particles. No cliché. Just honest industrial craft.
   ========================================================================== */

/* ===== Reset & Tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light theme — blueprint shop floor */
  --blue-900: #1d4ed8;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #fff7ed;

  --gray-950: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --gray-50:  #fafafa;
  --white:    #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --snap: 0.15s step-end;
  --fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --stiff: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);

  --border: 1px solid var(--gray-200);
  --border-strong: 1px solid var(--gray-300);
  --radius: 4px;
  --radius-md: 6px;
}

body.light-mode,
body:not(.dark-mode) {
  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --bg-elevated: var(--white);
  --bg-strong: var(--gray-100);
  --text: var(--gray-950);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --border-color: var(--gray-200);
  --border-strong-color: var(--gray-300);
  --accent: var(--blue-600);
  --accent-soft: var(--blue-50);
  --accent-border: rgba(37, 99, 235, 0.25);
  --accent-text: var(--white);
  --heat: var(--orange-600);
  --heat-soft: var(--orange-100);
  --code-bg: var(--gray-100);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}

body.dark-mode {
  --bg: #0b1120;
  --bg-soft: #111827;
  --bg-elevated: #1e293b;
  --bg-strong: #151f32;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #1e293b;
  --border-strong-color: #334155;
  --accent: var(--blue-500);
  --accent-soft: rgba(59, 130, 246, 0.08);
  --accent-border: rgba(59, 130, 246, 0.3);
  --accent-text: var(--white);
  --heat: var(--orange-500);
  --heat-soft: rgba(249, 115, 22, 0.08);
  --code-bg: #1e293b;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}

/* ===== Blueprint Grid Overlay ===== */
.grid-bg {
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

.grid-bg--fine {
  background-size: 20px 20px;
  opacity: 0.2;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-accent { color: var(--accent); }
.text-heat { color: var(--heat); }

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.section.visible {
  opacity: 1;
  transform: none;
}
.section--alt {
  background: var(--bg-soft);
  border-top: var(--border);
  border-bottom: var(--border);
}
.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s,
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s;
}
.section.visible .section-header {
  opacity: 1;
  transform: none;
}

.section-header--center { text-align: center; }
.section-header--left { text-align: left; }
.container .section-header--left { margin-left: 0; }

/* Section tag (mono badge) */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border);
  transition: box-shadow var(--medium), background var(--medium);
  backdrop-filter: blur(8px);
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity var(--fast);
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo .logo-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--fast), opacity var(--fast);
}
.nav-toggle:hover span {
  background: var(--accent);
}

/* ── Mobile toggle animation ── */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links > li { position: relative; flex-shrink: 0; }

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: var(--radius);
  transition: color var(--fast), background var(--fast), transform var(--fast);
  white-space: nowrap;
  display: inline-block;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.nav-links a:active {
  transform: translateY(0);
}
.nav-links a:visited {
  color: var(--text-secondary);
}

/* ── CTA button ── */
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--accent-text);
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
  display: inline-block;
}
.nav-links a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  filter: brightness(1.05);
}
.nav-links a.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Theme toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border-color);
  padding: 5px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all var(--fast);
  white-space: nowrap;
}
.theme-toggle:hover {
  border-color: var(--border-strong-color);
  color: var(--text);
  background: var(--bg-soft);
}

/* ── Nav underline animation for page sections ── */
.nav-links a.nav-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--medium) cubic-bezier(0.4, 0, 0.2, 1), left var(--medium) cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a.nav-section:hover::after {
  width: 60%;
  left: 20%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--fast);
  border: none;
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-heat {
  background: var(--heat);
  color: var(--white);
}
.btn-heat:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong-color);
}
.btn-outline:hover {
  border-color: var(--text-secondary);
  background: var(--bg-strong);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Hero spec bar — big numbers, blueprint feel */
.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
}

.hero-spec {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-right: var(--border);
  position: relative;
}
.hero-spec:last-child { border-right: none; }

.hero-spec::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--medium);
}
.hero-spec:hover::after {
  transform: scaleX(1);
}

.hero-spec .number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hero-spec .number .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-spec .desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Cards / Spec Panels ===== */
.spec-card {
  background: var(--bg-elevated);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--fast), box-shadow var(--fast);
  position: relative;
}
.spec-card:hover {
  border-color: var(--border-strong-color);
  box-shadow: var(--shadow-card-hover);
}

.spec-card--accent {
  border-left: 3px solid var(--accent);
}
.spec-card--heat {
  border-left: 3px solid var(--heat);
}

.spec-card__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-2xs);
}
.spec-card__number .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.spec-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.spec-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.spec-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Grid Systems ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ===== Section: Capabilities / Services ===== */
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cap-row {
  display: grid;
  grid-template-columns: 2fr 1fr 80px;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-elevated);
  transition: background var(--fast);
}
.cap-row:hover {
  background: var(--bg-strong);
}

.cap-row__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.cap-row__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cap-row__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  white-space: nowrap;
}

/* ===== Section: Process Steps ===== */
.process-steps {
  display: flex;
  gap: 0;
  counter-reset: step;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process-step {
  flex: 1;
  padding: var(--space-lg);
  border-right: var(--border);
  counter-increment: step;
  position: relative;
  background: var(--bg-elevated);
  transition: background var(--fast);
}
.process-step:last-child { border-right: none; }
.process-step:hover {
  background: var(--bg-strong);
}

.process-step::before {
  content: '\00a0step- \00a0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.process-step__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Material Spec Table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-strong-color);
  background: var(--bg-strong);
}
.spec-table td {
  padding: 12px 14px;
  border-bottom: var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tbody tr {
  transition: background var(--fast);
}
.spec-table tbody tr:hover {
  background: var(--bg-soft);
}
.spec-table .mono-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== Comparison / Feature Grid ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-col {
  border-right: var(--border);
  padding: var(--space-lg);
  background: var(--bg-elevated);
}
.compare-col:last-child { border-right: none; }

.compare-col__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-strong-color);
}
.compare-col--accent .compare-col__title {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-2xs) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.compare-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--accent);
  margin-top: 2px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-soft);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner .grid-bg {
  position: absolute;
  inset: 0;
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  font-size: 1.05rem;
}

.cta-banner .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-sm);
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-2xs);
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--fast);
}
.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.06s); }

/* ===== Quote Wizard (inline) ===== */
.wizard-steps {
  display: flex;
  counter-reset: wstep;
  margin-bottom: var(--space-xl);
}
.wizard-step {
  flex: 1;
  text-align: center;
  padding: var(--space-sm) var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  transition: all var(--fast);
  counter-increment: wstep;
  white-space: nowrap;
  flex-shrink: 0;
}
.wizard-step::before {
  content: '0' counter(wstep);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-muted);
}
.wizard-step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.wizard-step.active::before {
  color: var(--accent);
}
.wizard-step.done {
  color: var(--text);
  border-bottom-color: var(--text-secondary);
}

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.process-option {
  padding: var(--space-lg);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--fast);
  text-align: center;
  position: relative;
}
.process-option:hover {
  border-color: var(--border-strong-color);
  background: var(--bg-strong);
}
.process-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.process-option.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.process-option__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-2xs);
}
.process-option__text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xs);
}
.form-group label .required {
  color: var(--heat);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong-color);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elevated);
  transition: border-color var(--fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.file-drop {
  border: 2px dashed var(--border-strong-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--fast);
  background: var(--bg-soft);
}
.file-drop:hover,
.file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.file-drop__text strong {
  color: var(--accent);
}

.file-list {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.file-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  transition: color var(--fast);
}
.file-remove:hover { color: var(--heat); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border);
}

/* Estimate summary */
.estimate-box {
  background: var(--bg-strong);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
.estimate-box__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.estimate-box__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.estimate-detail {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: var(--border);
}
.estimate-detail:last-of-type { border-bottom: none; }
.estimate-detail .label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.estimate-detail .value {
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.estimate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ===== Success / Confirmation ===== */
.confirmation {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.confirmation__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  color: var(--accent);
}
.confirmation h2 { margin-bottom: var(--space-sm); }
.confirmation p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ===== Hub Page: Large Feature ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: var(--border);
  align-items: start;
}
.feature-block:last-child { border-bottom: none; }

.feature-block__content h2 {
  margin-bottom: var(--space-md);
}
.feature-block__content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.feature-block__visual {
  background: var(--bg-strong);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }

/* Spec panel inside feature visual */
.spec-panel {
  width: 100%;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-panel__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: var(--border);
  font-size: 0.82rem;
}
.spec-panel__row:last-child { border-bottom: none; }
.spec-panel__label { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; }
.spec-panel__val { font-family: var(--font-mono); font-weight: 600; color: var(--text); }

/* ===== Material selector pills ===== */
.mat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
}
.mat-pill {
  padding: 6px 14px;
  border: 1px solid var(--border-strong-color);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--fast);
  background: var(--bg-elevated);
}
.mat-pill:hover,
.mat-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Gallery & Project Cards ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.gallery-item { display: flex; flex-direction: column; }
.gallery-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
  border: var(--border);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px);
}
.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px);
  pointer-events: none;
}
.gallery-placeholder__icon { font-size: 2.5rem; margin-bottom: var(--space-sm); position: relative; z-index: 1; }
.gallery-placeholder__text { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.7; position: relative; z-index: 1; }
.gallery-caption { padding: var(--space-md); border: var(--border); border-radius: var(--radius); }
.gallery-caption h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-2xs); }
.gallery-caption p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: var(--space-sm); }
.gallery-caption__link { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.gallery-caption__link:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .gallery-placeholder { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%); }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.project-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  transition: transform var(--medium), box-shadow var(--medium);
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.project-card__visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project-card:hover .project-card__visual img {
  transform: scale(1.05);
}
.project-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.08;
  transition: opacity var(--medium);
  z-index: 1;
  pointer-events: none;
}
.project-card:hover .project-card__visual::before {
  opacity: 0.14;
}
.project-card__badge {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  pointer-events: none;
}
.project-card__content {
  padding: var(--space-lg);
}
.project-card__content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 var(--space-sm) 0;
}
.project-card__content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 var(--space-2xs) 0;
  color: var(--text);
}
.project-card__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--medium);
}
.project-card__link:hover {
  text-decoration: underline;
  opacity: 0.75;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-specs { grid-template-columns: repeat(2, 1fr); }
  .hero-spec:nth-child(2) { border-right: none; }
  .cap-row { grid-template-columns: 1fr; gap: var(--space-xs); }
  .process-steps { flex-direction: column; }
  .process-step { border-right: none; border-bottom: var(--border); }
  .process-step:last-child { border-bottom: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col { border-right: none; border-bottom: var(--border); }
  .compare-col:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-block--reverse { direction: ltr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: var(--border);
    padding: var(--space-md);
    gap: 2px;
    animation: navSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  .nav-links.open li {
    width: 100%;
  }
  .nav-links.open a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
  }
  .nav-links.open a.nav-cta {
    text-align: center;
    border-radius: 100px;
  }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-specs { grid-template-columns: 1fr; }
  .hero-spec { border-right: none; border-bottom: var(--border); }
  .hero-spec:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
  .compare-grid { grid-template-columns: 1fr; }
  .wizard-steps { overflow-x: auto; }
  .project-grid { grid-template-columns: 1fr; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
