/* Pymander - Hermetic / Quiet Studio OS */

:root {
  /* Color System - Shifted to warm, deep tones */
  --bg-core: #0a0908; /* Deep warm black */
  --bg-surface: #12100e; /* Slightly lifted, warm surface */
  --accent-gold: rgba(202, 164, 107, 0.8); /* Muted amber/gold */
  --accent-gold-hex: #caa46b; 
  --text-main: #e8e6e1; 
  --text-muted: #8a8682; /* Warmer, dusty gray */
  
  /* Spacing Rhythm */
  --space-sm: 2rem;
  --space-md: 5rem;
  --space-lg: 12rem;
}

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

body {
  background-color: var(--bg-core);
  /* The Fix: A soft, warm gold light source from the top center */
  background-image: radial-gradient(circle at 50% -20%, #241c11 0%, var(--bg-core) 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#ambient-canvas {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; 
  opacity: 0.5; /* Kept subtle */
  pointer-events: none; 
}

/* Typography Restraint */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

/* Quiet Hero Button */
.quiet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(202, 164, 107, 0.15); /* Faint gold border */
  border-radius: 4px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.4s ease;
  background: rgba(202, 164, 107, 0.02);
}

.quiet-btn:hover {
  border-color: rgba(202, 164, 107, 0.4);
  background: rgba(202, 164, 107, 0.05);
  box-shadow: 0 0 15px rgba(202, 164, 107, 0.1);
  transform: translateY(-2px);
}

/* Nav Links */
.nav-links { display: flex; gap: 2rem; }
.nav-item { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.4s ease; }
.nav-item:hover { color: var(--text-main); }

/* The Enso / Orbit Logo - Updated to Gold */
.zen-mark {
  width: 12px; height: 12px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: all 0.8s ease;
}
.logo-wrapper:hover .zen-mark {
  opacity: 1; border-color: var(--accent-gold-hex);
  box-shadow: 0 0 8px rgba(202, 164, 107, 0.3);
}

/* Spatial Rhythm */
section {
  padding: var(--space-lg) 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Interactive Cards */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin-top: var(--space-md);
}

.system-card {
  background: var(--bg-surface);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(202, 164, 107, 0.05); /* Faint gold tint */
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  text-align: left;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(202, 164, 107, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.system-card:hover {
  transform: translateY(-6px);
  border-color: rgba(202, 164, 107, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.system-card:hover::before { opacity: 1; }

.system-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.system-card:hover h3 { color: var(--accent-gold-hex); }

.system-card p {
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.card-action {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.4s ease;
}

.arrow { transition: transform 0.4s ease; }
.system-card:hover .card-action { color: var(--accent-gold-hex); }
.system-card:hover .arrow { transform: translateX(4px); }

/* Nav & Footer */
nav {
  position: fixed; top: 0; width: 100%; padding: 2rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0) 100%);
  backdrop-filter: blur(8px);
  z-index: 100;
}

footer {
  padding: var(--space-md) 5%;
  border-top: 1px solid rgba(202, 164, 107, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer a:hover { color: var(--text-main); }

/* Smooth Entrance Animation */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.system-card:nth-child(1) { transition-delay: 0.1s; }
.system-card:nth-child(2) { transition-delay: 0.2s; }
.system-card:nth-child(3) { transition-delay: 0.3s; }