/* style.css */
:root {
  --font-display: "Georgia", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --accent: #c2410c; /* Terracotta, distinct from indigo */
  --bg-color: #fafafa;
  --text-primary: #171717;
  --text-muted: #525252;
  --border: #e5e5e5;
  --surface: rgba(255, 255, 255, 0.85);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Semi-dithered grain and background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.8; /* Slightly faded for light theme */
}

/* Gemini light ambient rainbow overlay */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 0% 0%, rgba(168, 199, 250, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 100% 0%, rgba(232, 222, 248, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(255, 223, 209, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(211, 227, 253, 0.4) 0%, transparent 50%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: ambient-pulse 15s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  opacity: 0.15;
  mix-blend-mode: color-burn;
  z-index: -1;
  pointer-events: none;
}

/* Dither overlay */
.dither-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  padding: 3rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  margin: 4rem auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.btn:hover {
  background-color: var(--bg-color);
  transform: translateY(-2px); /* Micro-interaction */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
}

/* Dashboard Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.data-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.data-card h3 {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.data-card .value {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

/* CLI Prompt */
.cli-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171717;
  color: #f5f5f5;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: monospace;
  font-size: 0.875rem;
  margin: 2rem auto;
  max-width: 450px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.8);
}

.cli-prompt code {
  background: transparent;
  border: none;
  color: #f5f5f5;
  padding: 0;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Docs specific styles overriden for light mode */
.docs-content pre {
  background: #f5f5f5;
  border-color: var(--border);
  border-radius: 12px;
}
.docs-content pre code {
  color: var(--text-primary);
}
.docs-content code {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
  border-color: var(--border);
  border-radius: 6px;
}
