:root {
  --bg: #030704;
  --surface: #07130b;
  --surface-card: #0b1d12;
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --emerald: #2bb673;
  --ruby: #ff2a6d;
  --text: #f0f5f1;
  --muted: #8ca395;
  --line: rgba(212, 175, 55, 0.2);
  --display: Syne, Arial, sans-serif;
  --body: Manrope, Arial, sans-serif;
  --mono: "DM Mono", monospace;
  color-scheme: dark;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; overflow-x: hidden; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E<filter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1.4rem;
  background: var(--gold-bright);
  color: #030704;
  font-weight: 800;
  transform: translateY(-200%);
  transition: transform 180ms ease;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

/* 1. SEAMLESS FLOATING NAVBAR */
.eden-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  height: 70px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.nav-container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}
.nav-tag {
  color: var(--muted);
  font: 700 0.54rem/1 var(--mono);
  letter-spacing: 0.18em;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  background: rgba(3, 7, 4, 0.4);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(212, 175, 55, 0.28) 100%);
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font: 700 0.64rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 250ms ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-bright);
  color: #030704;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}
.cta-mobile { display: none; }

/* 2. HERO: BALANCED & CINEMATIC */
.eden-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 6.5rem 1.5rem 4.5rem;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
  filter: saturate(1.2) contrast(1.1);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 45%, rgba(3, 7, 4, 0.45) 0%, rgba(3, 7, 4, 0.88) 75%, rgba(3, 7, 4, 0.98) 100%),
              linear-gradient(to bottom, rgba(3, 7, 4, 0.7) 0%, transparent 45%, rgba(3, 7, 4, 0.95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 54rem;
  text-align: center;
  margin: auto;
}
.hero-logo-wrap {
  margin-bottom: 1.4rem;
}
.hero-master-logo {
  width: clamp(13rem, 24vw, 18rem);
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.6));
  animation: float 5s ease-in-out infinite;
}

.hero-headline-wrap {
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 42, 109, 0.14);
  border: 1px solid rgba(255, 42, 109, 0.45);
  color: #ff6895;
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.22em;
  border-radius: 999px;
  text-transform: uppercase;
}
.hero-title {
  font: 800 clamp(2rem, 4.4vw, 3.6rem)/1.08 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.text-gold {
  display: block;
  color: var(--gold-bright);
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}
.hero-description {
  max-width: 38rem;
  margin: 0 auto;
  color: #c9d6ce;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.75;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}
.btn-gold-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 60%, #aa8b28 100%);
  color: #030704;
  font: 800 0.72rem/1 var(--body);
  letter-spacing: 0.16em;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  transition: all 250ms ease;
}
.btn-gold-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.8);
  filter: brightness(1.08);
}
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(11, 29, 18, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 700 0.7rem/1 var(--body);
  letter-spacing: 0.16em;
  border-radius: 999px;
  text-transform: uppercase;
  transition: all 250ms ease;
}
.btn-glass:hover {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
}
.cue-label {
  font: 500 0.52rem/1 var(--mono);
  letter-spacing: 0.25em;
  color: var(--muted);
}
.cue-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}

/* 3. DUAL-ERA EVOLUTION */
.evolution-section {
  position: relative;
  padding: 7rem 4vw;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.section-container {
  max-width: 76rem;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 4rem;
}
.sub-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--emerald);
  font: 700 0.6rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-heading {
  font: 800 clamp(2.2rem, 4.5vw, 3.8rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.era-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transition: all 300ms ease;
}
.era-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
.era-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.era-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.era-card:hover .era-visual img {
  transform: scale(1.05);
}
.era-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-card) 0%, transparent 60%);
}
.era-overlay-future {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-card) 0%, rgba(43, 182, 115, 0.15) 100%);
}
.era-pill {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill-ruby {
  background: rgba(255, 42, 109, 0.85);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.4);
}
.pill-gold {
  background: rgba(255, 215, 0, 0.9);
  color: #030704;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.era-body {
  padding: 2.2rem 2rem 2.4rem;
}
.era-body h3 {
  font: 800 1.6rem/1.2 var(--display);
  margin-bottom: 1rem;
}
.era-body p {
  color: #b5c7bd;
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.era-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.era-tags span {
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #d1ded6;
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
}

/* 4. 4 PILLARS GRID */
.pillars-section {
  padding: 6.5rem 4vw;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}
.pillar-card {
  padding: 2.2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all 250ms ease;
}
.pillar-card:hover {
  border-color: var(--gold-bright);
  background: var(--surface-card);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
}
.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
.pillar-card h3 {
  font: 800 1.2rem/1.2 var(--display);
  margin-bottom: 0.7rem;
  color: #fff;
}
.pillar-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* 5. PORTAL: WELCOME TO EDEN LOUNGE */
.portal-section {
  position: relative;
  padding: 8.5rem 4vw 10rem;
  text-align: center;
  background: #020603;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.portal-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85; /* Bright & clearly visible! */
  filter: saturate(1.4) contrast(1.15) brightness(1.05);
  animation: portal-kenburns 18s ease-in-out infinite alternate;
}
@keyframes portal-kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, -10px, 0); }
}

.portal-overlay {
  position: absolute;
  inset: 0;
  /* Crystal-clear center so the animated video, lasers, and particles are 100% visible! */
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(2, 6, 3, 0.15) 0%, rgba(2, 6, 3, 0.6) 70%, rgba(2, 6, 3, 0.95) 100%),
              linear-gradient(to bottom, rgba(2, 6, 3, 0.6) 0%, transparent 25%, transparent 75%, rgba(2, 6, 3, 0.95) 100%);
  pointer-events: none;
}
.portal-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Sweeping Neon Laser Spotlight Beams */
.portal-laser-beam {
  position: absolute;
  width: 250%;
  height: 3px;
  top: 35%;
  left: -75%;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
  opacity: 0.6;
}
.laser-1 {
  background: linear-gradient(90deg, transparent, #2bb673 45%, #ffd700 50%, #2bb673 55%, transparent);
  transform: rotate(-25deg);
  animation: sweep-laser-1 12s ease-in-out infinite alternate;
}
.laser-2 {
  background: linear-gradient(90deg, transparent, #ffd700 45%, #fff 50%, #ffd700 55%, transparent);
  transform: rotate(20deg);
  animation: sweep-laser-2 15s ease-in-out infinite alternate;
}
@keyframes sweep-laser-1 {
  0% { transform: rotate(-28deg) translateY(-80px); opacity: 0.3; }
  50% { opacity: 0.75; }
  100% { transform: rotate(-20deg) translateY(120px); opacity: 0.3; }
}
@keyframes sweep-laser-2 {
  0% { transform: rotate(18deg) translateY(100px); opacity: 0.25; }
  50% { opacity: 0.7; }
  100% { transform: rotate(25deg) translateY(-90px); opacity: 0.25; }
}
.portal-glow-sunburst {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(44rem, 88vw);
  height: min(44rem, 88vw);
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, rgba(43, 182, 115, 0.12) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: sunburst-pulse 6s ease-in-out infinite alternate;
}
@keyframes sunburst-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.95; }
}

.portal-container {
  max-width: 54rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-center-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.portal-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font: 700 0.6rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* FOCUSED EMBLEM SHOWCASE (PERFECT MATHEMATICAL CENTERING) */
.portal-emblem {
  position: relative;
  width: min(32rem, 90vw);
  height: 240px;
  margin: 1.5rem auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-master-logo {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 480px;
  max-height: 240px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 45px rgba(212, 175, 55, 0.8))
          drop-shadow(0 0 90px rgba(43, 182, 115, 0.45));
  animation: eden-breathe 6s ease-in-out infinite;
}

.emblem-aura-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.45) 0%, rgba(43, 182, 115, 0.3) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: halo-pulse 4.5s ease-in-out infinite alternate;
}
@keyframes halo-pulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; filter: blur(55px); }
}

.emblem-tropical-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(0.68);
  width: 105%;
  height: 105%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 35px rgba(43, 182, 115, 0.4), inset 0 0 25px rgba(255, 215, 0, 0.35);
  pointer-events: none;
  z-index: 2;
  animation: ring-spin 22s linear infinite;
}
@keyframes ring-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg) scaleY(0.68); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scaleY(0.68); }
}

.emblem-sparks-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 3;
}
@keyframes eden-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 45px rgba(212, 175, 55, 0.65)) drop-shadow(0 0 80px rgba(43, 182, 115, 0.3));
  }
  50% {
    transform: translateY(-8px) scale(1.025);
    filter: drop-shadow(0 0 70px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 110px rgba(43, 182, 115, 0.45));
  }
}
.portal-title {
  font: 800 clamp(2.4rem, 5.5vw, 4.4rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.gold-gradient {
  background: linear-gradient(135deg, #fff 0%, #ffd700 45%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.portal-sub {
  color: var(--emerald);
  font: 700 0.72rem/1 var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.portal-text {
  max-width: 38rem;
  margin: 0 auto 3rem;
  color: #cfd8d2;
  font-size: 1rem;
  line-height: 1.8;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3.5rem;
  margin-bottom: 3.5rem;
  padding: 1.8rem 2rem;
  background: rgba(7, 19, 11, 0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.meta-item { text-align: left; }
.meta-label {
  display: block;
  font: 700 0.52rem/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.meta-val {
  display: block;
  font: 600 0.88rem/1.3 var(--body);
  color: #fff;
}

.portal-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn-gold-giant {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 3.5rem;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 60%, #b38f29 100%);
  color: #030704;
  font: 800 0.82rem/1 var(--body);
  letter-spacing: 0.18em;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  transition: all 250ms ease;
}
.btn-gold-giant:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.9);
  filter: brightness(1.08);
}
.portal-url-tag {
  color: var(--muted);
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 6. FOOTER */
.eden-footer {
  padding: 1.8rem 4vw;
  background: #020503;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.58rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.foot-left { display: flex; align-items: center; gap: 0.6rem; }
.foot-logo-text { color: #fff; font-weight: 700; }
.foot-divider { color: var(--gold); }
.foot-link {
  color: var(--gold-bright);
  font-weight: 700;
  transition: all 180ms ease;
}
.foot-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.5rem); } }
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .eden-nav { height: 52px; padding: 0 1rem; }
  .nav-container { flex-direction: row; justify-content: space-between; }
  .nav-tag { display: none; }
  .cta-full { display: none; }
  .cta-mobile { display: inline; }
  .eden-hero { padding: 5rem 1.2rem 3rem; }
  .hero-master-logo { width: 14rem; }
  .hero-title { font-size: 2.1rem; }
  .hero-btn-row { flex-direction: column; width: 100%; }
  .btn-gold-glow, .btn-glass, .btn-gold-giant { width: 100%; justify-content: center; }
  .evolution-section, .pillars-section, .portal-section { padding: 5rem 1.2rem; }
  .footer-container { flex-direction: column; text-align: center; }
  .portal-meta { flex-direction: column; gap: 1.2rem; }
  .meta-item { text-align: center; }
}
