/* ═══════════════════════════════════════════════════════════════
   Muse — Global Stylesheet
   Matches the iOS app's dark cinematic ritual aesthetic.
   Colors: VoidBlack #050505 · Cream #F5F5DC · FateGold #D4C5A8
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --void-black: #050505;
  --cream: #F5F5DC;
  --fate-gold: #D4C5A8;
  --silver-mist: rgba(255, 255, 255, 0.35);
  --subtle: rgba(255, 255, 255, 0.5);
  --dimmed: rgba(255, 255, 255, 0.7);
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--void-black);
  color: var(--cream);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--fate-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

::selection {
  background: rgba(212, 197, 168, 0.25);
  color: var(--cream);
}

/* ── Noise Texture Overlay ────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.nav-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fate-gold);
  opacity: 1;
}

/* ── Page Container ───────────────────────────────────────── */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  min-height: 100vh;
}

/* ── Hero Section (Landing) ───────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-icon {
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--subtle);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--fate-gold),
    transparent
  );
  margin: 40px auto;
}

/* ── Cards Grid (Landing) ─────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 197, 168, 0.2);
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 197, 168, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 2px;
}

.card-desc {
  font-size: 13px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card-arrow {
  font-size: 12px;
  color: var(--silver-mist);
}

/* ── Legal Page Content ───────────────────────────────────── */

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}

.legal-date {
  font-size: 13px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--fate-gold);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--dimmed);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--dimmed);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--dimmed);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.legal-content li::marker {
  color: var(--fate-gold);
}

.legal-content strong {
  color: var(--cream);
  font-weight: 600;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Contact Section ──────────────────────────────────────── */

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h1 {
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}

.contact-header p {
  font-size: 15px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin-bottom: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(212, 197, 168, 0.1);
  border: 1px solid rgba(212, 197, 168, 0.2);
  border-radius: 8px;
  color: var(--fate-gold);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease;
}

.contact-link:hover {
  background: rgba(212, 197, 168, 0.15);
  opacity: 1;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer p {
  font-size: 12px;
  color: var(--silver-mist);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--subtle);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Lucide Icons ─────────────────────────────────────────── */

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -0.125em;
}

.hero-icon .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.2;
  color: var(--fate-gold);
  opacity: 0.8;
}

.card-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: var(--fate-gold);
}

.card-arrow .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.contact-card h3 .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  color: var(--fate-gold);
  vertical-align: -0.2em;
  margin-right: 4px;
}

/* ── Fade-in Animation ────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 15px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .legal-header h1,
  .contact-header h1 {
    font-size: 26px;
  }

  .legal-content h2 {
    font-size: 18px;
  }
}
