/* ============================================================
   INCEPTION · II — Design System
   The first 100% community-owned RWA blockchain
   ============================================================ */

/* === CSS Variables === */
:root {
  --marble: #F5F0E8;
  --marble-light: #FAF8F4;
  --nero: #1A1A1E;
  --gold: #C5A55A;
  --gold-light: #D4B96A;
  --gold-dark: #A8893E;
  --pompeian: #8B3A3A;
  --tyrian: #3D2645;
  --travertine: #D4C5A9;
  --senate: #8A8680;
  --warm-white: #FDFBF7;
  --glass-bg: rgba(26, 26, 30, 0.85);
  --glass-border: rgba(197, 165, 90, 0.15);
  --card-bg: rgba(26, 26, 30, 0.6);
  --card-border: rgba(197, 165, 90, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Typography === */
/* Cinzel: Roman serif → Brand name, labels, heritage elements
   Outfit: Modern sans → Headlines, navigation, UI elements
   Cormorant Garamond: Elegant serif → Body text, quotes */

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

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

body {
  background: var(--nero);
  color: var(--marble);
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(26, 26, 30, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s ease;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nav.scrolled { background: rgba(26, 26, 30, 0.98); }

.nav-brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand-text {
  font-family: 'Cinzel', serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.35em; color: var(--marble);
}
.nav-brand-text .gold { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }

.nav-item { position: relative; }

.nav-item > a {
  font-family: 'Outfit', sans-serif; font-size: 11px;
  letter-spacing: 0.18em; font-weight: 500;
  text-transform: uppercase; color: var(--senate);
  padding: 8px 16px; display: flex; align-items: center; gap: 6px;
  transition: color 0.3s;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--gold); }

.nav-item > a .dropdown-arrow {
  width: 8px; height: 8px; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: rotate(45deg);
  transition: transform 0.3s; margin-top: -2px;
}
.nav-item:hover > a .dropdown-arrow, .nav-item.dd-open > a .dropdown-arrow { transform: rotate(-135deg); }
.nav-item.dd-open > a { color: var(--gold); }

/* Dropdown — shadcn-inspired grid layout */
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 420px; padding: 20px;
  background: rgba(22, 22, 26, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(197, 165, 90, 0.12);
  border-radius: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  margin-top: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(197,165,90,0.06) inset;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav-dropdown.dd-single-col { grid-template-columns: 1fr; min-width: 280px; }
.nav-item.dd-open > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* Dropdown link card */
.nav-dropdown a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px; font-family: 'Outfit', sans-serif;
  border-radius: 8px; transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent; text-decoration: none;
}
.nav-dropdown a:hover {
  background: rgba(197, 165, 90, 0.06);
  border-color: rgba(197, 165, 90, 0.12);
}
.nav-dropdown a .dd-icon {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  opacity: 0.5; transition: opacity 0.2s;
}
.nav-dropdown a:hover .dd-icon { opacity: 0.9; }
.nav-dropdown .dd-text { display: flex; flex-direction: column; gap: 3px; }
.nav-dropdown .dd-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--marble); line-height: 1.2;
}
.nav-dropdown .dd-desc {
  font-size: 11px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--senate); line-height: 1.45; opacity: 0.75;
}
.nav-dropdown a:hover .dd-title { color: var(--gold); }
.nav-dropdown a:hover .dd-desc { opacity: 1; }

/* Featured card (spans full width, used in Learn dropdown) */
.nav-dropdown .dd-featured {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  padding: 16px; margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(197,165,90,0.08) 0%, rgba(197,165,90,0.02) 100%);
  border: 1px solid rgba(197,165,90,0.12);
  border-radius: 10px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-dropdown .dd-featured:hover {
  background: linear-gradient(135deg, rgba(197,165,90,0.14) 0%, rgba(197,165,90,0.04) 100%);
  border-color: rgba(197,165,90,0.25);
}
.nav-dropdown .dd-featured .dd-featured-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(197,165,90,0.1);
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown .dd-featured .dd-featured-icon img { width: 22px; height: 22px; opacity: 0.8; }
.nav-dropdown .dd-featured .dd-title { font-size: 13px; }

/* Dropdown divider */
.nav-dropdown .dd-divider {
  grid-column: 1 / -1; height: 1px; margin: 6px 0;
  background: rgba(197,165,90,0.08);
}

.nav-cta {
  font-family: 'Outfit', sans-serif; font-size: 10px;
  letter-spacing: 0.2em; padding: 10px 28px;
  border: 1px solid var(--gold); background: transparent;
  color: var(--gold); cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase; font-weight: 600;
  text-decoration: none;
}
.nav-cta:hover { background: var(--gold); color: var(--nero); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--gold); margin: 6px 0; transition: all 0.3s;
}

/* === Hero Sections === */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 40px 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,30,0.7) 0%, rgba(26,26,30,0.5) 50%, rgba(26,26,30,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.5em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 32px;
}
.hero-title {
  font-family: 'Cinzel', serif; font-weight: 400;
  font-size: clamp(32px, 5vw, 56px); letter-spacing: 0.25em;
  color: var(--marble); margin-bottom: 24px; line-height: 1.2;
}
.hero-title .gold { color: var(--gold); font-weight: 500; }

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-style: italic; font-size: clamp(20px, 2.8vw, 28px);
  color: rgba(245, 240, 232, 0.7); letter-spacing: 0.06em;
  margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}

.gold-line {
  width: 60px; height: 1px; background: var(--gold);
  margin: 0 auto 40px;
}

/* === Buttons === */
.btn {
  font-family: 'Outfit', sans-serif; font-size: 11px;
  letter-spacing: 0.25em; padding: 16px 48px;
  border: 1px solid var(--gold); background: transparent;
  color: var(--gold); cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none; display: inline-block;
  font-weight: 500; text-transform: uppercase;
}
.btn:hover { background: var(--gold); color: var(--nero); letter-spacing: 0.3em; }

.btn-solid {
  background: var(--gold); color: var(--nero); border-color: var(--gold);
}
.btn-solid:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  letter-spacing: 0.3em;
}

.btn-sm { padding: 10px 28px; font-size: 10px; }

/* === Sections === */
.section {
  padding: 140px 48px; max-width: 100%; position: relative;
}
.section-light { background: var(--marble); color: var(--nero); }
.section-dark { background: var(--nero); color: var(--marble); }
.section-warm { background: var(--warm-white); color: var(--nero); }

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

.section-label {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.4em; color: var(--gold);
  margin-bottom: 20px; text-transform: uppercase;
}

.section-title {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(28px, 3.8vw, 48px); letter-spacing: 0.06em;
  margin-bottom: 40px; line-height: 1.15; text-transform: uppercase;
}

.section-body {
  font-family: 'Cormorant Garamond', serif; font-size: 20px;
  line-height: 1.85; max-width: 680px; font-weight: 400;
}
.section-light .section-body { color: #4A4A4A; }
.section-dark .section-body { color: var(--senate); }

/* === Visual Break (Full-screen image sections) === */
.visual-break {
  position: relative; width: 100%; min-height: 100vh; overflow: hidden;
}
.visual-break .bg-image {
  position: absolute; inset: 0; background-size: cover;
  background-position: center;
}
.visual-break .bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,30,0.85) 0%, rgba(26,26,30,0.4) 100%);
}
.visual-break .overlay-content {
  position: relative; z-index: 2; display: flex;
  flex-direction: column; justify-content: center;
  padding: 140px 48px; min-height: 100vh;
}
.visual-break .overlay-content .section-label {
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.4em; color: var(--gold); margin-bottom: 24px;
}
.visual-break .overlay-content h2 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(32px, 5vw, 64px); letter-spacing: 0.08em;
  color: var(--marble); line-height: 1.15; margin-bottom: 28px;
  text-transform: uppercase;
}
.visual-break .overlay-content p {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  color: rgba(245, 240, 232, 0.7); font-weight: 300;
  font-style: italic; max-width: 580px; line-height: 1.7;
}

/* === Cards === */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 40px; position: relative;
  transition: var(--transition-smooth); overflow: hidden;
}
.card:hover { border-color: rgba(197, 165, 90, 0.3); transform: translateY(-4px); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }

.card-light {
  background: white; border-color: rgba(0,0,0,0.06);
}
.card-light:hover { border-color: var(--gold); }

.card-icon {
  font-size: 28px; color: var(--gold); margin-bottom: 20px;
}

.card h3 {
  font-family: 'Outfit', sans-serif; font-size: 14px;
  letter-spacing: 0.15em; font-weight: 600;
  text-transform: uppercase; margin-bottom: 16px;
}

.card p {
  font-family: 'Cormorant Garamond', serif; font-size: 20px;
  line-height: 1.75; color: var(--senate);
}

/* === Stats Bar === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--glass-border);
  border: 1px solid var(--glass-border); border-radius: 12px;
  overflow: hidden;
}
.stat-item {
  background: var(--card-bg); padding: 40px 24px; text-align: center;
}
.stat-number {
  font-family: 'Outfit', sans-serif; font-size: clamp(28px, 3vw, 44px);
  font-weight: 700; color: var(--gold); margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 0.3em; color: var(--senate); text-transform: uppercase;
}

/* === Pillar Cards (3-column with dividers) === */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.pillar-number {
  font-family: 'Cinzel', serif; font-size: 64px;
  font-weight: 600; color: var(--gold); margin-bottom: 20px;
  line-height: 1; letter-spacing: 0.08em;
}
.pillar-title {
  font-family: 'Outfit', sans-serif; font-size: 14px;
  letter-spacing: 0.18em; font-weight: 600;
  text-transform: uppercase; margin-bottom: 20px;
}
.pillar-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 20px;
  line-height: 1.8; color: var(--senate);
}

/* === Asset Cards Grid === */
.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* === Timeline === */
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; position: relative; padding-top: 48px;
}
.timeline::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, var(--gold), var(--travertine), var(--gold));
}
.timeline-item { position: relative; text-align: center; }
.timeline-item::before {
  content: ''; position: absolute; top: -52px; left: 50%;
  width: 8px; height: 8px; border: 1px solid var(--gold);
  background: var(--nero); transform: translateX(-50%) rotate(45deg);
}
.timeline-phase {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.3em; color: var(--gold); margin-bottom: 10px;
}
.timeline-title {
  font-family: 'Outfit', sans-serif; font-size: 13px;
  letter-spacing: 0.1em; margin-bottom: 10px;
  font-weight: 700; text-transform: uppercase;
}
.timeline-desc {
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  color: var(--senate); line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
  background: var(--nero); padding: 160px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section .section-title { color: var(--marble); margin-bottom: 24px; }
.cta-body {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  color: var(--senate); line-height: 1.8; margin-bottom: 50px;
  font-style: italic;
}

/* === Footer === */
.footer {
  background: var(--nero); border-top: 1px solid var(--glass-border);
  padding: 80px 48px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand-col .footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.footer-brand-col .footer-logo img { height: 32px; }
.footer-brand-col .footer-logo span {
  font-family: 'Cinzel', serif; font-size: 12px;
  letter-spacing: 0.3em; color: var(--marble);
}
.footer-brand-col p {
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  color: var(--senate); line-height: 1.7; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--glass-border);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--senate); font-size: 14px;
  transition: var(--transition-smooth); text-decoration: none;
}
.footer-social a img { width: 16px; height: 16px; opacity: 0.6; transition: opacity 0.3s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a:hover img { opacity: 1; }

.footer-col h4 {
  font-family: 'Outfit', sans-serif; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-family: 'Outfit', sans-serif; font-size: 12px;
  letter-spacing: 0.08em; color: var(--senate);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px; margin: 48px auto 0; padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p {
  font-family: 'Outfit', sans-serif; font-size: 11px;
  letter-spacing: 0.1em; color: var(--senate);
}

/* === Page Header (for interior pages) === */
.page-header {
  padding: 160px 48px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header .bg-image {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; opacity: 0.3;
}
.page-header .bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--nero) 0%, rgba(26,26,30,0.8) 50%, var(--nero) 100%);
}
.page-header-content { position: relative; z-index: 1; }

/* === Feature Grid === */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* === Table Styles === */
.data-table {
  width: 100%; border-collapse: collapse;
  font-family: 'Outfit', sans-serif; font-size: 13px;
}
.data-table th {
  background: rgba(197, 165, 90, 0.1); padding: 14px 20px;
  text-align: left; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}
.data-table td {
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--senate);
}
.data-table tr:hover td { background: rgba(197, 165, 90, 0.03); }

/* === Utility Classes === */
.text-gold { color: var(--gold); }
.text-marble { color: var(--marble); }
.text-senate { color: var(--senate); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-80 { margin-bottom: 80px; }
.mt-40 { margin-top: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-680 { max-width: 680px; }
.max-w-900 { max-width: 900px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up {
  opacity: 0; animation: fadeUp 1s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* === Scroll-triggered animations === */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Dividers === */
.divider {
  width: 100%; max-width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--travertine), transparent);
  margin: 0 auto;
}
.divider-gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .section { padding: 100px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(26, 26, 30, 0.98); padding: 24px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; margin: 0; grid-template-columns: 1fr; min-width: 0; box-shadow: none; border: none; padding: 8px 0; }
  .nav-dropdown .dd-featured { display: none; }
  .nav-dropdown .dd-divider { display: none; }
  .nav-dropdown .dd-desc { display: none; }
  .section { padding: 80px 20px; }
  .hero { padding: 100px 20px 60px; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
