* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #08090e;
  color: #f4f6fc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header {
  max-width: 660px;
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #93c5fd;
  margin-bottom: 10px;
}

.header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.header p {
  font-size: 15px;
  line-height: 1.6;
  color: #9aa7c2;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mat-card {
  min-height: 240px;
  padding: 28px 26px;
  border-radius: 22px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  transition: transform 0.2s ease;
}

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

.mat-top {
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mat-id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
}

.mat-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mat-card h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.mat-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(241, 245, 255, 0.84);
  max-width: 42ch;
}

/* CSS Fallback Mode */
body.css-fallback #gl-canvas {
  opacity: 0;
}

body.css-fallback .mat-aluminum {
  background: repeating-linear-gradient(0deg, #525968 0px, #646c7d 1px, #49505e 2px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.css-fallback .mat-oil {
  background: linear-gradient(135deg, #1e1b4b, #0e7490, #701a75, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.css-fallback .mat-velvet {
  background: radial-gradient(circle at 30% 25%, #6d28d9, #2e1065 75%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.css-fallback .mat-carbon {
  background:
    repeating-linear-gradient(45deg, #1b1e26 0 6px, #111319 6px 12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 780px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}
