/* ===== BASE TOKENS ===== */
:root {
  --bg-deep: #0A0808;
  --bg-card: #100E0E;
  --bg-surface: #161210;
  --oxblood: #8B1C1C;
  --oxblood-dim: #5C1212;
  --parchment: #F0EBE0;
  --parchment-dim: #C8BFB0;
  --gold: #B8965A;
  --gold-dim: #8A6D3E;
  --text-primary: #F0EBE0;
  --text-secondary: #9A9080;
  --text-muted: #5A5248;
  --border: rgba(184, 150, 90, 0.12);
  --border-bright: rgba(184, 150, 90, 0.25);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--oxblood);
  color: var(--parchment);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--oxblood-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--oxblood); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--parchment);
}

/* ===== ORNAMENT TOP ===== */
.ornament-top {
  width: 100%;
  height: 60px;
  display: block;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, rgba(139, 28, 28, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184, 150, 90, 0.04) 0%, transparent 60%),
    var(--bg-deep);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.eyebrow-text {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: lowercase;
}

/* Hero title */
.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.05;
}

.title-line-1 {
  display: block;
  font-size: 1.3em;
  letter-spacing: 0.25em;
  color: var(--parchment);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.title-line-2 {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Hero lede */
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.8;
}

/* Hero visual - the orb */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.corvus-orb {
  position: relative;
  width: 300px;
  height: 300px;
}

.orb-svg {
  width: 100%;
  height: 100%;
  animation: orb-breathe 6s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.orb-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 28, 28, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px 40px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0D0B0B 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.label-rule {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.label-text {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}

.manifesto-quote {
  font-family: 'Crimson Text', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 48px;
}

.manifesto-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 40px;
  background: #0D0B0B;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 80px;
}

.section-eyebrow {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 16px;
}

.features-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--parchment);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  font-family: 'Crimson Text', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold-dim);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ===== SANCTUARY ===== */
.sanctuary {
  padding: 120px 40px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(139, 28, 28, 0.06) 0%, transparent 60%),
    #0A0808;
  border-top: 1px solid var(--border);
}

.sanctuary-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sanctuary-ornament {
  margin-bottom: 48px;
}

.sanctuary-ornament svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.sanctuary-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-style: italic;
  color: var(--parchment);
  margin-bottom: 32px;
  line-height: 1.3;
}

.sanctuary-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 60px;
}

.sanctuary-crescents {
  max-width: 200px;
  margin: 0 auto;
}

.sanctuary-crescents svg {
  width: 100%;
  height: auto;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 40px 120px;
  background: linear-gradient(180deg, #0A0808 0%, #0D0B0B 100%);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-statement {
  font-family: 'Crimson Text', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 32px;
}

.closing-ornament {
  margin-bottom: 40px;
}

.closing-ornament svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.closing-tagline {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.closing-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 40px;
  background: #0A0808;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-corvus {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-orb {
  width: 40px;
  height: 40px;
}

.footer-name {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-copy {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .hero-visual { order: -1; }
  .corvus-orb { width: 200px; height: 200px; }

  .hero-title { font-size: 3rem; }
  .hero-lede { font-size: 1rem; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manifesto, .sanctuary, .closing, .features { padding: 80px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .title-line-1 { font-size: 1.1em; letter-spacing: 0.15em; }
  .manifesto-quote { font-size: 2rem; }
  .closing-statement { font-size: 1.8rem; }
  .closing-tagline { letter-spacing: 0.15em; }
}
