/* ============================================================
   FiberForge 3D — Shared Design System
   Light professional theme, electric orange + teal accents
   ============================================================ */

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

:root {
  /* Colour tokens — LIGHT theme */
  --bg:           #f5f5f7;
  --surface-1:    #ffffff;
  --surface-2:    #f0f0f3;
  --surface-3:    #e4e4e8;
  --border:       #d8d8dd;
  --border-strong:#b8b8c0;
  --text:         #0a0a0a;
  --text-muted:   #5a5a62;
  --text-dim:     #8a8a92;

  /* Brand stays the same — orange remains the hero colour */
  --accent:       #FF6B00;
  --accent-hover: #e25e00;
  --accent-dim:   rgba(255, 107, 0, 0.10);
  --accent-glow:  0 0 0 1px rgba(255, 107, 0, 0.45), 0 0 14px rgba(255, 107, 0, 0.22);

  /* Cyan darkened for legibility on white */
  --cyan:         #008cb4;
  --cyan-dim:     rgba(0, 140, 180, 0.10);
  --cyan-glow:    0 0 0 1px rgba(0, 140, 180, 0.45), 0 0 14px rgba(0, 140, 180, 0.20);

  --success:      #22a06b;
  --warn:         #b88600;
  --danger:       #d23030;

  /* Typography */
  --font-ui:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & metrics */
  --radius:    4px;
  --radius-sm: 2px;
  --nav-w:        240px;
  --mobile-nav-h: 64px;
  --topnav-h:     64px;
  --transition:   200ms ease;
}



/* ============================================================
   DARK THEME OVERRIDES
   Activated by:
     - <html data-theme="dark">            (user toggle on app pages)
     - <body class="force-dark">           (marketing pages — always dark)
   ============================================================ */
html[data-theme="dark"],
body.force-dark {
  --bg:           #0a0a0a;
  --surface-1:    #111111;
  --surface-2:    #1a1a1a;
  --surface-3:    #222222;
  --border:       #2a2a2a;
  --border-strong:#3a3a3a;
  --text:         #f5f5f5;
  --text-muted:   #9a9a9a;
  --text-dim:     #6a6a6a;

  --accent:       #FF6B00;
  --accent-hover: #ff8a33;
  --accent-dim:   rgba(255, 107, 0, 0.15);
  --accent-glow:  0 0 0 1px rgba(255, 107, 0, 0.6), 0 0 18px rgba(255, 107, 0, 0.35);

  --cyan:         #00D4FF;
  --cyan-dim:     rgba(0, 212, 255, 0.15);
  --cyan-glow:    0 0 0 1px rgba(0, 212, 255, 0.55), 0 0 16px rgba(0, 212, 255, 0.3);

  --success:      #2ecc71;
  --warn:         #f1c40f;
  --danger:       #ff3b3b;
}

/* Carbon fibre — dark version when in dark mode */
html[data-theme="dark"] .carbon-fibre,
body.force-dark .carbon-fibre {
  background-color: #0a0a0a;
  background-image:
    linear-gradient(45deg, #161616 25%, transparent 25%, transparent 75%, #161616 75%, #161616),
    linear-gradient(45deg, #161616 25%, transparent 25%, transparent 75%, #161616 75%, #161616),
    linear-gradient(90deg, #0c0c0c, #0c0c0c);
  background-position: 0 0, 3px 3px, 0 0;
}
html[data-theme="dark"] .carbon-fibre::after,
body.force-dark .carbon-fibre::after {
  background:
    radial-gradient(ellipse at top, rgba(255,107,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,212,255,0.06), transparent 55%);
}

/* Public nav: see-through dark with backdrop blur */
html[data-theme="dark"] .public-nav,
body.force-dark .public-nav {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Soften shadows in dark mode */
html[data-theme="dark"] .card,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topnav,
html[data-theme="dark"] .mobile-nav,
body.force-dark .card,
body.force-dark .sidebar,
body.force-dark .topnav,
body.force-dark .mobile-nav {
  box-shadow: none;
}
html[data-theme="dark"] .auth-card,
body.force-dark .auth-card {
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Toggle button (used only on app pages) */
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: rgba(255,107,0,0.5);
  box-shadow: var(--accent-glow);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Show moon in light mode (click to go dark), sun in dark mode (click to go light) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: 2.4rem; line-height: 1.1; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ============================================================
   Carbon fibre texture (CSS only)
   ============================================================ */
.carbon-fibre {
  background-color: #f0f0f3;
  background-image:
    linear-gradient(45deg, #e4e4e8 25%, transparent 25%, transparent 75%, #e4e4e8 75%, #e4e4e8),
    linear-gradient(45deg, #e4e4e8 25%, transparent 25%, transparent 75%, #e4e4e8 75%, #e4e4e8),
    linear-gradient(90deg, #f5f5f7, #f5f5f7);
  background-size: 6px 6px, 6px 6px, auto;
  background-position: 0 0, 3px 3px, 0 0;
  position: relative;
}
.carbon-fibre::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255,107,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,140,180,0.06), transparent 55%);
  pointer-events: none;
}

/* ============================================================
   App shell layout
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  min-height: 100vh;
}
.app-shell > .app-main { min-width: 0; }
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-content {
  padding: 32px;
  flex: 1;
}

@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-content { padding: 20px 16px calc(var(--mobile-nav-h) + 24px); }
}

/* ============================================================
   Sidebar nav (desktop)
   ============================================================ */
.sidebar {
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 3px rgba(20,20,30,0.04);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}
.sidebar-brand {
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(255,107,0,0.35);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-section {
  padding: 14px 10px;
  flex: 1;
  overflow-y: auto;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 12px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(255,107,0,0.4);
  box-shadow: var(--accent-glow);
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-user {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: grid; place-items: center;
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.user-meta { line-height: 1.2; min-width: 0; }
.user-meta strong { display: block; font-size: 0.85rem; }
.user-meta span { font-size: 0.7rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .sidebar { display: none; }
}

/* ============================================================
   Mobile bottom nav
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-nav-h);
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(20,20,30,0.06);
  z-index: 60;
}
.mobile-nav-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 100%;
}
.mobile-nav a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.mobile-nav a svg { width: 20px; height: 20px; }
.mobile-nav a.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255,107,0,0.6);
}
@media (max-width: 768px) {
  .mobile-nav { display: block; }
}

/* ============================================================
   Top nav
   ============================================================ */
.topnav {
  height: var(--topnav-h);
  min-height: var(--topnav-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(20,20,30,0.03);
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  box-sizing: border-box;
}
.topnav > * { flex-shrink: 0; }
.topnav .topnav-spacer { flex: 1 1 auto; min-width: 0; }
.topnav .topnav-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav-title { font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; }
.topnav-title small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}
.topnav-spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(255,107,0,0.5);
  box-shadow: var(--accent-glow);
}
.icon-btn svg { width: 18px; height: 18px; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 768px) {
  .topnav { padding: 0 14px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
/* ============================================================
   .btn-primary — LOCKED. DO NOT CHANGE THE COLORS.
   Default: BLACK text on orange (legible — user has asked twice)
   Hover:   WHITE text on darker orange
   These !important flags exist specifically because past edits
   kept reverting this. Leave them.
   ============================================================ */
.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #0a0a0a !important;
}
.btn-primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #ffffff !important;
  box-shadow: var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0,212,255,0.4);
}
.btn-secondary:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: var(--cyan-glow);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-success { background: var(--success); border-color: var(--success); color: #ffffff; }
.btn-success:hover { filter: brightness(1.05); color: #ffffff; }
.btn-danger { background: transparent; border-color: rgba(255,59,59,0.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255,59,59,0.1); color: var(--danger); }
.btn-lg { padding: 14px 26px; font-size: 0.95rem; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* ============================================================
   Cards & panels
   ============================================================ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(20,20,30,0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-strong); }
.card-elev { background: var(--surface-2); }
.card-glow:hover {
  border-color: rgba(255,107,0,0.5);
  box-shadow: var(--accent-glow);
}
.card-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: 8px;
}
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }

/* Section header pattern */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.1rem; }
.section-head .sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 16px; }
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.textarea { resize: vertical; min-height: 100px; font-family: var(--font-ui); }
.select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.help { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.error { font-size: 0.8rem; color: var(--danger); margin-top: 6px; }
.error:empty { display: none; }

/* Toggle switch */
.switch {
  position: relative; display: inline-block;
  width: 42px; height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer;
  inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  transition: all var(--transition);
  border-radius: 12px;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 50%; transform: translateY(-50%);
  background: var(--text-muted);
  transition: all var(--transition);
  border-radius: 50%;
}
.switch input:checked + .switch-slider {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.switch input:checked + .switch-slider::before {
  background: var(--accent);
  transform: translate(20px, -50%);
  box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 720px;
}
.table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: sticky; top: 0;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }
.table .mono { color: var(--cyan); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  background: transparent;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 6px currentColor;
}
.badge.pending { color: var(--accent); }
.badge.quoted  { color: var(--cyan); }
.badge.progress, .badge.in-progress { color: var(--cyan); }
.badge.completed { color: var(--success); }
.badge.rejected { color: var(--danger); }
.badge.awaiting { color: var(--accent); }
.badge.review { color: var(--warn); }

/* Priority badges */
.prio { font-family: var(--font-mono); font-size: 0.75rem; padding: 2px 8px; border-radius: var(--radius); }
.prio.high { background: rgba(255,59,59,0.15); color: var(--danger); }
.prio.med  { background: rgba(255,107,0,0.15); color: var(--accent); }
.prio.low  { background: rgba(0,212,255,0.15); color: var(--cyan); }

/* ============================================================
   Auth pages (centred card)
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top, rgba(255,107,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0,140,180,0.06), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(20,20,30,0.10), 0 2px 6px rgba(20,20,30,0.05);
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 1.4rem;
  margin: 6px 0 4px;
}
.auth-card p.sub { color: var(--text-muted); margin: 0 0 22px; font-size: 0.9rem; }
.auth-foot {
  text-align: center; margin-top: 18px;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ============================================================
   Landing page sections
   ============================================================ */
.hero {
  padding: 120px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lede {
  max-width: 680px; margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative; z-index: 1;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.section {
  padding: 80px 32px;
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section h2.section-h {
  font-size: 2rem; margin-bottom: 12px;
}

.feature {
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.feature:hover { border-color: rgba(255,107,0,0.4); transform: translateY(-2px); }
.feature .ico {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--accent);
  display: grid; place-items: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

.step {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  position: absolute; top: -14px; left: 18px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono); font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(255,107,0,0.35);
}

.material-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}
.material-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}
.material-swatch {
  height: 80px; border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.swatch-pla   { background: linear-gradient(135deg, #4ad395, #1f6b4a); }
.swatch-petg  { background: linear-gradient(135deg, #ff8a33, #b34500); }
.swatch-abs   { background: linear-gradient(135deg, #2a2a2a, #555); }
.swatch-resin { background: linear-gradient(135deg, #00D4FF, #005c70); }
.swatch-cf    { background: repeating-linear-gradient(45deg, #1a1a1a 0 4px, #0a0a0a 4px 8px); }

.footer {
  border-top: 1px solid var(--border);
  padding: 50px 32px 30px;
  background: var(--surface-1);
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer a { display: block; color: var(--text-muted); padding: 4px 0; font-size: 0.85rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 28px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   Public top bar (for landing/marketing pages)
   ============================================================ */
.public-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.public-nav > a:first-child {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}
.public-nav .brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.public-nav .links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex: 0 0 auto;
}
.public-nav .links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition);
}
.public-nav .links a:hover { color: var(--text); background: var(--surface-2); }

/* Tablet: hide brand subtitle to save space */
@media (max-width: 900px) {
  .public-nav { padding: 12px 18px; gap: 12px; }
  .public-nav .brand-text small { display: none; }
  .public-nav .links a { padding: 8px 10px; font-size: 0.85rem; }
}

/* Mobile: hide text links, keep brand + Sign in + Get a quote buttons */
@media (max-width: 640px) {
  .public-nav { padding: 10px 12px; gap: 8px; }
  .public-nav .brand-text { font-size: 0.9rem; }
  .public-nav .links { gap: 6px; }
  .public-nav .links a:not(.btn) { display: none; }
  .public-nav .links .btn { padding: 7px 10px; font-size: 0.75rem; }
}

/* Very narrow: hide "Sign in" too, keep only "Get a quote" */
@media (max-width: 380px) {
  .public-nav .brand-text small { display: none; }
  .public-nav .links .btn-ghost { display: none; }
}

/* ============================================================
   Upload page bits
   ============================================================ */
.dropzone {
  border: 2px dashed var(--border-strong);
  background: var(--surface-1);
  padding: 50px 24px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--accent-glow);
}
.dropzone svg { color: var(--accent); width: 48px; height: 48px; margin-bottom: 12px; }
.dropzone h3 { margin: 0 0 6px; font-size: 1.1rem; }
.dropzone p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.dropzone input[type=file] { display: none; }

.preview-3d {
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,212,255,0.04) 12px 13px),
    var(--surface-1);
  border-radius: var(--radius);
  min-height: 240px;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 30px;
}

.file-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.file-tag .sz { color: var(--text-dim); font-size: 0.75rem; }

/* ============================================================
   Timeline (job details)
   ============================================================ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute;
  top: 4px; bottom: 4px; left: 6px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
}
.tl-item.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl-item.current::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-title { font-weight: 600; }
.tl-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   Modal
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,20,30,0.45);
  display: none;
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.modal h3 { margin-top: 0; }

/* ============================================================
   Empty states
   ============================================================ */
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.empty svg { width: 48px; height: 48px; color: var(--text-dim); margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--text-muted); margin: 0 0 18px; }

/* ============================================================
   Utility
   ============================================================ */
.flex { display: flex; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-sm { gap: 6px; }
.gap-lg { gap: 24px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hide-mobile { }
@media (max-width: 768px) { .hide-mobile { display: none !important; } }

/* Focus visibility for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Two-col job details */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

/* Settings */
.settings-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: 0; }
.settings-section h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  gap: 16px;
}
.settings-row .label-block strong { display: block; }
.settings-row .label-block small { color: var(--text-dim); font-size: 0.8rem; }

/* Services page */
.svc-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.svc-card:hover { border-color: rgba(0,212,255,0.4); box-shadow: var(--cyan-glow); }
.svc-card .ico {
  width: 44px; height: 44px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
  display: grid; place-items: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.svc-card ul {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.svc-card ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.svc-card ul li::before {
  content: "›"; color: var(--accent); margin-right: 8px;
}
.svc-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 12px;
}
.svc-price strong {
  color: var(--accent);
  font-size: 1.1rem;
  margin-left: 8px;
}

/* Filter bar */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px;
  align-items: center;
}
.filter-bar .field { margin: 0; flex: 1; min-width: 140px; }
.filter-bar .label { margin: 0 0 4px; }

/* Quote breakdown */
.breakdown {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.breakdown-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.breakdown-row:last-child {
  border-bottom: 0; padding-top: 10px; margin-top: 4px;
  border-top: 2px solid var(--accent);
  font-weight: 700;
  color: var(--accent);
}

/* Tag list */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   Payment options (quote approval page)
   ============================================================ */
.pay-options { display: grid; gap: 12px; margin-top: 14px; }
.pay-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-ui);
  text-align: left;
  width: 100%;
}
.pay-option:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
  color: var(--text);
}
.pay-option.recommended {
  border-color: rgba(255,107,0,0.4);
}
.pay-option .pay-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}
.pay-option .pay-meta { flex: 1; min-width: 0; }
.pay-option .pay-meta strong { display: block; font-size: 0.95rem; }
.pay-option .pay-meta small { color: var(--text-muted); font-size: 0.78rem; }
.pay-option .pay-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: var(--radius);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pay-option .pay-arrow {
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.pay-option:hover .pay-arrow { color: var(--accent); transform: translateX(2px); }

.bank-details {
  margin-top: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}
.bank-details.open { display: block; }
.bank-details .br { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); gap: 12px; }
.bank-details .br:last-child { border-bottom: 0; }
.bank-details .br .k { color: var(--text-dim); }
.bank-details .br .v { color: var(--accent); user-select: all; word-break: break-all; text-align: right; }
.bank-details .copy {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.65rem;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition);
}
.bank-details .copy:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.bank-details .note {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-muted);
}

/* ============================================================
   Video stack (top of landing page)
   Two plain videos stacked vertically, no text overlay.
   ============================================================ */
.video-stack {
  display: block;
  width: 100%;
  background: #0a0a0a;
}
.video-block {
  position: relative;
  margin: 0;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  line-height: 0;     /* removes inline-block whitespace under <video> */
}
.video-block video {
  display: block;
  width: 100%;
  height: auto;        /* preserves the video's natural aspect ratio */
  max-height: 100vh;    /* never let a single video dominate the whole screen */
  object-fit: cover;
}
.video-block + .video-block {
  border-top: 1px solid #1a1a1a;
}
.video-block .vh-credit {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
}
.video-block .vh-credit:hover {
  color: #ffffff;
  background: rgba(0,0,0,0.7);
}
@media (max-width: 768px) {
  .video-block video { height: 70vh; }
  .video-stack + .video-stack .video-block video { height: 60vh; }
  .video-block .vh-credit { font-size: 0.6rem; bottom: 6px; right: 6px; }
}

/* ============================================================
   FINAL OVERRIDES (logo, landing nav transparency, scrollspy)
   ============================================================ */

/* Hide the brand text everywhere — logo speaks for itself */
.brand-text { display: none !important; }

/* Width-constrained logo (rectangular logotype) */
.brand-logo {
  width: auto !important;
  max-width: 220px !important;
  max-height: 48px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}
.public-nav .brand-logo    { max-width: 240px !important; max-height: 52px !important; }
.auth-brand .brand-logo    { max-width: 220px !important; max-height: 56px !important; }
.sidebar-brand .brand-logo { max-width: 200px !important; max-height: 44px !important; }
.footer .brand-logo        { max-width: 220px !important; max-height: 48px !important; }



/* --- Scrollspy: vertical section dot-nav on left side of landing --- */
.section-dots {
  position: fixed;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  /* No card — dots and labels float over the page */
}
.section-dot {
  display: flex;
  align-items: baseline;       /* vertical centre of circle + label */
  gap: 14px;
  height: 16px;              /* fixed row height — guarantees alignment */
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 16px;         /* match row height so text vertically centres */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);  /* legibility without the card */
  transition: color var(--transition);
}
.section-dot:hover { color: #ffffff; }
.section-dot .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: rgba(10,10,10,0.5);
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  position: relative;
  top: 0.5em;                /* push down to text x-height */
  transform: translateY(-50%); /* re-centre relative to new top */
  transition: all var(--transition);
}
.section-dot .label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
}
.section-dots:hover .section-dot .label,
.section-dot.active .label {
  opacity: 1;
  transform: translateX(0);
}
.section-dot.active {
  color: var(--accent);
}
.section-dot.active .label {
  color: var(--accent);
  font-size: 0.85rem;
  text-shadow: 0 0 8px rgba(255,107,0,0.4);
}
.section-dot.active .dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255,107,0,0.6);
}

@media (max-width: 900px) {
  .section-dots { display: none; }  /* hide on mobile — the page is short enough */
}

/* ============================================================
   Hero with video background + glassmorphism content card
   ============================================================ */
.hero-video {
  position: relative;
  overflow: hidden;
  padding: 120px 32px 100px;
  text-align: center;
  isolation: isolate;     /* keeps blur/effects contained */
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at top, rgba(0,0,0,0.35), rgba(0,0,0,0.55) 70%),
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.6) 100%);
}
.hero-glass {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 36px;
  background: rgba(20, 20, 20, 0.12);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-video .hero-glass h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-video .hero-glass .lede {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-video .vh-credit {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.hero-video .vh-credit:hover {
  color: #fff;
  background: rgba(0,0,0,0.7);
}
@media (max-width: 640px) {
  .hero-video { padding: 80px 16px 70px; }
  .hero-glass { padding: 32px 22px; }
}

/* ============================================================
   NEW SECTIONS — Strength, Optimal Structure, Proprietary CF, Real Parts
   ============================================================ */

/* ---------- Common: any section with a video/image background ---------- */
.strength-section,
.optimal-section,
.strength-bg,
.optimal-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.strength-inner,
.optimal-inner,
.strength-section .vh-credit,
.optimal-section .vh-credit {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: var(--radius);
  text-decoration: none;
}
.strength-section .vh-credit:hover,
.optimal-section .vh-credit:hover { color:#fff; background: rgba(0,0,0,0.7); }


/* ============================================================
   STRENGTH SECTION — compact, 100px brackets, centred title
   ============================================================ */
.strength-section {
  position: relative;
  background: #000;
  padding: 50px 24px 50px;
  overflow: hidden;
}
.strength-heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}
.strength-heading .mono {
  color: var(--accent);
  letter-spacing: .3em;
  font-size: .7rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.strength-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .strength-heading h2 { white-space: normal; font-size: 1.3rem; }
}
.strength-heading p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
}

.strength-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.strength-card {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
  border-radius: var(--radius);
  background: #0a0a0a;
}
.strength-card-bg {
  position: absolute; inset: 0; z-index: 0;
}
.strength-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.30;
}
.strength-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.50), rgba(0,0,0,0.72));
  pointer-events: none;
}
.strength-card.right::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.46), rgba(0,0,0,0.68));
}

.strength-card-pic {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 14px;
  /* Honeycomb-inspired hex frame with white bg + thin orange border */
  width: 120px;
  height: 120px;
  background: #ffffff;
  border: 1.5px solid var(--accent);
  /* Hexagon clip-path */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 4px 16px rgba(255,107,0,0.25), 0 0 0 1px rgba(255,107,0,0.15);
}
.strength-card-pic img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  /* No drop-shadow needed — sits on white */
}
.strength-card-title {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.strength-card.right .strength-card-title { color: var(--accent); }

.stat-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.stat-bar {
  position: relative;
  height: 26px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: 90px;
  overflow: hidden;
}
.stat-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 90px;
  width: 0;
  background: #b2b2b2;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.strength-card.right .stat-fill { background: var(--accent); }
.stat-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
}
.strength-card.right .stat-value { color: var(--accent); }

@media (max-width: 720px) {
  .strength-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   OPTIMAL STRUCTURE — 3 columns: PLA / PACF / stats
   ============================================================ */
.optimal-section {
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  isolation: isolate;
}
.optimal-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.optimal-section::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.60) 100%);
}
.optimal-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.optimal-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .optimal-grid-3 { grid-template-columns: 1fr; }
}
.optimal-pic {
  text-align: center;
  background: rgba(20,20,20,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 14px;
}
.optimal-pic img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.optimal-pic p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.optimal-stats-col {
  background: rgba(20,20,20,0.20);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.optimal-stats-col .p1 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.optimal-stats-col .tip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}
.optimal-nums {
  display: flex;
  justify-content: space-around;
  gap: 14px;
}
.optimal-num {
  display: flex;
  align-items: center;
  gap: 10px;
}
.optimal-num img { width: 36px; height: 36px; }
.optimal-num-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 14px rgba(255,107,0,0.4);
}
.optimal-num-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}


/* ============================================================
   PROPRIETARY CARBON FIBRE — mirrors fibreseek index6 layout
   Full-bleed bg + top gradient + title top-left + small accent
   image bottom-right + pill CTA centred bottom
   ============================================================ */
.proprietary-section {
  position: relative;
  min-height: 70vh;
  background: #000;
  overflow: hidden;
  padding: 0;
}
.proprietary-bg {
  width: 100%;
  height: 70vh;
  display: block;
  object-fit: cover;
}
.proprietary-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 70px 8vw 40px;
}
/* Their .index6::before — soft dark gradient from top so the title is readable */
.proprietary-section::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  pointer-events: none;
}

.proprietary-title {
  max-width: 560px;
}
.proprietary-title h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
  white-space: nowrap;
}
.proprietary-title p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Bottom-right accent image (their `.spic`) */
.proprietary-spic {
  position: absolute;
  right: 8vw;
  bottom: 100px;
  z-index: 2;
}
.proprietary-spic img {
  width: 28vw;
  max-width: 380px;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: block;
}

/* Pill CTA centred at the bottom (their <a>) */
.proprietary-cta {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 90px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 400ms ease;
}
.proprietary-cta svg { display: block; }
.proprietary-cta:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px 2px rgba(255,255,255,0.24),
              inset 0 0 10px 4px rgba(255,255,255,0.32);
}
.proprietary-cta:hover svg { stroke: #000; }

@media (max-width: 720px) {
  .proprietary-overlay { padding: 50px 24px 90px; }
  .proprietary-title h2 { white-space: normal; font-size: 1.4rem; }
  .proprietary-spic { right: 24px; bottom: 90px; }
  .proprietary-spic img { width: 50vw; min-width: 0; }
}

/* ============================================================
   PARTS CAROUSEL
   ============================================================ */
.parts-section { padding: 60px 24px; }
.parts-inner { max-width: 1200px; margin: 0 auto; }

.carousel {
  position: relative;
  padding: 0 50px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.part-card {
  flex: 0 0 calc((100% - 36px) / 3);  /* 3 visible on desktop */
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1099px) {
  .part-card { flex: 0 0 calc((100% - 18px) / 2); }  /* 2 on tablet */
}
@media (max-width: 719px) {
  .part-card { flex: 0 0 100%; }  /* 1 on mobile */
}
.part-pic { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; max-height: 180px; }
.part-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.part-info { padding: 10px 14px 12px; }
.part-info h3 { font-size: 0.95rem; margin: 0 0 4px; color: var(--text); }
.part-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  margin: 0 0 10px;
  min-height: 0;
}
.part-specs {
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.part-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.part-specs dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.part-specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 500;
}
.part-cost { color: var(--accent) !important; font-weight: 700; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.carousel-arrow.prev { left: 4px; }
.carousel-arrow.next { right: 4px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,107,0,0.6);
  transform: scale(1.2);
}

/* ============================================================
   Scroll offset for anchor jumps — keep headings below the nav
   ============================================================ */
[id="cf-printing"], [id="weight-test"], [id="strength-measure"],
[id="optimal-structure"], [id="proprietary-cf"], [id="real-parts"],
[id="precision"], [id="engineers"], [id="how"], [id="materials"], [id="quote"] {
  scroll-margin-top: 72px;
}

/* Proprietary CF — allow title to wrap on narrow screens */

/* ============================================================
   MATERIALS CAROUSEL — uses same .carousel framework as parts
   ============================================================ */
.material-card-c {
  flex: 0 0 calc((100% - 36px) / 3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1099px) { .material-card-c { flex: 0 0 calc((100% - 18px) / 2); } }
@media (max-width: 719px)  { .material-card-c { flex: 0 0 100%; } }
.material-pic {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.material-pic .material-swatch {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  margin: 0;
}
.material-info { padding: 12px 16px 14px; }
.material-info h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: var(--text);
}
.material-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  margin: 0 0 10px;
  min-height: 0;
}
