/* ============================================
   AURORA-LENS DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary:     #0f0e0c;
  --bg-secondary:   #161410;
  --bg-card:        #1a1814;
  --gold:           #A38B65;
  --gold-light:     #e09a2a;
  --gold-dim:       #8a5c12;
  --text-primary:   #f0ebe3;
  --text-secondary: #a89880;
  --text-muted:     #6b5d4f;
  --border:         #2a2420;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

a:hover { color: var(--gold-light); }

.gold { color: var(--gold); }

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

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

section { padding: 6rem 0; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   NAVIGATION
   ============================================ */

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

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

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.nav-demo { padding: 0.5rem 1rem; }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 14, 12, 0.85) 0%,
    rgba(15, 14, 12, 0.5) 60%,
    rgba(15, 14, 12, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.hero-content h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  color: var(--gold);
  font-size: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.hiw-left h2 { margin-bottom: 1rem; }

.hiw-diagram {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.diagram-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.diagram-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.diagram-sublabel {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.diagram-arrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin-top: 0.5rem;
}

.gate-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1.5px solid #A67C52;
  box-shadow:
    0 0 8px rgba(166, 124, 82, 0.9),
    0 0 20px rgba(166, 124, 82, 0.3),
    inset 0 0 12px rgba(166, 124, 82, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem;
}

.gate-inner strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate-inner span {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.diagram-outcomes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.outcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.outcome-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.outcome-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.outcome-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

.outcome-dot.green { border-color: #3a7a4a; box-shadow: 0 0 8px rgba(58,122,74,0.5); }
.outcome-dot.red   { border-color: #8a2a2a; box-shadow: 0 0 8px rgba(138,42,42,0.5); }
.outcome-dot.amber { border-color: #8a6a1a; box-shadow: 0 0 8px rgba(138,106,26,0.5); }

/* ============================================
   WHY IT MATTERS
   ============================================ */

.wim-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.wim-left h2 { margin-bottom: 1rem; }
.wim-left p  { margin-bottom: 1.5rem; }

.wim-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.wim-link:hover { color: var(--gold-light); }

.wim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.domain-card {
  background: var(--bg-card);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  justify-content: flex-end;
  transition: background 0.2s ease;
}

.domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 70%;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.domain-card.healthcare::before  { background-image: url('../assets/images/domain-healthcare.png'); }
.domain-card.finance::before     { background-image: url('../assets/images/domain-finance.png'); }
.domain-card.legal::before       { background-image: url('../assets/images/domain-legal.png'); }
.domain-card.enterprise::before  { background-image: url('../assets/images/domain-enterprise.png'); }
.domain-card.education::before   { background-image: url('../assets/images/domain-education.png'); }
.domain-card.workforce::before   { background-image: url('../assets/images/domain-workforce.png'); }

.domain-card:hover { background: #1f1c18; }
.domain-card:hover::before { opacity: 0.5; }
.domain-card > * { position: relative; z-index: 1; }

.domain-svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.domain-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  display: block;
}

.domain-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   TRUST
   ============================================ */

.trust {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.trust-header {
  text-align: left;
  margin-bottom: 0;
}

.trust-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ============================================
   GO DEEPER
   ============================================ */

.gd-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.gd-left h2 { margin-bottom: 1rem; }
.gd-left p  { margin-bottom: 1.5rem; }

.gd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.gd-card {
  background: var(--bg-card);
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

.gd-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 60%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.gd-card.architecture::before { background-image: url('../assets/images/gd-architecture.png'); }
.gd-card.research::before     { background-image: url('../assets/images/gd-research.png'); }
.gd-card.evidence::before     { background-image: url('../assets/images/gd-evidence.png'); }
.gd-card.chronology::before   { background-image: url('../assets/images/gd-chronology.png'); }

.gd-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 14, 12, 0.75) 0%,
    rgba(15, 14, 12, 0.4) 50%,
    rgba(15, 14, 12, 0.1) 100%
  );
  z-index: 0;
}

.gd-card:hover { background: #1f1c18; }
.gd-card:hover::before { opacity: 0.4; }
.gd-card > * { position: relative; z-index: 1; }

.gd-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  display: block;
}

.gd-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   FOOTER CTA
   ============================================ */

.footer-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.footer-cta-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-primary);
}

.footer-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex-shrink: 0;
}

.footer-cta-right p { font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-inner p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.domain-card strong,
.domain-card p,
.gd-card strong,
.gd-card p {
  color: var(--text-primary);
}

.domain-card p,
.gd-card p {
  color: var(--text-secondary);
}

.diagram-outcomes {
  position: relative;
  padding-left: 1.5rem;
}

.diagram-outcomes::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(110, 72, 48, 0.6),
    rgba(110, 72, 48, 0.2)
  );
}

.outcome::before {
  content: '';
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1px;
  background: rgba(110, 72, 48, 0.4);
}

.outcome {
  position: relative;
}

.hiw-diagram img {
  display: block;
  mix-blend-mode: lighten;
}

.wim-grid a strong,
.wim-grid a p {
  color: var(--text-primary);
}

.wim-grid a p {
  color: var(--text-secondary);
}

/* ============================================
   OVERVIEW PAGE FIXES
   ============================================ */

/* Problem section pillar titles should be white */
.problem-card h3,
.problem-card strong,
.problem-grid h3,
.problem-grid strong {
  color: var(--text-primary);
}

/* Governance vs filtering paragraph spacing */
.governance-filtering p,
.filtering-section p,
.governance-section p {
  margin-bottom: 1rem;
}

.governance-filtering p:last-child,
.filtering-section p:last-child,
.governance-section p:last-child {
  margin-bottom: 0;
}

/* Subtle card treatment to avoid "blank square" feel */
.problem-card,
.logic-card,
.governance-card,
.overview-card {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0)
    ),
    var(--bg-card);

  border: 1px solid rgba(163, 139, 101, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 0 0 1px rgba(255,255,255,0.01);

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.problem-card:hover,
.logic-card:hover,
.governance-card:hover,
.overview-card:hover {
  border-color: rgba(163, 139, 101, 0.14);
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0)
    ),
    #1d1915;
}
