/* ════════════════════════════════════════════════════════════════════
   ARTEMIS — GREEK PANTHEON DESIGN SYSTEM
   The Twelve Olympians · Ancient wisdom · Autonomous intelligence
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — inspired by Greek antiquity */
  --gold:        #D4AF37;
  --gold-deep:   #B8860B;
  --gold-light:  #E8C874;
  --gold-glow:   rgba(212, 175, 55, 0.4);
  --marble:      #F5F0E1;
  --marble-warm: #E8DFC8;
  --stone:       #3A342B;
  --stone-dark:  #1C1814;
  --night:       #0A0806;
  --wine:        #722F37;
  --aegean:      #4A90A4;
  --olive:       #7A9F4A;
  --bronze:      #B87333;

  /* Typography */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-subhead: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Shadows & effects */
  --shadow-marble: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(212,175,55,0.12);
  --shadow-gold:   0 8px 32px rgba(212,175,55,0.3);
  --glow-gold:     0 0 40px rgba(212,175,55,0.6);
}

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

html, body {
  background: var(--night);
  color: var(--marble);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ──────────── Background Layers ──────────── */
#bg-layer {
  position: fixed; inset: 0; z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(1.15) contrast(1.08);
  transition: background-image 2s ease-in-out, filter 1.2s ease;
}
#bg-overlay {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at top, transparent 0%, rgba(10,8,6,0.75) 70%),
    linear-gradient(180deg, rgba(10,8,6,0.3) 0%, rgba(10,8,6,0.92) 100%);
  pointer-events: none;
}
#atmos {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ──────────── Typography ──────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--marble);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

.greek-letter {
  font-family: var(--font-display);
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  font-style: normal;
}
.subhead {
  font-family: var(--font-subhead);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}

/* ──────────── Glass / Marble Cards ──────────── */
.marble-card {
  background: linear-gradient(
    135deg,
    rgba(245,240,225,0.06) 0%,
    rgba(245,240,225,0.03) 100%
  );
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 4px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-marble);
  position: relative;
  overflow: hidden;
}
.marble-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.marble-card.ornate::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 2px;
  pointer-events: none;
}

/* ──────────── Buttons ──────────── */
.btn-oracle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-oracle::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FFF2C4, var(--gold-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-oracle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.5), var(--glow-gold);
}
.btn-oracle:hover::before { opacity: 1; }
.btn-oracle span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ──────────── Columns / Dividers ──────────── */
.doric-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}
.doric-divider::before,
.doric-divider::after {
  content: '';
  flex: 1; max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.doric-divider .ornament {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.8;
}

/* ──────────── Agent Cards (Pantheon) ──────────── */
.deity-card {
  background: linear-gradient(180deg, rgba(28,24,20,0.85) 0%, rgba(10,8,6,0.9) 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 3px;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}
.deity-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.2);
}
.deity-card .portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.1) brightness(0.95);
  transition: filter 0.5s ease;
}
.deity-card:hover .portrait { filter: grayscale(0) contrast(1.15) brightness(1.02); }
.deity-card .body {
  padding: 1.5rem;
  border-top: 1px solid rgba(212,175,55,0.2);
}
.deity-card .greek-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.deity-card .greek-script {
  font-family: var(--font-subhead);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--marble-warm);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}
.deity-card .role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.deity-card .domain {
  color: var(--marble);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ──────────── Header ──────────── */
.olympus-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,8,6,0.95), rgba(10,8,6,0.8));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  padding: 1.25rem 2rem;
}
.olympus-header .inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.olympus-header .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.75rem;
}
.olympus-header .brand .glyph {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.olympus-header nav { display: flex; gap: 2rem; align-items: center; }
.olympus-header nav a {
  color: var(--marble);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: color 0.2s;
}
.olympus-header nav a:hover { color: var(--gold); }

/* ──────────── Hero ──────────── */
.hero-olympus {
  min-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}
.hero-olympus h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--marble) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(212,175,55,0.3);
}
.hero-olympus .subhead { max-width: 720px; margin: 0 auto 2.5rem; }

/* ──────────── Layout ──────────── */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .olympus-header nav { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ──────────── Animation: Temple entrance ──────────── */
@keyframes temple-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: temple-rise 1s ease-out both; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.25s; }
.rise-3 { animation-delay: 0.4s; }
.rise-4 { animation-delay: 0.55s; }

/* ──────────── Ornament frames ──────────── */
.meander {
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='24' viewBox='0 0 40 24'><path d='M0 12 L8 12 L8 4 L24 4 L24 20 L32 20 L32 12 L40 12' stroke='%23D4AF37' stroke-width='1.5' fill='none' opacity='0.6'/></svg>");
  background-repeat: repeat-x;
  opacity: 0.7;
}
