:root {
  --bg-dark: #07050f;
  --bg-card: rgba(14, 10, 26, 0.7);
  --border-color: rgba(124, 58, 237, 0.15);
  --accent-primary: #7C3AED;
  --accent-secondary: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --discord-color: #5865F2;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --apple-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(88, 101, 242, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #07050f 0%, #110c24 100%);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: 'Outfit', -apple-system, sans-serif; font-weight: 700; letter-spacing: -0.02em; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 5, 15, 0.7);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px var(--accent-glow);
}

nav { display: flex; gap: 1.8rem; align-items: center; }

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s var(--apple-ease);
  font-size: 0.92rem;
}

nav a:hover, nav a.active { color: #fff; }

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: fadeInUp 0.7s var(--apple-ease);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 16px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all 0.25s var(--apple-ease);
  cursor: pointer;
  font-size: 0.98rem;
  border: none;
  gap: 0.6rem;
}

.btn-primary {
  background: #fff;
  color: #07050f;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-discord {
  background: var(--discord-color);
  color: #fff;
}
.btn-discord:hover {
  transform: translateY(-2px);
  background: #4752c4;
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.04);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.6rem;
  font-weight: 600;
}

p { margin-bottom: 1.2rem; color: var(--text-muted); font-size: 1.05rem; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }
li { margin-bottom: 0.6rem; font-size: 1.02rem; }

.meta-date {
  font-size: 0.82rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 700;
}

.hero { text-align: center; padding: 6rem 1rem 4rem 1rem; }

.hero h1 {
  font-size: 4.8rem;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.28rem;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-buttons { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

.interactive-features {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.interactive-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: left;
  transition: all 0.3s var(--apple-ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.interactive-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124, 58, 237, 0.1);
  background: rgba(124,58,237,0.01);
}
.interactive-card:hover::before { opacity: 1; }

.feature-icon-wrapper {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}
.interactive-card:hover .feature-icon-wrapper {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.interactive-card h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.interactive-card p { font-size: 0.98rem; color: var(--text-muted); line-height: 1.58; margin-bottom: 0; }

/* Timeline Styling */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 20px;
  width: 2px;
  background: rgba(255,255,255,0.06);
}
.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.7s var(--apple-ease);
}
.timeline-badge {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-dark);
  box-shadow: 0 0 8px var(--accent-glow);
}
.timeline-item.latest .timeline-badge {
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.timeline-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.timeline-date {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.timeline-content {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 1.75rem;
}
.timeline-content ul {
  margin-bottom: 0;
}

footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: auto;
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.8rem;
  transition: color 0.25s ease;
}
footer a:hover { color: #fff; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ambient Elements */
#ambient-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
}
.orb-1 {
  top: -10%; left: 10%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 80%);
  animation: floatOrb1 25s infinite alternate ease-in-out;
}
.orb-2 {
  bottom: -10%; right: 5%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--discord-color) 0%, transparent 80%);
  animation: floatOrb2 30s infinite alternate ease-in-out;
}
.orb-3 {
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 35vw; height: 35vw;
  background: radial-gradient(circle, #ec4899 0%, transparent 80%);
  animation: floatOrb3 20s infinite alternate ease-in-out;
  opacity: 0.06;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.1); }
  100% { transform: translate(-4vw, -8vh) scale(0.95); }
}
@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, -8vh) scale(0.95); }
  100% { transform: translate(4vw, 6vh) scale(1.05); }
}
@keyframes floatOrb3 {
  0% { transform: translate(-50%, -50%) translate(-3vw, 3vh); }
  50% { transform: translate(-50%, -50%) translate(3vw, -3vh); }
  100% { transform: translate(-50%, -50%) translate(-1vw, -1vh); }
}

/* Staggered Animations */
header {
  animation: slideDown 0.8s var(--apple-ease) forwards;
}
.hero h1 {
  opacity: 0;
  animation: slideUp 0.8s var(--apple-ease) 0.1s forwards;
}
.hero p {
  opacity: 0;
  animation: slideUp 0.8s var(--apple-ease) 0.2s forwards;
}
.hero-buttons {
  opacity: 0;
  animation: slideUp 0.8s var(--apple-ease) 0.3s forwards;
}

.interactive-card {
  opacity: 0;
}
.interactive-card:nth-child(1) { animation: slideUp 0.8s var(--apple-ease) 0.4s forwards; }
.interactive-card:nth-child(2) { animation: slideUp 0.8s var(--apple-ease) 0.5s forwards; }
.interactive-card:nth-child(3) { animation: slideUp 0.8s var(--apple-ease) 0.6s forwards; }
.interactive-card:nth-child(4) { animation: slideUp 0.8s var(--apple-ease) 0.7s forwards; }
.interactive-card:nth-child(5) { animation: slideUp 0.8s var(--apple-ease) 0.8s forwards; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  header { padding: 1.25rem 1.5rem; }
  nav { gap: 1.2rem; }
  main { padding: 2rem 1rem; }
  .card { padding: 2.5rem 1.5rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero p { font-size: 1.15rem; }
  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 40px; }
  .timeline-badge { left: 6px; }
}
