/* ============================================================
   AISC North America — Design System
   Spacing: 8pt scale | Type: Inter | Color: Neutral + Blue
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Spacing — 8pt scale. Use only these values. */
  --s-0-5: 4px;
  --s-1:   8px;
  --s-1-5: 12px;
  --s-2:   16px;
  --s-2-5: 20px;
  --s-3:   24px;
  --s-4:   32px;
  --s-5:   40px;
  --s-6:   48px;
  --s-8:   64px;
  --s-10:  80px;
  --s-12:  96px;
  --s-16:  128px;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Line heights */
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;

  /* Font weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Color primitives */
  --gray-0:   #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gray-950: #0A0F1A;

  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;

  --green-100: #DCFCE7;
  --green-700: #15803D;
  --red-100:   #FEE2E2;
  --red-700:   #B91C1C;

  /* Semantic tokens */
  --surface:            var(--gray-0);
  --surface-secondary:  var(--gray-50);
  --surface-tertiary:   var(--gray-100);
  --canvas-dark:        #0C1527;
  --canvas-dark-raised: #162035;

  --border:       var(--gray-200);
  --border-strong: var(--gray-300);

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-tertiary:  var(--gray-400);
  --text-inverse:   var(--gray-0);
  --text-inverse-muted: rgba(255, 255, 255, 0.65);

  --accent:        var(--blue-600);
  --accent-hover:  var(--blue-700);
  --accent-subtle: var(--blue-50);
  --accent-text:   var(--blue-700);

  /* Radius — one radius for cards, one for controls */
  --radius-sm:  4px;
  --radius:     6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .08), 0 4px 6px -4px rgb(0 0 0 / .05);

  /* Motion */
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 100ms;
  --duration-base: 160ms;
  --duration-slow: 240ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --page-gutter: var(--s-4);
}

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


html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

/* ── Layout helpers ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--s-12);
}

.section--lg {
  padding-block: var(--s-16);
}

.section--sm {
  padding-block: var(--s-8);
}

.section--dark {
  background: var(--canvas-dark);
  color: var(--text-inverse);
}

.section--alt {
  background: var(--surface-secondary);
}

/* ── Typography ──────────────────────────────────────────────── */
.label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

.label--inverse {
  color: rgba(255, 255, 255, 0.5);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.section-subheading {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 540px;
}

.section-header {
  margin-bottom: var(--s-8);
}

.section-header .label {
  margin-bottom: var(--s-1-5);
}

.section-header .section-heading {
  margin-bottom: var(--s-2);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 40px;
  padding-inline: var(--s-2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Primary */
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border: 1px solid var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-inverse);
  box-shadow: 0 1px 3px rgb(37 99 235 / .25), 0 4px 12px rgb(37 99 235 / .15);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Secondary */
.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-secondary);
  border-color: var(--gray-400);
  color: var(--text-primary);
}

/* Ghost on dark bg */
.btn-ghost-inverse {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost-inverse:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-inverse);
}

/* Sizes */
.btn-sm {
  height: 32px;
  padding-inline: var(--s-1-5);
  font-size: var(--text-xs);
}

.btn-lg {
  height: 48px;
  padding-inline: var(--s-3);
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

/* Loading state */
.btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.btn[data-loading="true"] .btn-text {
  opacity: 0;
}

.btn[data-loading="true"]::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--duration-base) var(--ease-out);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gray-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-logo-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.nav-logo-sub {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-0-5);
  flex: 1;
}

.nav-links a {
  padding: var(--s-1) var(--s-1-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-shrink: 0;
}

/* Cart button */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  height: 36px;
  padding-inline: var(--s-1-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
}

.nav-cart:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
  border-color: var(--border);
  color: var(--text-primary);
}

.nav-cart svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  display: none;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
  line-height: 1;
}

.nav-cart-badge.visible {
  display: flex;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  background: var(--surface-secondary);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Page header (inner pages) ───────────────────────────────── */
.page-header {
  padding-block: var(--s-10) var(--s-8);
  border-bottom: 1px solid var(--border);
}

.page-header--dark {
  background: var(--canvas-dark);
  color: var(--text-inverse);
  border-bottom: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--s-3);
}

.breadcrumb a {
  color: var(--text-tertiary);
}

.breadcrumb a:hover {
  color: var(--text-secondary);
}

.breadcrumb-sep {
  font-size: 10px;
  color: var(--text-tertiary);
}

.page-header--dark .breadcrumb,
.page-header--dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.35);
}

.page-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--s-2);
  max-width: 580px;
  line-height: var(--leading-relaxed);
}

.page-header--dark .page-title {
  color: var(--text-inverse);
}

.page-header--dark .page-subtitle {
  color: var(--text-inverse-muted);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--canvas-dark);
  color: var(--text-inverse);
  padding-block: var(--s-16);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--s-8);
  align-items: center;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--s-3);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 4.5vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-inverse);
  margin-bottom: var(--s-3);
}

.hero-title em {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  line-height: var(--leading-relaxed);
  max-width: 520px;
  margin-bottom: var(--s-5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-inverse);
  letter-spacing: var(--tracking-tight);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-top: var(--s-0-5);
}

/* Product card for hero */
.hero-product-card {
  background: var(--canvas-dark-raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--s-4);
  position: relative;
}

.hero-product-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--s-3);
  font-family: 'JetBrains Mono', monospace;
}

.hero-board-svg {
  width: 100%;
  height: auto;
  margin-bottom: var(--s-3);
  border-radius: var(--radius-md);
  background: #0a1220;
  padding: var(--s-3);
}

.hero-spec-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.hero-spec-item {
  display: flex;
  align-items: center;
  gap: var(--s-1-5);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', monospace;
  padding: var(--s-1) var(--s-1-5);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.hero-spec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Product Cards ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.product-card-visual {
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
}

.board-svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.product-card-body {
  padding: var(--s-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-1-5);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: var(--s-1);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--surface-tertiary);
  color: var(--text-secondary);
  width: fit-content;
}

.product-card-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.product-card-footer {
  padding: var(--s-2) var(--s-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.product-price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.product-price-currency {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  font-family: inherit;
}

.product-card-actions {
  display: flex;
  gap: var(--s-1);
}

/* ── Feature Grid ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.feature-card {
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-700);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--s-1);
  color: var(--text-primary);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Spec Table ──────────────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.spec-table th {
  text-align: left;
  padding: var(--s-1-5) var(--s-2);
  background: var(--surface-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: var(--s-1-5) var(--s-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
  line-height: var(--leading-relaxed);
}

.spec-table td:first-child {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  width: 220px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

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

.spec-table-group {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-subtle);
  padding: var(--s-1) var(--s-2);
  border-bottom: 1px solid var(--blue-100);
}

.spec-table-group td {
  color: var(--accent-text);
  background: var(--accent-subtle);
  border-bottom-color: var(--blue-100);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-5);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: var(--s-1-5) var(--s-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: var(--weight-semibold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Product Detail Layout ───────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: var(--s-10);
  align-items: start;
  padding-block: var(--s-10);
}

.product-detail-gallery {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--s-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: sticky;
  top: calc(var(--nav-height) + var(--s-4));
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-1);
}

.price-large {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: var(--tracking-tight);
}

.price-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--s-1-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.highlight-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add-to-cart-block {
  display: flex;
  align-items: center;
  gap: var(--s-1-5);
  padding-top: var(--s-1);
}

.qty-input {
  width: 72px;
  height: 40px;
  padding-inline: var(--s-1-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  text-align: center;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / .1);
}

.availability-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-700);
  flex-shrink: 0;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-label-required::after {
  content: ' *';
  color: var(--red-700);
}

.form-control {
  height: 40px;
  padding-inline: var(--s-1-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / .1);
}

.form-control:invalid.touched {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgb(185 28 28 / .08);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  height: auto;
  padding-block: var(--s-1-5);
  resize: vertical;
  min-height: 96px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: var(--s-5);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}

.form-actions {
  margin-top: var(--s-2);
}

/* ── Alert ───────────────────────────────────────────────────── */
.alert {
  display: none;
  padding: var(--s-1-5) var(--s-2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border: 1px solid transparent;
}

.alert.visible {
  display: flex;
  align-items: flex-start;
  gap: var(--s-1-5);
}

.alert-success {
  background: var(--green-100);
  color: var(--green-700);
  border-color: rgba(21, 128, 61, 0.2);
}

.alert-error {
  background: var(--red-100);
  color: var(--red-700);
  border-color: rgba(185, 28, 28, 0.2);
}

/* ── Cart ────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-6);
  align-items: start;
  padding-block: var(--s-8);
}

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

.cart-table th {
  text-align: left;
  padding: var(--s-1-5) var(--s-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-item-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.cart-item-sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--s-0-5);
  font-family: 'JetBrains Mono', monospace;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.qty-control-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  line-height: 1;
}

.qty-control-btn:hover {
  background: var(--surface-secondary);
}

.qty-control-input {
  width: 40px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: 'JetBrains Mono', monospace;
}

.qty-control-input:focus {
  outline: none;
  border-color: var(--accent);
}

.cart-item-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  text-align: right;
}

.btn-remove-item {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding: var(--s-0-5) var(--s-1);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.btn-remove-item:hover {
  color: var(--red-700);
  background: var(--red-100);
}

.cart-empty-state {
  padding-block: var(--s-12);
  text-align: center;
  color: var(--text-secondary);
}

.cart-empty-state p {
  font-size: var(--text-base);
  margin-bottom: var(--s-4);
}

.order-summary-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  position: sticky;
  top: calc(var(--nav-height) + var(--s-3));
}

.order-summary-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--s-1-5);
}

.summary-line.total {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  padding-top: var(--s-2);
  margin-top: var(--s-1);
  border-top: 1px solid var(--border);
  margin-bottom: var(--s-3);
}

.summary-line .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Docs layout ─────────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-8);
  align-items: start;
  padding-block: var(--s-8);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--s-4));
}

.docs-sidebar-section {
  margin-bottom: var(--s-3);
}

.docs-sidebar-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--s-1) var(--s-1-5);
  margin-bottom: var(--s-0-5);
}

.docs-sidebar-link {
  display: block;
  padding: var(--s-1) var(--s-1-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.docs-sidebar-link:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.docs-sidebar-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: var(--weight-medium);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  margin-bottom: var(--s-10);
  scroll-margin-top: calc(var(--nav-height) + var(--s-4));
}

.docs-section h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-1);
}

.docs-section .label {
  margin-bottom: var(--s-1-5);
}

.docs-section p,
.docs-section .section-intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--s-3);
  max-width: 640px;
}

/* Code block */
.code-block {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--s-3);
  overflow-x: auto;
  margin-block: var(--s-3);
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: var(--text-sm);
  color: #e6edf3;
  line-height: var(--leading-relaxed);
  white-space: pre;
}

.code-comment { color: #8b949e; }
.code-keyword { color: #79c0ff; }
.code-value   { color: #a5d6ff; }
.code-label   { color: #7ee787; }
.code-op      { color: #ff7b72; }

/* ── Services / Solutions ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.service-card {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.service-number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: var(--s-2);
}

.service-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--s-1-5);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Team ────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.team-card {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  margin-bottom: var(--s-2);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: var(--tracking-tight);
  border: 1px solid var(--border);
}

.team-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--s-0-5);
}

.team-role {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--accent-text);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-1-5);
}

.team-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--canvas-dark);
  color: var(--text-inverse);
  padding-block: var(--s-12);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-inverse);
  margin-bottom: var(--s-2);
}

.cta-banner p {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: var(--s-5);
  line-height: var(--leading-relaxed);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-950);
  color: rgba(255, 255, 255, 0.5);
  padding-block: var(--s-10) var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.footer-brand-description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-top: var(--s-2);
  max-width: 280px;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: var(--s-2);
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.footer-col-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--s-2);
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}

.footer-logo-mark-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-mark svg {
  width: 14px;
  height: 14px;
}

.footer-logo-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: var(--tracking-tight);
}

/* ── Contact layout ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-10);
  align-items: start;
  padding-block: var(--s-10);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-600);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--s-0-5);
}

.contact-info-value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

/* ── Inquiry type cards ──────────────────────────────────────── */
.inquiry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1-5);
  margin-bottom: var(--s-4);
}

.inquiry-card {
  padding: var(--s-2) var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-secondary);
}

.inquiry-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--s-0-5);
}

.inquiry-card-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--s-4);
}

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
  background: var(--surface-secondary);
  border-block: 1px solid var(--border);
  padding-block: var(--s-5);
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-top: var(--s-0-5);
}

/* ── Comparison table ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table th {
  padding: var(--s-2) var(--s-3);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

.compare-table th:first-child { text-align: left; }

.compare-table td {
  padding: var(--s-1-5) var(--s-3);
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: center;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface-secondary);
}

.compare-table tbody tr:hover td {
  background: var(--surface-secondary);
}

.compare-table tbody tr:hover td:first-child {
  background: var(--surface-tertiary);
}

.compare-tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  font-weight: var(--weight-bold);
}

.compare-dash {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --page-gutter: var(--s-3); }

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

  .hero-product-card {
    display: none;
  }

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

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

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

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-gallery {
    position: static;
    min-height: 240px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    gap: var(--s-1);
    flex-wrap: wrap;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--s-2);
  }

  .docs-sidebar-section {
    margin-bottom: 0;
  }

  .docs-sidebar-title { display: none; }

  .docs-sidebar-link {
    padding: var(--s-0-5) var(--s-1-5);
    white-space: nowrap;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --page-gutter: var(--s-2);
    --nav-height: 56px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-2) var(--s-2);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-0-5);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-block: var(--s-10);
  }

  .product-grid,
  .features-grid,
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
  }

  .section { padding-block: var(--s-8); }
  .section--lg { padding-block: var(--s-10); }

  .add-to-cart-block {
    flex-wrap: wrap;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-stats {
    gap: var(--s-4);
  }
}

@media (max-width: 480px) {
  .stats-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Focus visible (accessibility) ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Misc utilities ──────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
