/* ============================================================
   SHARED.CSS — I AM LEGACY Design System Foundation
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #080808;
  --bg-2:        #111111;
  --gold:        #C9A84C;
  --gold-light:  #E2C06B;
  --gold-dim:    rgba(201, 168, 76, 0.15);
  --white:       #FFFFFF;
  --muted:       rgba(255, 255, 255, 0.6);
  --muted-2:     rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-head:   'Playfair Display', serif;
  --font-sub:    'Inter', sans-serif;

  /* Layout */
  --radius:      12px;
  --max-width:   1200px;

  /* Motion */
  --transition:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Base ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color:            var(--white);
  font-family:      var(--font-sub);
  overflow-x:       hidden;
}

::selection {
  background-color: var(--gold);
  color:            #000;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background:    var(--gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #111;
}

/* ── Typography ─────────────────────────────────────────────── */
.headline {
  font-family:    var(--font-head);
  font-weight:    700;
  line-height:    1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family:    var(--font-sub);
  font-size:      0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--gold);
  display:        flex;
  align-items:    center;
  gap:            8px;
}

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

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--gold);
  color:            #000;
  font-family:      var(--font-sub);
  font-weight:      700;
  padding:          16px 36px;
  border-radius:    50px;
  border:           none;
  cursor:           pointer;
  transition:       var(--transition);
  letter-spacing:   0.03em;
  font-size:        0.9rem;
  display:          inline-block;
  text-decoration:  none;
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform:        translateY(-2px);
  box-shadow:       0 8px 30px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  background-color: transparent;
  color:            var(--white);
  font-family:      var(--font-sub);
  font-weight:      700;
  padding:          16px 36px;
  border-radius:    50px;
  border:           1px solid rgba(255, 255, 255, 0.2);
  cursor:           pointer;
  transition:       var(--transition);
  letter-spacing:   0.03em;
  font-size:        0.9rem;
  display:          inline-block;
  text-decoration:  none;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin:    0 auto;
  padding:   0 24px;
}

.section {
  padding: 120px 0;
}

.section-sm {
  padding: 80px 0;
}

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity:    0;
  transform:  translateY(40px);
  transition: opacity   0.8s var(--transition),
              transform 0.8s var(--transition);
}

.reveal.visible {
  opacity:   1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
#mainNav {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    100;
  padding:    24px 0;
  transition: all var(--transition);
}

#mainNav.scrolled {
  padding:       14px 0;
  background:    rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.nav-logo {
  font-family:     var(--font-head);
  font-size:       1.3rem;
  font-weight:     900;
  color:           var(--white);
  text-decoration: none;
  letter-spacing:  0.05em;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links-list a {
  color:           var(--muted);
  text-decoration: none;
  font-size:       0.85rem;
  letter-spacing:  0.05em;
  transition:      color var(--transition);
}

.nav-links-list a:hover {
  color: var(--white);
}

.nav-actions {
  display:     flex;
  align-items: center;
  gap:         16px;
}

#langToggle {
  background:     none;
  border:         1px solid rgba(255, 255, 255, 0.15);
  color:          var(--muted);
  padding:        6px 14px;
  border-radius:  50px;
  font-size:      0.75rem;
  cursor:         pointer;
  letter-spacing: 0.08em;
  transition:     all var(--transition);
}

#langToggle:hover {
  border-color: var(--gold);
  color:        var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
#hero {
  position:   relative;
  width:      100%;
  height:     100vh;
  min-height: 700px;
  display:    flex;
  align-items: center;
  overflow:   hidden;
}

.hero-video-wrap {
  position: absolute;
  inset:    0;
  z-index:  0;
}

.hero-video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     brightness(0.55) saturate(0.8);
}

.hero-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.3)  0%,
    rgba(8, 8, 8, 0.1)  40%,
    rgba(8, 8, 8, 0.7)  80%,
    rgba(8, 8, 8, 1)    100%
  );
}

.hero-content {
  position:  relative;
  z-index:   2;
  max-width: 800px;
}

.hero-dot {
  display:       inline-block;
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--gold);
  animation:     pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,  100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

.hero-headline {
  font-size:   clamp(2.8rem, 6vw, 5.5rem);
  margin:      24px 0 20px;
  line-height: 1.08;
}

.hero-sub {
  font-size:      clamp(1rem, 1.8vw, 1.25rem);
  color:          var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom:  40px;
  font-weight:    300;
}

.hero-ctas {
  display:   flex;
  gap:       16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position:        absolute;
  bottom:          40px;
  left:            50%;
  transform:       translateX(-50%);
  z-index:         2;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             8px;
}

.scroll-line {
  width:      1px;
  height:     48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation:  scroll-drop 1.8s infinite;
}

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.scroll-label {
  font-size:      0.65rem;
  letter-spacing: 0.2em;
  color:          var(--muted-2);
  text-transform: uppercase;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-headline       { font-size: 2.4rem; }
  .hero-ctas           { flex-direction: column; }
  .hero-ctas a         { text-align: center; }
  .nav-links-list      { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   BELONGING
═══════════════════════════════════════════════════════════ */
.belonging-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

.belonging-levels {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.level-card {
  display:          flex;
  gap:              20px;
  align-items:      flex-start;
  padding:          20px 24px;
  border:           1px solid rgba(201, 168, 76, 0.12);
  border-radius:    var(--radius);
  background:       rgba(201, 168, 76, 0.03);
  transition:       border-color var(--transition), background var(--transition);
}

.level-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background:   rgba(201, 168, 76, 0.07);
}

.level-num {
  font-family: var(--font-head);
  font-size:   1.4rem;
  font-weight: 700;
  min-width:   32px;
  line-height: 1;
  padding-top: 2px;
}

.level-card strong {
  display:       block;
  font-size:     1rem;
  font-weight:   600;
  margin-bottom: 4px;
}

.level-card p {
  font-size:   0.875rem;
  color:       var(--muted);
  margin:      0;
  line-height: 1.6;
}

.belonging-img-wrap {
  position:      relative;
  border-radius: 20px;
  overflow:      hidden;
  aspect-ratio:  4/5;
}

.belonging-img-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.belonging-img-wrap:hover img {
  transform: scale(1.04);
}

.belonging-img-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.7) 0%, transparent 60%);
}

.belonging-badge {
  position:       absolute;
  bottom:         28px;
  left:           28px;
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

/* ═══════════════════════════════════════════════════════════
   PILLARS
═══════════════════════════════════════════════════════════ */
.pillars-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.pillar-card {
  border-radius: 20px;
  overflow:      hidden;
  background:    var(--bg);
  border:        1px solid rgba(255, 255, 255, 0.06);
  transition:    transform var(--transition), border-color var(--transition);
  cursor:        default;
}

.pillar-card:hover {
  transform:    translateY(-6px);
  border-color: rgba(201, 168, 76, 0.3);
}

.pillar-video-wrap {
  position:     relative;
  aspect-ratio: 16/9;
  overflow:     hidden;
}

.pillar-video-wrap video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.pillar-card:hover .pillar-video-wrap video {
  transform: scale(1.06);
}

.pillar-video-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.1) 100%);
}

.pillar-content {
  padding: 28px 28px 32px;
}

.pillar-num {
  font-family:    var(--font-head);
  font-size:      0.9rem;
  font-weight:    700;
  letter-spacing: 0.1em;
}

.pillar-content p {
  font-size:   0.9rem;
  line-height: 1.7;
  margin:      0;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .belonging-grid            { grid-template-columns: 1fr; gap: 48px; }
  .belonging-media           { order: -1; }
  .belonging-img-wrap        { aspect-ratio: 16/9; }
  .pillars-grid              { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   SOCIAL PROOF
═══════════════════════════════════════════════════════════ */
.proof-grid {
  display:               grid;
  grid-template-columns: 1.2fr 1fr;
  gap:                   32px;
  align-items:           start;
}

.proof-video-wrap {
  position:      relative;
  border-radius: 20px;
  overflow:      hidden;
  aspect-ratio:  9/12;
}

.proof-video-wrap video {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.proof-video-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.1) 60%);
}

.proof-quote {
  position: absolute;
  bottom:   0;
  left:     0;
  right:    0;
  padding:  32px;
}

.proof-quote p {
  font-family:   var(--font-head);
  font-size:     1.1rem;
  line-height:   1.6;
  margin-bottom: 12px;
  font-style:    italic;
}

.proof-name {
  font-size:      0.8rem;
  color:          var(--gold);
  letter-spacing: 0.05em;
}

.proof-side {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.proof-card {
  padding:       28px;
  border:        1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  background:    rgba(201, 168, 76, 0.03);
  transition:    border-color var(--transition);
}

.proof-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.proof-card-icon {
  font-family:   var(--font-head);
  font-size:     2.5rem;
  line-height:   1;
  margin-bottom: 12px;
}

.proof-card p {
  font-size:     0.95rem;
  line-height:   1.7;
  color:         var(--muted);
  margin-bottom: 16px;
  font-style:    italic;
}

.proof-stats {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         28px;
  border:          1px solid rgba(201, 168, 76, 0.15);
  border-radius:   var(--radius);
  background:      var(--bg);
}

.stat-item {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            4px;
  text-align:     center;
}

.stat-num {
  font-family: var(--font-head);
  font-size:   1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-item span:last-child {
  font-size: 0.75rem;
}

.stat-divider {
  width:      1px;
  height:     40px;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCES CAROUSEL
═══════════════════════════════════════════════════════════ */
.experiences-track-wrap {
  padding-left: calc((100vw - min(1200px, 100vw - 48px)) / 2 + 24px);
  overflow:     hidden;
}

.experiences-track {
  display:    flex;
  gap:        24px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.exp-card {
  flex:          0 0 340px;
  border-radius: 20px;
  overflow:      hidden;
  background:    var(--bg);
  border:        1px solid rgba(255, 255, 255, 0.06);
  transition:    transform var(--transition), border-color var(--transition);
}

.exp-card:hover {
  transform:    translateY(-6px);
  border-color: rgba(201, 168, 76, 0.25);
}

.exp-media {
  position:     relative;
  aspect-ratio: 16/10;
  overflow:     hidden;
}

.exp-media img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.exp-card:hover .exp-media img {
  transform: scale(1.06);
}

.exp-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.6) 0%, transparent 60%);
}

.exp-content {
  padding: 24px;
}

.exp-tag {
  display:        inline-block;
  font-size:      0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--gold);
  border:         1px solid rgba(201, 168, 76, 0.3);
  padding:        4px 12px;
  border-radius:  50px;
  margin-bottom:  12px;
}

.exp-content h4 {
  font-family:   var(--font-head);
  font-size:     1.15rem;
  font-weight:   700;
  margin-bottom: 8px;
}

.exp-content p {
  font-size:   0.85rem;
  line-height: 1.6;
  margin:      0;
}

.carousel-controls {
  display: flex;
  gap:     12px;
}

.carousel-btn {
  width:         44px;
  height:        44px;
  border-radius: 50%;
  border:        1px solid rgba(201, 168, 76, 0.3);
  background:    transparent;
  color:         var(--gold);
  font-size:     1.1rem;
  cursor:        pointer;
  transition:    all var(--transition);
  display:       flex;
  align-items:   center;
  justify-content: center;
}

.carousel-btn:hover {
  background:   var(--gold);
  color:        #000;
  border-color: var(--gold);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .proof-grid          { grid-template-columns: 1fr; }
  .proof-video-wrap    { aspect-ratio: 16/10; }
  .exp-card            { flex: 0 0 280px; }
}


/* ═══════════════════════════════════════════════════════════
   ECOSYSTEM
═══════════════════════════════════════════════════════════ */
.ecosystem-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   28px;
}

.eco-card {
  padding:        40px;
  border:         1px solid rgba(201, 168, 76, 0.12);
  border-radius:  20px;
  background:     var(--bg-2);
  display:        flex;
  flex-direction: column;
  gap:            28px;
  transition:     border-color var(--transition);
}

.eco-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.eco-badge {
  display:       inline-block;
  padding:       6px 14px;
  border:        1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  margin-bottom: 4px;
}

.eco-visual {
  flex: 1;
}

.eco-screen {
  background:    var(--bg);
  border:        1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow:      hidden;
}

.eco-screen-bar {
  display:      flex;
  align-items:  center;
  gap:          6px;
  padding:      10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eco-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
}

.eco-screen-body {
  padding: 20px;
}

.eco-stat-row {
  display:         flex;
  justify-content: space-between;
  margin-bottom:   20px;
}

.eco-stat {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}

.eco-bar-chart {
  display:     flex;
  align-items: flex-end;
  gap:         6px;
  height:      60px;
}

.eco-bar {
  flex:          1;
  background:    rgba(201, 168, 76, 0.25);
  border-radius: 4px 4px 0 0;
  transition:    height 0.5s var(--transition);
}

.eco-capital-overlay {
  position:   relative;
  margin-top: -60px;
  padding:    20px;
}

.eco-capital-stat {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}

.eco-btn {
  display:         inline-block;
  text-align:      center;
  text-decoration: none;
  margin-top:      auto;
}

@media (max-width: 900px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}
