:root {
  --bg: #060712;
  --bg-elevated: #101321;
  --bg-card: #131628;
  --bg-card-soft: #181c33;
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --accent-bright: #4be3ff;
  --text-main: #f5f5ff;
  --text-muted: #b0b3c6;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

/* ---------------------- */
/* Global Styles          */
/* ---------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151935 0%, #060712 55%, #02020a 100%);
  color: var(--text-main);
}

/* ---------------------- */
/* HERO SECTION           */
/* ---------------------- */

.hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: radial-gradient(circle at top left, #2b214b 0%, #060712 55%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-authors {
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.8rem;
}

.hero-media {
  flex: 0 0 320px;
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.7));
  border-radius: 26px;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card img {
  display: block;
  max-width: 100%;
  border-radius: 20px;
}

/* ---------------------- */
/* NAVIGATION             */
/* ---------------------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to right, rgba(6,7,18,0.97), rgba(6,7,18,0.92));
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

/* ---------------------- */
/* MAIN PAGE CONTAINER    */
/* ---------------------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ---------------------- */
/* Stats cards            */
/* ---------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(19,22,40,0.9), rgba(18,21,37,0.9));
  border-radius: var(--radius-lg);
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ---------------------- */
/* Sections & Cards       */
/* ---------------------- */

.section {
  margin-bottom: 1.75rem;
}

.card {
  background: radial-gradient(circle at top left, #181c33 0%, #101321 55%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.section p {
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------------------- */
/* Link Styling           */
/* ---------------------- */

.section a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.25s ease;
}

.section a:hover {
  color: #a78bfa; /* soft lavender highlight */
  text-shadow: 0 0 8px rgba(124, 92, 255, 0.45);
}

.section a:active {
  color: var(--accent);
}

/* ---------------------- */
/* Two-column layouts     */
/* ---------------------- */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.column {
  min-width: 0;
}

.column-media {
  display: flex;
  justify-content: center;
}

/* ---------------------- */
/* Media Cards            */
/* ---------------------- */

.image-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.image-card img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.image-caption {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* ---------------------- */
/* Lists                  */
/* ---------------------- */

.nice-list {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.nice-list li {
  margin-bottom: 0.3rem;
}

/* ---------------------- */
/* Video frame            */
/* ---------------------- */

.video-frame {
  background: var(--bg-card-soft);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  border: 1px solid var(--border-subtle);
}

video {
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
}

/* ---------------------- */
/* Timeline               */
/* ---------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.timeline-item {
  background: var(--bg-card-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  border: 1px solid var(--border-subtle);
}

.timeline-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

/* ---------------------- */
/* Footer                 */
/* ---------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------------- */
/* General media rules    */
/* ---------------------- */

img {
  max-width: 100%;
  height: auto;
}

/* ---------------------- */
/* Responsive Adjustments */
/* ---------------------- */

@media (max-width: 800px) {
  .hero-inner {
    flex-direction: column;
  }
  .hero-media {
    justify-content: flex-start;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2.5rem;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1.25rem 1.1rem;
  }
}
