: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.jpg') 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: 4rem 1rem;
  /* Reduced top padding */
  margin-bottom: 2rem;
  overflow: visible;

  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 1rem;
    text-align: left;
  }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  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.1;
}

@media screen and (min-width: 960px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

.hero-content p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  opacity: 0.8;
}

/* User's Video/Visual Container on Hero Right */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-container {
  width: 100%;
  max-width: 600px;
  /* Limit size */
  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;
  margin: 0;
  /* Override old margin */
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 4rem;
  max-width: 1220px;
  padding: 0 1rem;
}

.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: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.feature-card p {
  color: var(--md-typeset-color);
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* --- Content Sections (Split Layouts) --- */
.content-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--md-bg-color);
  padding: 5rem 1rem;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.content-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

/* Split Section Generic */
.split-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.split-section:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 800px) {
  .split-section {
    flex-direction: row;
    gap: 4rem;
  }

  .split-section.reverse {
    flex-direction: row-reverse;
  }
}

.split-content {
  flex: 1;
}

.split-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.split-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--md-typeset-color);
  margin-bottom: 1.5rem;
}

.split-visual {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  aspect-ratio: 4/3;
  background: #1e293b;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Specific styling for internal elements in visuals if needed */
.visual-card svg {
  width: 50%;
  height: 50%;
  opacity: 0.2;
}


/* 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;
}

.text-dark {
  color: var(--bs-dark) !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;
}

/* docs/stylesheets/extra.css */
.center-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}