/* ============================================================
   VRÈ PARFÉ — Professional Website Styles
   Design: Nature, water, flow — the colors of Mauritius
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette — deep river greens, ocean blues, earth tones, sunrise golds */
  --deep-river:      #0d3b2e;
  --forest-canopy:   #1a5c40;
  --river-green:     #2d7a5f;
  --leaf-mid:        #3d9970;
  --moss:            #6ab187;
  --mist:            #a8d5bb;

  --ocean-deep:      #0a2a4a;
  --ocean-mid:       #1b4f72;
  --ocean-surface:   #2980b9;
  --sky:             #5dade2;
  --foam:            #aed6f1;

  --earth:           #5d4037;
  --sand:            #a1887f;
  --soil:            #795548;

  --sunrise-gold:    #f39c12;
  --warm-gold:       #e67e22;
  --morning-light:   #f9ca24;
  --amber:           #f0a500;

  --cream:           #fdf6e3;
  --white:           #ffffff;
  --text-dark:       #1a1a2e;
  --text-body:       #2c3e50;
  --text-light:      #ecf0f1;
  --text-muted:      #7f8c8d;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --section-padding: 5rem 2rem;
  --max-width:       1100px;

  /* Transitions */
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--deep-river);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--morning-light);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

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

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

/* ── Navigation ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 42, 74, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(109, 212, 153, 0.2);
  padding: 0 2rem;
  transition: background var(--transition-smooth);
}

#nav.scrolled {
  background: rgba(10, 42, 74, 0.98);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--morning-light);
  font-weight: bold;
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--moss);
  font-size: 0.75rem;
  display: block;
  font-family: var(--font-body);
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--foam);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--morning-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--river-green), var(--forest-canopy));
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(109, 212, 153, 0.4);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--leaf-mid), var(--river-green)) !important;
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foam);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ── Hero Section ──────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ocean-deep);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(61, 153, 112, 0.25);
  border: 1px solid rgba(61, 153, 112, 0.5);
  color: var(--mist);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero-headline em {
  color: var(--morning-light);
  font-style: normal;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--foam);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  animation: fadeInDown 1s ease 0.4s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--sunrise-gold), var(--warm-gold));
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  animation: fadeInDown 1s ease 0.6s both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(243, 156, 18, 0.35);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(243, 156, 18, 0.5);
  color: var(--text-dark);
}

.hero-tagline {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-align: center;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator span {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollPulse 2s infinite;
}

/* ── Section Shared Styles ─────────────────────────────────── */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--moss);
  margin-bottom: 0.75rem;
  display: block;
}

.section-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

/* ── The Problem Section ───────────────────────────────────── */
#problem {
  background: var(--cream);
  color: var(--text-dark);
}

#problem .section-headline {
  color: var(--earth);
}

#problem .section-label {
  color: var(--warm-gold);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.problem-card.reported {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  border: 2px solid #f39c12;
}

.problem-card.proven {
  background: linear-gradient(135deg, #a8e6cf, #3d9970);
  color: var(--white);
  border: 2px solid var(--river-green);
}

.problem-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.problem-card.proven .problem-card-label {
  color: var(--mist);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.problem-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.problem-card.proven p {
  color: rgba(255,255,255,0.9);
}

.problem-stat {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ocean-deep);
  color: var(--white);
  border-radius: 12px;
  text-align: center;
  border-left: 5px solid var(--warm-gold);
}

.problem-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--morning-light);
  display: block;
}

.problem-stat p {
  color: var(--foam);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ── Solution Section ──────────────────────────────────────── */
#solution {
  background: var(--ocean-deep);
  color: var(--white);
}

#solution .section-label {
  color: var(--morning-light);
}

#solution .section-headline {
  color: var(--white);
}

#solution .section-intro {
  color: var(--foam);
}

.solution-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.4rem;
  width: fit-content;
}

.toggle-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--foam);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--river-green), var(--forest-canopy));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(61, 153, 112, 0.4);
}

.solution-view {
  display: none;
}

.solution-view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Simple view — flow diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  min-width: 140px;
  max-width: 160px;
  position: relative;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.flow-step:nth-child(1) .flow-icon { background: linear-gradient(135deg, #e17055, #d63031); }
.flow-step:nth-child(3) .flow-icon { background: linear-gradient(135deg, var(--sunrise-gold), var(--warm-gold)); }
.flow-step:nth-child(5) .flow-icon { background: linear-gradient(135deg, var(--river-green), var(--forest-canopy)); }
.flow-step:nth-child(7) .flow-icon { background: linear-gradient(135deg, var(--ocean-surface), var(--ocean-mid)); }
.flow-step:nth-child(9) .flow-icon { background: linear-gradient(135deg, var(--morning-light), var(--amber)); }

.flow-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.flow-step p {
  font-size: 0.75rem;
  color: var(--foam);
  line-height: 1.5;
}

.flow-arrow {
  color: var(--moss);
  font-size: 1.5rem;
  padding: 0 0.25rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Technical view */
.tech-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tech-layer {
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tech-layer:hover {
  transform: translateY(-3px);
  border-color: rgba(106, 177, 135, 0.4);
}

.tech-layer-num {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--moss);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tech-layer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--morning-light);
  margin-bottom: 0.5rem;
}

.tech-layer p {
  font-size: 0.8rem;
  color: var(--foam);
  line-height: 1.6;
}

.tech-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-detail {
  padding: 1.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  border-left: 3px solid var(--river-green);
}

.tech-detail h5 {
  color: var(--moss);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tech-detail code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--morning-light);
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tech-detail p {
  font-size: 0.85rem;
  color: var(--foam);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Animated flow bars */
.flow-animation {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  overflow: hidden;
}

.flow-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.flow-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
}

.flow-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--river-green), var(--morning-light), var(--ocean-surface));
  animation: flowRight 3s linear infinite;
  background-size: 200% 100%;
}

/* ── Live Ledger Section ───────────────────────────────────── */
#ledger {
  background: var(--deep-river);
  color: var(--white);
}

#ledger .section-label {
  color: var(--moss);
}

#ledger .section-headline {
  color: var(--white);
}

#ledger .section-intro {
  color: var(--mist);
}

.ledger-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61, 153, 112, 0.15);
  border: 1px solid rgba(61, 153, 112, 0.4);
  color: var(--moss);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf-mid);
  animation: pulse 2s infinite;
}

.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.ledger-panel {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.ledger-panel-header {
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ledger-panel-header h4 {
  font-size: 0.85rem;
  color: var(--foam);
  font-weight: 600;
}

.ledger-panel-header .seq-badge {
  background: rgba(61, 153, 112, 0.25);
  color: var(--moss);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.json-block {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.json-key   { color: #7dc4e4; }
.json-str   { color: #a3be8c; }
.json-num   { color: #d08770; }
.json-bool  { color: #bf616a; }
.json-null  { color: #ebcb8b; }
.json-comment { color: #616e88; font-style: italic; }

/* Annotations */
.annotated-field {
  position: relative;
  cursor: help;
}

.annotated-field::after {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--river-green);
  color: white;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: 0.3rem;
  vertical-align: middle;
  opacity: 0.8;
}

.tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 100;
  background: var(--ocean-deep);
  border: 1px solid rgba(106, 177, 135, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--foam);
  font-family: var(--font-body);
  width: 240px;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  line-height: 1.5;
}

.annotated-field:hover .tooltip {
  display: block;
}

.live-feed-section {
  margin-top: 2rem;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.live-feed-header h3 {
  font-size: 1.1rem;
  color: var(--mist);
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--river-green), var(--forest-canopy));
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(45, 122, 95, 0.35);
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45, 122, 95, 0.5);
  color: var(--white);
}

#live-messages {
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 120px;
  padding: 1.5rem;
}

.live-message-item {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--foam);
  animation: fadeInLeft 0.4s ease;
}

.live-message-item:last-child {
  margin-bottom: 0;
}

.live-message-type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

.type-TELEMETRY    { background: rgba(45, 122, 95, 0.3); color: var(--moss); border: 1px solid rgba(45, 122, 95, 0.4); }
.type-MINT_EVENT   { background: rgba(243, 156, 18, 0.2); color: var(--morning-light); border: 1px solid rgba(243, 156, 18, 0.4); }
.type-other        { background: rgba(41, 128, 185, 0.2); color: var(--sky); border: 1px solid rgba(41, 128, 185, 0.4); }

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(106, 177, 135, 0.2);
  border-top-color: var(--leaf-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Code Section ──────────────────────────────────────────── */
#code {
  background: var(--text-dark);
  color: var(--white);
}

#code .section-label {
  color: var(--warm-gold);
}

#code .section-headline {
  color: var(--white);
}

#code .section-intro {
  color: var(--foam);
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.code-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--foam);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.code-tab.active {
  background: rgba(61, 153, 112, 0.2);
  border-color: rgba(61, 153, 112, 0.5);
  color: var(--moss);
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  animation: fadeIn 0.3s ease;
}

.code-snippet {
  background: #0d1117;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.code-snippet-header {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.code-filename {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

.code-snippet pre {
  padding: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #abb2bf;
  font-family: var(--font-mono);
}

/* Syntax colors — One Dark Pro style */
.kw    { color: #c678dd; }  /* keywords */
.fn    { color: #61afef; }  /* functions */
.str   { color: #98c379; }  /* strings */
.num   { color: #d19a66; }  /* numbers */
.cmt   { color: #5c6370; font-style: italic; }  /* comments */
.prop  { color: #e06c75; }  /* property names */
.const { color: #e5c07b; }  /* constants/vars */

.code-explanation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.explanation-block {
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border-left: 3px solid var(--river-green);
}

.explanation-block h4 {
  color: var(--morning-light);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.explanation-block p {
  font-size: 0.9rem;
  color: var(--foam);
  line-height: 1.7;
}

.explanation-block .highlight {
  display: inline-block;
  background: rgba(61, 153, 112, 0.2);
  border: 1px solid rgba(61, 153, 112, 0.3);
  color: var(--moss);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ── Origin Story Section ──────────────────────────────────── */
#origin {
  background: linear-gradient(160deg, var(--soil) 0%, var(--earth) 40%, var(--ocean-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#origin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") center/300px;
  opacity: 0.5;
}

#origin .section-label {
  color: var(--morning-light);
}

#origin .section-headline {
  color: var(--white);
}

.origin-timeline {
  position: relative;
  margin: 3rem 0;
}

.origin-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--morning-light), var(--river-green), var(--ocean-surface));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ocean-deep);
  border: 3px solid var(--morning-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  position: relative;
}

.timeline-content {
  padding-top: 0.5rem;
  flex: 1;
}

.timeline-year {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--morning-light);
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.timeline-content a {
  color: var(--morning-light);
  text-decoration: underline;
  text-decoration-color: rgba(249, 202, 36, 0.3);
}

.origin-photo-placeholder {
  margin: 3rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(0,60,40,0.8), rgba(0,40,80,0.8));
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.photo-placeholder-icon {
  font-size: 4rem;
}

.photo-placeholder-text h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.photo-placeholder-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.origin-quote {
  margin-top: 3rem;
  padding: 2.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 16px;
  border-left: 5px solid var(--morning-light);
  position: relative;
}

.origin-quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(249, 202, 36, 0.15);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
}

.origin-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--white);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.origin-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--morning-light);
  font-style: normal;
}

/* ── Standards Section ─────────────────────────────────────── */
#standards {
  background: var(--cream);
  color: var(--text-dark);
}

#standards .section-label {
  color: var(--ocean-mid);
}

#standards .section-headline {
  color: var(--ocean-deep);
}

#standards .section-intro {
  color: var(--text-muted);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.standard-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.standard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  color: var(--text-dark);
}

.standard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.badge-iwa     { background: rgba(41, 128, 185, 0.1); color: var(--ocean-mid); border: 1px solid rgba(41, 128, 185, 0.3); }
.badge-partner { background: rgba(61, 153, 112, 0.1); color: var(--forest-canopy); border: 1px solid rgba(61, 153, 112, 0.3); }
.badge-ledger  { background: rgba(132, 63, 161, 0.1); color: #6c3483; border: 1px solid rgba(132, 63, 161, 0.3); }
.badge-reg     { background: rgba(243, 156, 18, 0.1); color: var(--earth); border: 1px solid rgba(243, 156, 18, 0.3); }

.standard-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.standard-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.standard-card .card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ocean-surface);
  text-decoration: none;
}

.regulatory-badges {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.regulatory-badges h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reg-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(41, 128, 185, 0.08);
  border: 1px solid rgba(41, 128, 185, 0.2);
  color: var(--ocean-mid);
}

/* ── Vision / Mycelium Section ─────────────────────────────── */
#vision {
  background: var(--deep-river);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#vision-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

#vision .section-label {
  color: var(--leaf-mid);
}

#vision .section-headline {
  color: var(--white);
}

.vision-content {
  position: relative;
  z-index: 2;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.vision-text p {
  font-size: 1rem;
  color: var(--mist);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.vision-text p strong {
  color: var(--morning-light);
}

.vision-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vision-node {
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.vision-node:hover {
  background: rgba(61, 153, 112, 0.1);
  border-color: rgba(61, 153, 112, 0.3);
  transform: scale(1.02);
}

.vision-node .node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.vision-node h4 {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.vision-node p {
  font-size: 0.75rem;
  color: var(--moss);
}

.vision-closing-quote {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: rgba(0,0,0,0.3);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.vision-closing-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.vision-closing-quote .attribution {
  font-size: 0.85rem;
  color: var(--leaf-mid);
}

.stats-bar {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--morning-light);
  display: block;
  line-height: 1;
}

.stat-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-top: 0.3rem;
}

/* ── Footer ────────────────────────────────────────────────── */
#footer {
  background: #050e18;
  color: var(--foam);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--morning-light);
  margin-bottom: 0.25rem;
}

.footer-brand .tagline {
  color: var(--moss);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-brand .reg-info {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--foam);
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--morning-light);
}

.footer-contact a {
  color: var(--morning-light);
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-ledger-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-ledger-link:hover {
  color: var(--moss);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

@keyframes flowRight {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
  #nav, #hero-canvas, #vision-canvas,
  .flow-bar-fill, .scroll-indicator,
  .live-feed-section { display: none !important; }

  body { background: white; color: black; }

  #hero { height: auto; min-height: auto; padding: 3rem 2rem; background: var(--ocean-deep); }
  .hero-content { color: white; }

  .section { page-break-inside: avoid; }
  .ledger-grid, .code-panel.active, .vision-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 42, 74, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 1rem;
  }
  .nav-hamburger { display: block; }

  .problem-grid { grid-template-columns: 1fr; }
  .ledger-grid { grid-template-columns: 1fr; }
  .code-panel.active { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-detail-grid { grid-template-columns: 1fr; }

  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }

  .stats-bar { gap: 1.5rem; }
}

@media (max-width: 600px) {
  :root { --section-padding: 3.5rem 1.25rem; }

  .hero-headline { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .tech-layers { grid-template-columns: 1fr; }
  .vision-nodes { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .badges-row { gap: 0.5rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .origin-quote blockquote { font-size: 1rem; }

  .solution-toggle { flex-direction: column; }
}
/* Ledger feed card summary + verify link */
.ledger-summary {
    color: #b0c4d8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}
.ledger-verify-link {
    color: var(--accent-gold, #d4a843);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.ledger-verify-link:hover {
    opacity: 1;
    text-decoration: underline;
}
.badge-telemetry {
    background: #00bcd4;
    color: #000;
}
.badge-mint {
    background: #00ffa3;
    color: #000;
}
.badge-status {
    background: #ff9800;
    color: #000;
}
.badge-unknown {
    background: #666;
    color: #fff;
}

/* ===== Live Ledger Feed (home.vreparfe.com) ===== */

/* The container you already have in HTML */
#live-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card wrapper created by JS */
.ledger-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Header row: badge left, seq right */
.ledger-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ledger-seq {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* Badge */
.ledger-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: none;
}

/* Summary line */
.ledger-summary {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Verify link */
.ledger-verify-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.8;
  color: var(--accent-gold, #d4a843);
}
.ledger-verify-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Badge variants (match your palette) */
.badge-telemetry { background: #00bcd4; color: #001014; }
.badge-mint      { background: #00ffa3; color: #001014; }
.badge-status    { background: #ffb020; color: #1b1200; }
.badge-unknown   { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); }

/* Mobile breathing room */
@media (max-width: 700px) {
  .ledger-card { padding: 12px; border-radius: 12px; }
  .ledger-card-header { flex-direction: column; align-items: flex-start; }
}