/* Zero-Cash Build Warm Neutral Theme (shadcn-inspired) */
:root {
  --bg: #faf7f2;
  --bg-elev: #fffdf9;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #1f2937;
  --brand: #b45309;
  --brand-600: #d97706;
  --brand-500: #f59e0b;
  --accent: #0ea5e9;
  --ring: rgba(245, 158, 11, 0.35);
  --border: #e2e8f0;
  --shadow: 0 10px 20px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04);
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

.bo-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.bo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.bo-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.bo-card-body {
  padding: 1.25rem;
}

.bo-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  padding: .625rem 1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(180, 83, 9, .22);
}

.bo-btn:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.bo-btn:active {
  transform: translateY(0);
}

.bo-btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-500);
  box-shadow: none;
}

.bo-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(14, 165, 233, .35);
}

.bo-link:hover {
  border-bottom-style: solid;
}

.bo-input,
.bo-select,
.bo-textarea {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  background: var(--bg-elev);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.bo-input:focus,
.bo-select:focus,
.bo-textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--ring);
}

.bo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.bo-table th,
.bo-table td {
  padding: .75rem .875rem;
  border-bottom: 1px solid var(--border);
}

.bo-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  background: #fffaf2;
}

.bo-table tr:hover td {
  background: #fffdf7;
}

.bo-nav {
  background: #fffaf2;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.bo-brand {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .3px;
}

.bo-pill {
  background: #fff7ed;
  color: var(--brand);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
}

.bo-footer {
  background: #fff7ec;
  border-top: 1px solid var(--border);
  color: #6b7280;
}

[data-tilt] {
  will-change: transform;
  transition: transform .2s ease;
}

[data-tilt]:hover {
  transform: perspective(600px) rotateX(2deg) rotateY(-2deg) translateY(-2px);
}

.fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeIn .35s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}


/* --- Zero-Cash Build Studio Polished Edition Additions --- */
:root {
  --bg-grad: linear-gradient(180deg, #fffdf9 0%, #faf7f2 100%);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(10px);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
  --elev: #fffdf9;
}

html,
body {
  background: var(--bg-grad);
}

.bo-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease;
}

.bo-card:hover {
  transform: translateY(-2px);
}

.bo-underline {
  position: relative;
}

.bo-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--brand-500);
  transition: width .25s ease;
}

.bo-underline:hover::after {
  width: 100%;
}

.bo-kpi {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.bo-kpi .val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.bo-kpi .lbl {
  color: var(--muted);
  font-weight: 600;
}

.bo-kpi .trend {
  font-size: .8rem;
  color: #15803d;
}

/* Tooltip */
.bo-tip {
  position: relative;
}

.bo-tip .tip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #111827;
  color: #fff;
  padding: .4rem .6rem;
  border-radius: 8px;
  font-size: .75rem;
  display: none;
  box-shadow: var(--shadow-sm);
}

.bo-tip:hover .tip {
  display: block;
}

/* Blueprint animated overlay */
.blueprint-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(0, 102, 204, .08), transparent 60%);
}

.blueprint-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(14, 165, 233, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, .12) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  animation: gridScroll 16s linear infinite;
}

.blueprint-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05) 40%, transparent);
}

@keyframes gridScroll {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 36px, 36px 0;
  }
}

/* Page transition */
.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-enter-active {
  transition: opacity .35s ease, transform .35s ease;
  opacity: 1;
  transform: none;
}

/* Sticky parallax for all full-screen hero sections */
section.bg-fixed {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  will-change: background-position;
  transition: background-position 0.2s ease-out;
}

/* Mobile fallback: disable fixed due to iOS limitations */
@media (max-width: 1024px) {
  section.bg-fixed {
    background-attachment: scroll;
  }
}

/* Smooth button design with warm neutral palette */
.bo-btn {
  background-color: var(--brand-600);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bo-btn:hover {
  background-color: var(--brand-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* --- Material Catalog Grid Enhancements --- */
.material-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.material-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.material-card .title {
  font-weight: 600;
  color: var(--text);
}

.material-card .vendor {
  font-size: 0.9rem;
  color: var(--muted);
}

.material-card .price {
  font-weight: 700;
  color: var(--brand);
  text-align: right;
  margin-top: 0.5rem;
}