/* Core Variables & Reset */
:root {
  --bg-obsidian: #050505;
  --bg-obsidian-card: rgba(12, 12, 12, 0.7);
  --bg-obsidian-hover: rgba(22, 22, 22, 0.9);
  
  --color-gold-light: #f6e5c5;
  --color-gold: #d4af37;
  --color-gold-dark: #aa8420;
  
  --color-text-primary: #f8f9fa;
  --color-text-secondary: #9da3af;
  --color-green: #39d353;
  
  --border-gold-subtle: rgba(212, 175, 55, 0.08);
  --border-gold-active: rgba(212, 175, 55, 0.28);
  --border-gold-strong: rgba(212, 175, 55, 0.45);
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  
  /* Delicate gold grid texture in background */
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
}

/* Ambient glows */
.radial-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
}

.glow-top {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, rgba(212, 175, 55, 0.01) 60%, transparent 100%);
}

.glow-center {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
}

/* Typography & General Styling */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Header styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.75);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.2));
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--color-text-primary);
}

.nav-item:hover::after {
  width: 100%;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-gold-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
}

/* Hero Section */
.hero-section {
  padding-top: 11rem;
  padding-bottom: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 45%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--bg-obsidian);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-primary);
  border: 1px solid var(--border-gold-active);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--border-gold-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Main Sections */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 2rem;
}

.pillars-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--bg-obsidian-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-active);
  background: var(--bg-obsidian-hover);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.06);
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--color-gold);
  transition: var(--transition-smooth);
}

.card:hover .card-icon-wrapper {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold-active);
  color: var(--color-gold-light);
  transform: scale(1.05);
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.bullet-check {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

/* System Integrity Section */
.integrity-section {
  padding-bottom: 4rem;
}

.integrity-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border-gold-active);
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.03), transparent 70%), var(--bg-obsidian-card);
}

.integrity-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3.5rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(57, 211, 83, 0.05);
  border: 1px solid rgba(57, 211, 83, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--color-green);
  margin-bottom: 1.25rem;
}

.status-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--color-green);
  border-radius: 50%;
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.status-text {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.integrity-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.status-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition-fast);
}

.status-box:hover {
  border-color: var(--border-gold-active);
  background: rgba(0, 0, 0, 0.5);
}

.status-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.status-val {
  display: block;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.text-green {
  color: var(--color-green);
  text-shadow: 0 0 10px rgba(57, 211, 83, 0.15);
}

.text-gold {
  color: var(--color-gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.status-sub {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

.integrity-footer {
  display: flex;
  gap: 1.25rem;
  background: rgba(212, 175, 55, 0.02);
  border: 1px dashed var(--border-gold-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  align-items: flex-start;
}

.lock-icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.integrity-note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* LLC Charter Section */
.mandate-card {
  max-width: 800px;
  margin: 0 auto;
  border-left: 2px solid var(--color-gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.02) 0%, transparent 100%);
  padding: 3rem 2.5rem;
}

.mandate-tag {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mandate-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mandate-text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.sig-container {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-gold-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.sig-title {
  font-family: var(--font-title);
  color: var(--color-text-primary);
  font-weight: 500;
}

.sig-sub {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Footer */
.site-footer {
  background-color: #020202;
  border-top: 1px solid var(--border-gold-subtle);
  padding: 4.5rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-text {
  font-size: 1.1rem;
}

.footer-motto {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-gold-subtle);
  margin: 2.5rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.disclosure {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
  font-weight: 300;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  .nav-links {
    display: none; /* Hide simple nav links on mobile for premium simplicity */
  }
  .hero-section {
    padding-top: 9rem;
    padding-bottom: 5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .card {
    padding: 2.25rem 1.75rem;
  }
  .disclosure {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Progressive Enhancement: Scroll-Driven Entry Transitions */

/* 1. Default Style for non-supporting browsers with IntersectionObserver fallback active */
.scroll-reveal {
  opacity: 1; /* Fallback starts visible so page functions without JS */
}

/* If no browser support for native view timeline, we use transition classes via JS fallback */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Native Scroll-Driven Animations in modern browsers */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(35px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal {
      animation: fade-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 35%;
    }
  }
}
