:root {
  --bg-dark: #0f0f14;
  --bg-panel: #1a1a24;
  --accent: #d4af37;
  --accent2: #7b2ff7;
  --text: #eee8d5;
  --text-muted: #9a94a8;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  background: radial-gradient(circle at top, #1c1c28 0%, #0f0f14 70%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fade-out {
  animation: pageFadeOut 0.4s ease forwards;
}

@keyframes pageFadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(15,15,20,0.75);
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: default;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO */
.hero {
  max-width: 1000px;
  margin: 60px auto 40px;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  animation: floatIn 0.9s ease;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* SECTIONS */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.section-title {
  font-size: 1.8rem;
  margin: 60px 0 20px;
  color: var(--accent);
  border-left: 4px solid var(--accent2);
  padding-left: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* TIMELINE (history page) */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 30px;
  border-left: 2px solid rgba(212,175,55,0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(123,47,247,0.2);
}

.timeline-item h3 {
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* COMPARISON TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

th {
  background: rgba(123,47,247,0.15);
  color: var(--accent);
}

tr:hover td {
  background: rgba(212,175,55,0.05);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0f0f14;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(212,175,55,0.1);
}

/* MOBILE */
@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 68px;
    right: -100%;
    flex-direction: column;
    background: rgba(15,15,20,0.97);
    width: 70%;
    height: calc(100vh - 68px);
    padding: 40px 30px;
    gap: 30px;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .burger {
    display: flex;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead { display: none; }

  tr {
    margin-bottom: 16px;
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 10px;
    padding: 10px;
  }

  td {
    border: none;
    padding: 8px 4px;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--accent);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 3px;
  }
}