/* CoLab Haus — Base Styles & Reset (Dark Prismatic Theme) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

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

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

body {
  font-family: var(--ch-font-body);
  font-size: var(--ch-text-base);
  line-height: 1.7;
  color: var(--ch-gray-400);
  background: var(--ch-black);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ch-font-display);
  line-height: 1.2;
  color: var(--ch-white);
}

h1 { font-size: var(--ch-text-5xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--ch-text-4xl); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--ch-text-3xl); font-weight: 600; }
h4 { font-size: var(--ch-text-2xl); font-weight: 600; }
h5 { font-size: var(--ch-text-xl); font-weight: 600; }
h6 { font-size: var(--ch-text-lg); font-weight: 600; }

p {
  margin-bottom: var(--ch-space-md);
}

a {
  color: var(--ch-gray-400);
  text-decoration: none;
  transition: color var(--ch-duration) var(--ch-ease);
}

a:hover {
  color: var(--ch-white);
}

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

ul, ol {
  list-style: none;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 var(--ch-space-xl);
}

.container--narrow {
  max-width: var(--ch-max-width-narrow);
}

.section {
  padding: var(--ch-space-5xl) 0;
}

.section--dark {
  background: var(--ch-black);
  color: var(--ch-gray-400);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ch-white);
}

.section--gray {
  background: var(--ch-surface);
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--ch-space-xl);
}

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

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ch-space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--ch-font-display);
  font-size: var(--ch-text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--ch-radius-md);
  border: none;
  transition: all var(--ch-duration) var(--ch-ease);
  text-decoration: none;
  cursor: pointer;
}

/* Primary — Prism Vivid gradient */
.btn--primary {
  background: var(--ch-gradient-prism-vivid);
  background-size: 200% auto;
  color: var(--ch-white);
  animation: prismFlow 6s linear infinite;
}

.btn--primary:hover {
  color: var(--ch-white);
  box-shadow: var(--ch-shadow-prism-strong);
  transform: translateY(-2px);
}

/* Secondary — Dark Outline */
.btn--secondary {
  background: transparent;
  color: var(--ch-white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ch-white);
  transform: translateY(-2px);
}

/* White — Prism White gradient */
.btn--white {
  background: var(--ch-gradient-prism-white);
  background-size: 300% 300%;
  color: var(--ch-black);
  border: 1px solid var(--ch-gray-200);
  animation: prismShift 10s ease-in-out infinite;
}

.btn--white:hover {
  box-shadow: var(--ch-shadow-prism);
  transform: translateY(-2px);
  color: var(--ch-black);
}

/* Dark Prism — gradient text with prism border */
.btn--dark-prism {
  background: transparent;
  border: 1.5px solid rgba(200, 170, 240, 0.3);
  background-image: linear-gradient(135deg, #FFFFFF, #E8D8F5, #D8E8F8, #D8F5E8, #F5D8E8, #FFFFFF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prismShift 8s ease-in-out infinite;
}

.btn--dark-prism:hover {
  border-color: rgba(200, 170, 240, 0.5);
}

/* Small button */
.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: var(--ch-text-xs);
}

/* Large button */
.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: var(--ch-text-base);
}

/* ========== TEXT UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--ch-gray-500); }

/* Prism White Text — pearlescent gradient text for headings on dark backgrounds */
.gradient-text,
.prism-white-text {
  background: linear-gradient(135deg,
    #FFFFFF 0%, #E8D8F5 12%, #D8E8F8 25%, #D8F5E8 38%,
    #F5F0D8 50%, #F5D8E8 62%, #E0D8F8 75%, #D8F0F8 88%, #FFFFFF 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prismShift 8s ease-in-out infinite;
}

/* Section label */
.section-label {
  display: inline-block;
  font-family: var(--ch-font-body);
  font-size: var(--ch-text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ch-gray-500);
  margin-bottom: var(--ch-space-md);
}

.section-subtitle {
  font-size: var(--ch-text-lg);
  color: var(--ch-gray-500);
  max-width: 640px;
  line-height: 1.6;
}

.section--dark .section-subtitle {
  color: var(--ch-gray-400);
}

/* Cards — Dark treatment */
.card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--ch-radius-lg);
  padding: var(--ch-space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--ch-duration) var(--ch-ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--ch-shadow-prism);
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.card--dark:hover {
  border-color: rgba(200, 170, 240, 0.3);
  box-shadow: var(--ch-shadow-prism);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--ch-text-xs);
  font-weight: 600;
  border-radius: var(--ch-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--teal,
.badge--prism {
  background: rgba(200, 170, 240, 0.1);
  color: var(--ch-prism-vivid-violet);
}

.badge--gold {
  background: rgba(232, 188, 160, 0.15);
  color: var(--ch-prism-vivid-peach);
}

.badge--coral {
  background: rgba(232, 160, 180, 0.15);
  color: var(--ch-prism-vivid-rose);
}

/* Divider — Prism vivid gradient */
.divider {
  width: 60px;
  height: 3px;
  background: var(--ch-gradient-prism-vivid);
  border-radius: var(--ch-radius-full);
  margin: var(--ch-space-lg) 0;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid rgba(200, 170, 240, 0.5);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--ch-prism-vivid-violet);
  color: var(--ch-white);
}
