/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:    #00ffe0;
  --purple:  #b16bff;
  --orange:  #ff7240;
  --pink:    #ff4da6;
  --green:   #39ff6a;
  --yellow:  #ffe84d;
  --blue:    #4da6ff;
  --teal:    #00d4b8;
  --dark:    #080810;
  --glass:   rgba(8, 8, 20, 0.45);
  --glass-border: rgba(255,255,255,0.12);
  --text:    #f0f0f8;
  --text-muted: rgba(240,240,248,0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== BACKGROUND ===== */
.bg-image {
  position: fixed;
  inset: 0;
  background: url('megpage.png') center center / cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
  filter: saturate(1.15);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 20, 0.72) 0%,
    rgba(40, 0, 80, 0.55) 35%,
    rgba(0, 30, 40, 0.60) 65%,
    rgba(8, 8, 20, 0.78) 100%
  );
}

/* ===== FLOATING EMOJIS ===== */
.emoji-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.emoji-particle {
  position: absolute;
  font-size: clamp(1rem, 2vw, 1.6rem);
  opacity: 0;
  animation: floatUp var(--dur, 8s) var(--delay, 0s) ease-in infinite;
  user-select: none;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ===== GLASSMORPHISM PANEL ===== */
.panel {
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.08;
  pointer-events: none;
}
.panel-inner { padding: 2.5rem 2.8rem; position: relative; z-index: 1; }

/* Color-tinted panel variants */
.panel-cyan   { border-color: rgba(0,255,224,0.30); box-shadow: 0 0 40px rgba(0,255,224,0.10), inset 0 0 60px rgba(0,255,224,0.04); }
.panel-cyan::before   { background: radial-gradient(circle at 30% 40%, rgba(0,255,224,0.25), transparent 70%); opacity:1; }

.panel-purple { border-color: rgba(177,107,255,0.35); box-shadow: 0 0 40px rgba(177,107,255,0.12), inset 0 0 60px rgba(177,107,255,0.05); }
.panel-purple::before { background: radial-gradient(circle at 70% 50%, rgba(177,107,255,0.28), transparent 70%); opacity:1; }

.panel-lore   { border-color: rgba(255,78,166,0.30); box-shadow: 0 0 50px rgba(255,78,166,0.10), inset 0 0 80px rgba(255,78,166,0.04); }
.panel-lore::before   { background: radial-gradient(circle at 50% 30%, rgba(255,78,166,0.20), transparent 70%); opacity:1; }

.panel-cta    { border-color: rgba(0,255,224,0.28); box-shadow: 0 0 80px rgba(0,255,224,0.12), inset 0 0 100px rgba(177,107,255,0.06); }
.panel-cta::before    { background: radial-gradient(circle at 50% 0%, rgba(0,255,224,0.15), transparent 60%); opacity:1; }

/* ===== NAV ===== */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 8, 20, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo {
  font-family: 'Syne Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(0,255,224,0.6);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #080810 !important;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,255,224,0.35); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10rem 5vw 1rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0,255,224,0.10);
  border: 1px solid rgba(0,255,224,0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 8px rgba(0,255,224,0.2); }
  50%      { box-shadow: 0 0 22px rgba(0,255,224,0.5); }
}
.hero-title {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #08080f;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,255,224,0.25);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 36px rgba(0,255,224,0.4); }
.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.15rem; }

/* ===== PRESSURE BAR ===== */
.pressure-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Syne Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.pressure-track {
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.pressure-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.05s;
  box-shadow: 0 0 10px rgba(0,255,224,0.6);
}

/* ===== HOW TO USE ===== */
.how-to-section {
  padding: 6rem 5vw;
  position: relative;
  z-index: 1;
}
.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 3rem auto 0;
}
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(8,8,20,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  min-width: 3rem;
}
.step-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-body p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ===== VIDEO PLAYER ===== */
.video-player-section {
  padding: 0 5vw 1.5rem;
  position: relative;
  z-index: 1;
}
.vp-wrapper {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.vp-screen {
  width: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.vp-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: rgba(8,8,20,0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.vp-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.vp-btn:hover { background: rgba(0,255,224,0.15); border-color: var(--cyan); color: var(--cyan); }
.vp-progress-wrap { flex: 1; }
.vp-progress {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
  height: 4px;
}
.vp-counter { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; min-width: 3rem; text-align: right; }

/* ===== SECTION GRID (ABOUT) ===== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 6rem 5vw;
  position: relative;
  z-index: 1;
}
.skew-left  { transform: perspective(1200px) rotateY(2deg);  transition: transform 0.4s; }
.skew-right { transform: perspective(1200px) rotateY(-2deg); transition: transform 0.4s; }
.skew-left:hover  { transform: perspective(1200px) rotateY(0deg) scale(1.01); }
.skew-right:hover { transform: perspective(1200px) rotateY(0deg) scale(1.01); }

.panel-tag {
  font-family: 'Syne Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.75;
}
.panel-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.panel-inner p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Oracle Feed */
.oracle-feed {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(177,107,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 160px;
  font-family: 'Syne Mono', monospace;
  font-size: 1rem;
  color: var(--purple);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}
.feed-line { opacity: 0; animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.typing-anim::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== FEATURES ===== */
.features-section {
  padding: 5rem 5vw;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  font-family: 'Syne Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.75;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feat-card {
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(8, 8, 20, 0.50);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover { transform: translateY(-6px); }
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feat-card:hover::after { opacity: 1; }

.feat-orange { border-color: rgba(255,114,64,0.35);  box-shadow: 0 0 30px rgba(255,114,64,0.07); }
.feat-orange:hover { box-shadow: 0 12px 40px rgba(255,114,64,0.22); }
.feat-orange::after { background: radial-gradient(circle at 50% 0%, rgba(255,114,64,0.12), transparent 70%); }

.feat-green  { border-color: rgba(57,255,106,0.35);  box-shadow: 0 0 30px rgba(57,255,106,0.07); }
.feat-green:hover  { box-shadow: 0 12px 40px rgba(57,255,106,0.22); }
.feat-green::after  { background: radial-gradient(circle at 50% 0%, rgba(57,255,106,0.12), transparent 70%); }

.feat-pink   { border-color: rgba(255,77,166,0.35);  box-shadow: 0 0 30px rgba(255,77,166,0.07); }
.feat-pink:hover   { box-shadow: 0 12px 40px rgba(255,77,166,0.22); }
.feat-pink::after   { background: radial-gradient(circle at 50% 0%, rgba(255,77,166,0.12), transparent 70%); }

.feat-blue   { border-color: rgba(77,166,255,0.35);  box-shadow: 0 0 30px rgba(77,166,255,0.07); }
.feat-blue:hover   { box-shadow: 0 12px 40px rgba(77,166,255,0.22); }
.feat-blue::after   { background: radial-gradient(circle at 50% 0%, rgba(77,166,255,0.12), transparent 70%); }

.feat-yellow { border-color: rgba(255,232,77,0.35);  box-shadow: 0 0 30px rgba(255,232,77,0.07); }
.feat-yellow:hover { box-shadow: 0 12px 40px rgba(255,232,77,0.22); }
.feat-yellow::after { background: radial-gradient(circle at 50% 0%, rgba(255,232,77,0.12), transparent 70%); }

.feat-teal   { border-color: rgba(0,212,184,0.35);   box-shadow: 0 0 30px rgba(0,212,184,0.07); }
.feat-teal:hover   { box-shadow: 0 12px 40px rgba(0,212,184,0.22); }
.feat-teal::after   { background: radial-gradient(circle at 50% 0%, rgba(0,212,184,0.12), transparent 70%); }

.feat-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.feat-card p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

.coming-soon-card { position: relative; overflow: hidden; opacity: 0.75; }
.coming-soon-banner {
  position: absolute;
  top: 18px;
  right: -30px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 40px;
  transform: rotate(35deg);
  box-shadow: 0 2px 10px rgba(255,0,128,0.5);
  z-index: 2;
}

/* ===== LORE STRIP ===== */
.lore-strip {
  padding: 5rem 5vw;
  position: relative;
  z-index: 1;
}
.lore-inner { max-width: 860px; margin: 0 auto; }
.lore-quote {
  font-family: 'Syne Mono', monospace;
  font-size: 0.85rem;
  color: var(--pink);
  margin-top: 1.5rem;
  opacity: 0.75;
}

/* ===== PERSONALITY / QUOTES ===== */
.personality-section {
  padding: 5rem 5vw;
  position: relative;
  z-index: 1;
  text-align: center;
}
.quote-carousel {
  max-width: 680px;
  margin: 0 auto 2rem;
  position: relative;
  min-height: 140px;
}
.quote-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.quote-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.quote-text {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8,8,20,0.5);
  border: 1px solid rgba(177,107,255,0.25);
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
}
.quote-trigger {
  font-family: 'Syne Mono', monospace;
  font-size: 0.78rem;
  color: var(--purple);
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 160px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: var(--cyan); transform: scale(1.35); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 5vw;
  position: relative;
  z-index: 1;
}
.cta-inner { text-align: center; }
.cta-emoji { font-size: 4rem; margin-bottom: 1.2rem; animation: spin-slow 6s linear infinite; display: inline-block; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.cta-inner p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-footnote { font-family: 'Syne Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-top: 1.2rem; letter-spacing: 0.08em; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5vw;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,8,20,0.6);
  backdrop-filter: blur(12px);
}
.footer-logo { font-family: 'Syne Mono', monospace; font-size: 1rem; color: var(--cyan); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .skew-left, .skew-right { transform: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .panel-inner { padding: 1.8rem 1.5rem; }
}
