/* ZeroOne D.O.T.S AI — Brand Design System */
/* Human Minimalist Designer · Anti-Slop · Editorial */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* D.O.T.S Palette */
  --lavender: #C8B6FF;
  --mint: #B8E0D2;
  --peach: #FFCDB2;
  --sky: #A2D2FF;
  --rose: #FFB5C2;
  --lemon: #FFF3B0;
  --gold: #FFD700;

  /* Neutrals */
  --ink: #191924;
  --plum: #2D1B4E;
  --charcoal: #2A2A3C;
  --cream: #FDFCFA;
  --sand: #E8E6E0;
  --stone: #918D82;
  --slate: #4A4842;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Fluid type */
  --text-display: clamp(2.75rem, 6vw, 5rem);
  --text-h1: clamp(2rem, 4vw, 3.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --text-h3: clamp(1.125rem, 2vw, 1.5rem);
  --text-body: clamp(0.938rem, 1.2vw, 1.0625rem);
  --text-small: clamp(0.8125rem, 1vw, 0.875rem);
  --text-label: 0.75rem;

  /* Spacing (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

/* Film Grain — subtle texture */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Dark variant */
body.dark {
  color: var(--cream);
  background: var(--ink);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.display {
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.body { font-size: var(--text-body); }
.small { font-size: var(--text-small); color: var(--stone); }

/* D.O.T.S Color Classes */
.text-lavender { color: var(--lavender); }
.text-mint { color: var(--mint); }
.text-peach { color: var(--peach); }
.text-sky { color: var(--sky); }
.text-gold { color: var(--gold); }
.text-stone { color: var(--stone); }
.text-ink { color: var(--ink); }
.text-cream { color: var(--cream); }

.bg-ink { background: var(--ink); }
.bg-cream { background: var(--cream); }
.bg-plum { background: var(--plum); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  min-height: 44px;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--charcoal); }

.btn-accent {
  background: var(--lavender);
  color: var(--ink);
}
.btn-accent:hover { background: #b9a3ff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--sand);
}
.btn-outline:hover { border-color: var(--stone); }

/* Cards */
.card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

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

.card-dark {
  background: var(--ink);
  color: var(--cream);
}

.card-light {
  background: white;
  border: 1px solid var(--sand);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

/* D.O.T.S Dot Matrix (inline) */
.dots-matrix {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 48px;
  height: 48px;
}

.dots-matrix .dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.dots-matrix .dot.d { background: var(--lavender); }
.dots-matrix .dot.o { background: var(--mint); }
.dots-matrix .dot.t { background: var(--peach); }

/* Pillar badge */
.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar-badge.data { background: rgba(200,182,255,0.15); color: var(--lavender); }
.pillar-badge.ops { background: rgba(184,224,210,0.15); color: var(--mint); }
.pillar-badge.tech { background: rgba(255,205,178,0.15); color: var(--peach); }
.pillar-badge.strategy { background: rgba(162,210,255,0.15); color: var(--sky); }

/* Price tag */
.price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--stone);
  font-size: 1rem;
}

/* Divider */
.divider {
  width: 48px;
  height: 2px;
  background: var(--sand);
  margin: var(--space-md) 0;
}

.divider-accent {
  background: linear-gradient(90deg, var(--lavender), var(--sky));
}

/* Focus & Accessibility */
:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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