:root {
  --md-primary-fg-color: #6366f1;
  /* Indigo 500 */
  --md-primary-fg-color--light: #818cf8;
  --md-primary-fg-color--dark: #4f46e5;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-md-color-scheme="slate"] {
  --md-bg-color: #0f172a;
  /* Slate 900 */
  --glass-bg: rgba(30, 41, 59, 0.6);
}

/* Homepage Background Logic */
body:has(.hero-section) {
  /* Fixed background image */
  background: url('../assets/background-color.png') no-repeat center center fixed;
  background-size: cover;
}

/* Ensure material containers are transparent on homepage so body bg shows */
body:has(.hero-section) .md-main,
body:has(.hero-section) .md-content,
body:has(.hero-section) .md-container {
  background: transparent !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 1rem 4rem;
  text-align: center;
  /* Removed gradient to show background image */
  background: transparent;
  margin-bottom: 2rem;
  overflow: visible;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: var(--md-primary-fg-color);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  background: var(--md-primary-fg-color--dark);
  color: white;
  /* Ensure text stays white */
}

/* Video Container */
.video-container {
  margin: 3rem auto 0;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #1e293b;
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  overflow: hidden;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  margin-bottom: 4rem;
  /* Spacing before the solid section starts */
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--md-primary-fg-color--light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-top: 0;
  font-weight: 700;
  color: var(--md-primary-fg-color--light);
}

.feature-card p {
  color: var(--md-typeset-color);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Content Sections (How it Works, etc) */
.content-section {
  /* Full viewport width breakout */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  /* Opaque background to start the "solid" part of the page */
  background-color: var(--md-bg-color);

  padding: 4rem 1rem;
  text-align: center;

  /* Stack on top of the fixed body background */
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Constrain content inside the full-width section */
.content-section>* {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.content-section.alt-bg {
  background: rgba(255, 255, 255, 0.03);
  /* border-radius removed as it spans full width now, implies seamless connection */
  margin: 0;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.content-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  position: relative;
  padding: 2rem;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.2);
  margin-bottom: 0.5rem;
}

.step-card h3 {
  color: var(--md-primary-fg-color--light);
  margin-top: 0;
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.media-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
}

.media-card h3 {
  color: var(--md-primary-fg-color--light);
  margin-top: 0;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.media-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.media-card li {
  padding: 0.5rem 0;
  color: var(--md-typeset-color);
  display: flex;
  align-items: center;
}

.media-card li::before {
  content: "✓";
  color: var(--md-primary-fg-color);
  margin-right: 0.8rem;
  font-weight: bold;
}

/* docs/stylesheets/extra.css */

:root {
  /* --- 1. Define the Variables --- */
  --bs-blue: #033c73;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #e83e8c;
  --bs-red: #c71c22;
  --bs-orange: #fd7e14;
  --bs-yellow: #dd5600;
  --bs-green: #73a839;
  --bs-teal: #20c997;
  --bs-cyan: #2fa4e7;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #868e96;
  --bs-gray-dark: #343a40;
  --bs-primary: #2fa4e7;
  --bs-secondary: #e9ecef;
  --bs-success: #73a839;
  --bs-info: #033c73;
  --bs-warning: #dd5600;
  --bs-danger: #c71c22;
  --bs-light: #f8f9fa;
  --bs-dark: #343a40;
  --bs-yellow: #ffc107;
}

/* --- 2. Create Utility Classes --- */

/* Text Colors */
.text-warning {
  color: var(--bs-warning) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-info {
  color: var(--bs-info) !important;
}

.text-icon {
  color: var(--bs-yellow) !important;
}

.text-secondary {
  color: var(--bs-light) !important;
}

/* Background Colors */
.bg-warning {
  background-color: var(--bs-warning);
  color: var(--bs-white);
  /* Ensure text is readable */
  padding: 0.2em 0.4em;
  /* Add a little padding for looks */
  border-radius: 4px;
}

.bg-danger {
  background-color: var(--bs-danger);
  color: var(--bs-white);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.fs-1,
.fs-2,
.fs-3,
.fs-4 {
  /* Fix alignment and spacing */
  vertical-align: middle;
  line-height: 1;
}

.fs-1 {
  font-size: 1rem;
}

.fs-2 {
  font-size: 1.3rem;
}

.fs-3 {
  font-size: 1.7rem;
}

.fs-4 {
  font-size: 2rem;
}