:root {
  /* Colors - Midnight Dark Premium Palette */
  --bg-main: #0a0a0a;
  /* Deep Black */
  --bg-card: #141414;
  /* Slate Black */
  --primary: #10B981;
  /* Emerald Green */
  --accent: #D97706;
  /* Amber Gold */
  --text-main: #F4F4F5;
  /* Zinc White */
  --text-muted: #A1A1AA;
  /* Zinc Muted */
  --border: #27272A;
  /* Zinc Border */
  --glass: rgba(20, 20, 20, 0.7);

  /* Spacing & Radii */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --container-max: 1200px;
  --radius: 12px;

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  margin: 0;
  transition: background 0.5s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Editorial Typography */
h1,
h2,
h3,
.serif {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

p {
  font-weight: 300;
  font-size: 1.1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Elements */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* Luxury Buttons */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  border: none;
  transition: all 0.4s ease;
}

.btn-dark {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-dark:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-link {
  font-weight: 600;
  padding: 0;
  background: none;
  position: relative;
  color: var(--primary);
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.btn-link:hover::after {
  width: 100%;
}

/* Refined Cards */
.refined-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.refined-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation */
nav {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: var(--space-md);
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Special Reveals */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Accents */
.text-accent {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.line {
  width: 40px;
  height: 1px;
  background: var(--primary);
  margin-bottom: var(--space-sm);
}

/* Lesson Content Styles */
.lesson-content h2 {
  margin-top: var(--space-lg);
}

.lesson-content p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-links a {
    margin-left: 0.8rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: calc(var(--space-lg) + 0.5rem) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 14px 20px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}
