/* Aurora Glass Design Tokens — DAI UI
 * Pure CSS, no frameworks. Import this file in any DAI page.
 * Version: 2.0 — aligned with original design (report_white_gradient.html)
 */

/* ── 1. Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── 2. CSS Custom Properties (Design Tokens) ───────────────────── */
:root {
  /* Backgrounds */
  --bg-base: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-border: rgba(0, 0, 0, 0.06);
  --bg-code: rgba(0, 0, 0, 0.03);

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-body: #333;
  --text-muted: #888;
  --text-accent: #888;

  /* Gradients (orbs) — original design colors */
  --orb-pink: linear-gradient(135deg, #ff6b9d, #ffa07a);
  --orb-teal: linear-gradient(135deg, #4ecdc4, #7b68ee);
  --orb-mint: linear-gradient(135deg, #a8e6cf, #88d8b0);

  /* Top gradient bar */
  --top-bar-gradient: linear-gradient(90deg, #ff6b9d, #ffa07a, #4ecdc4, #7b68ee, #a8e6cf);

  /* Section left accent */
  --accent-left: linear-gradient(180deg, #ff6b9d, #4ecdc4);

  /* Status badge */
  --badge-success-bg: rgba(0, 200, 100, 0.1);
  --badge-success-text: #00a050;
  --badge-success-border: rgba(0, 200, 100, 0.2);

  /* Layout */
  --container-max: 900px;
  --container-padding: 3rem 2rem;
  --container-padding-mobile: 2rem 1rem;
  --card-padding: 2rem;
  --card-padding-mobile: 1.5rem;
  --card-gap: 2rem;
  --section-divider: 2rem;

  /* Typography scale */
  --font-family: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --h1-size: 3rem;
  --h2-size: 0.85rem;
  --h3-size: 1.1rem;
  --body-size: 1rem;
  --caption-size: 0.85rem;
  --code-size: 0.85rem;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 16px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --transition-card: transform 0.3s ease, box-shadow 0.3s ease;
  --transition-btn: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* ── 3. Base Reset ──────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.aurora {
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── 4. Decorative Orbs ───────────────────────────────────────────── */
.gradient-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  background: var(--orb-pink);
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.orb-2 {
  background: var(--orb-teal);
  bottom: -200px;
  left: -200px;
  animation: float 25s ease-in-out infinite reverse;
}

.orb-3 {
  background: var(--orb-mint);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.12; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.2); }
}

/* ── 5. Container ───────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ── 6. Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--h2-size);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #999;
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem 0;
}

.subtitle {
  font-size: 1.1rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 1rem;
}

.subtitle--small {
  font-size: 0.95rem;
  color: #666;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── 7. Report Header ───────────────────────────────────────────── */
.report-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.report-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--top-bar-gradient);
}

.report-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── 8. Glass Card / Section ────────────────────────────────────── */
.section {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-left);
}

/* ── 9. Highlight Box ───────────────────────────────────────────── */
.highlight-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: var(--shadow-card-hover);
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
}

/* ── 10. Meta Grid ──────────────────────────────────────────────── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.meta-item {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.5rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── 11. Status Badge ───────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--badge-success-border);
}

/* ── 12. Tables ──────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  font-weight: 600;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #333;
}

.positive { color: #00a050; font-weight: 600; }

/* ── 13. Lists & Pre ───────────────────────────────────────────── */
ul, ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

li { margin: 0.4rem 0; color: #444; }

pre {
  background: var(--bg-code);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  color: #666;
}

/* ── 14. Back Link ──────────────────────────────────────────────── */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.back-link:hover { color: var(--text-primary); }

/* ── 15. Footer ─────────────────────────────────────────────────── */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: #bbb;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── 16. Legacy .card / .glass-card compatibility ───────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b9d, #4ecdc4);
}

.card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b9d, #4ecdc4);
}

.card h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #999;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p, .card li {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.4rem 0;
}

.card ul { padding-left: 1.5rem; margin: 0.4rem 0; }

.card a {
  color: #0055aa;
  text-decoration: underline;
}

.card a:hover { color: #003d7a; }

.card a:focus-visible {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
  border-radius: 2px;
}

.card code {
  display: inline-block;
  background: var(--bg-code);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  word-break: break-all;
}

.card pre {
  background: var(--bg-code);
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── 17. Components (landing page) ───────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(0, 102, 204, 0.08);
  color: #0055aa;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.cta-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.75rem 1.5rem;
  background: var(--text-primary);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: var(--transition-btn);
}

.cta-btn--secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.cta-btn--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

.cta-btn:hover {
  background: #fff;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.cta-btn:focus-visible {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
}

/* ── 18. Layout helpers ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #888;
}

.meta strong { color: #888; }

@media (min-width: 640px) {
  .meta { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── 19. Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 0.85rem;
    --container-padding: 2rem 1rem;
    --card-padding: 1.5rem;
  }

  .meta-grid { grid-template-columns: 1fr 1fr; }
  .report-header h1 { font-size: 2rem; }
  .gradient-orb { opacity: 0.1; }
}

/* ── 20. Accessibility ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb { animation: none; }
}

/* ── 21. Print ──────────────────────────────────────────────────── */
@media print {
  body.aurora { background: #fff; color: #000; }
  .gradient-orb { display: none; }
  .section, .glass-card, .card, .highlight-box {
    background: #fff;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cta-btn { background: #333; color: #fff; }
}

/* ── 22. Landing helpers ────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--top-bar-gradient);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-row .cta-btn {
  margin-top: 0;
}


/* Value proposition cards */
.value-section {
  padding: 2.5rem 2rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.value-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.15);
  color: #00a050;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.value-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-section { padding: 1.5rem; }
}

.steps {
  padding-left: 1.25rem;
  margin: 0;
}

.steps li {
  margin: 0.75rem 0;
  color: var(--text-body);
}

.code-block {
  background: var(--bg-code);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  color: #666;
  margin: 0.75rem 0 1.25rem 0;
}

.section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section code {
  display: inline-block;
  background: var(--bg-code);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  word-break: break-all;
}

/* DAI-73: button hover contrast fix verified in source */

.section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer a:hover { color: var(--text-primary); }

.footer a:focus-visible {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .cta-row { flex-direction: column; }
  .cta-row .cta-btn { width: 100%; }
}
