/* Hide default Starlight chrome on homepage */
.page > header .right-group,
.sl-markdown-content .sl-heading-wrapper,
.pagination-links,
footer.sl-flex {
  display: none !important;
}

/* Hide the Starlight title heading panel (the H1 above custom content) */
.content-panel:has(h1#_top) {
  display: none !important;
}

/* Remove main-frame padding */
.main-frame {
  padding: 0 !important;
}

/* Remove main bottom padding */
main {
  padding-bottom: 0 !important;
}

/* Remove padding from the content panel holding our custom content */
.main-pane .content-panel {
  padding: 0 !important;
}

.main-pane .content-panel + .content-panel {
  border-top: none !important;
}

.content-panel .sl-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sl-markdown-content {
  padding: 0 !important;
  max-width: none !important;
}

.sl-markdown-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hl-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #031c19 0%,
    #0a2e2a 30%,
    #1a3a30 60%,
    #0d2b22 100%
  );
}
@media (min-width: 768px) {
  .hl-hero {
    padding: 8rem 4rem 10rem;
  }
}
@media (min-width: 1024px) {
  .hl-hero {
    padding: 10rem 6rem 12rem;
  }
}
[data-theme="light"] .hl-hero {
  background: linear-gradient(
    135deg,
    #f0f5f4 0%,
    #e4eeea 30%,
    #dce8e2 60%,
    #f0f5f4 100%
  );
}

.hl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 20%, rgba(254, 193, 71, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 90% 80%, rgba(244, 86, 67, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(32, 122, 230, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 20% 80%, rgba(66, 192, 70, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hl-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(254, 193, 71, 0.1);
  color: #f0c050;
  border: 1px solid rgba(254, 193, 71, 0.2);
}
[data-theme="light"] .hl-hero-badge {
  background: rgba(254, 193, 71, 0.15);
  color: #9a7a2a;
  border-color: rgba(254, 193, 71, 0.3);
}

.hl-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #f0f2f0;
}
[data-theme="light"] .hl-hero h1 {
  color: #0a1f1b;
}

.hl-hero h1 .hl-gradient-text {
  background: linear-gradient(135deg, #fec147 0%, #f45643 50%, #207ae6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hl-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: rgba(240, 242, 240, 0.6);
  margin: 0 auto 2.5rem;
  max-width: 600px;
  font-weight: 400;
}
[data-theme="light"] .hl-hero-tagline {
  color: rgba(10, 31, 27, 0.55);
}

.hl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  width: auto;
}

.hl-btn svg {
  display: block;
  flex-shrink: 0;
}

.hl-btn-primary {
  background: linear-gradient(135deg, #fec147, #f45643);
  color: #031c19;
}
.hl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 86, 67, 0.3);
}
[data-theme="light"] .hl-btn-primary {
  color: #fff;
}

.hl-btn-secondary {
  background: rgba(240, 242, 240, 0.08);
  color: rgba(240, 242, 240, 0.85);
  border: 1px solid rgba(240, 242, 240, 0.12);
}
.hl-btn-secondary:hover {
  background: rgba(240, 242, 240, 0.14);
  transform: translateY(-2px);
}
[data-theme="light"] .hl-btn-secondary {
  background: rgba(10, 31, 27, 0.06);
  color: rgba(10, 31, 27, 0.75);
  border-color: rgba(10, 31, 27, 0.1);
}
[data-theme="light"] .hl-btn-secondary:hover {
  background: rgba(10, 31, 27, 0.1);
}

/* Feature cards section */
.hl-features {
  padding: 6rem 2rem 8rem;
  background: #031c19;
}
[data-theme="light"] .hl-features {
  background: #f6faf9;
}
@media (min-width: 768px) {
  .hl-features {
    padding: 8rem 4rem 10rem;
  }
}
@media (min-width: 1024px) {
  .hl-features {
    padding: 10rem 6rem 12rem;
  }
}

.hl-features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hl-features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #f0f2f0;
}
[data-theme="light"] .hl-features h2 {
  color: #0a1f1b;
}

.hl-features-subtitle {
  text-align: center;
  color: rgba(240, 242, 240, 0.5);
  margin: 0 0 3rem;
  font-size: 1.05rem;
}
[data-theme="light"] .hl-features-subtitle {
  color: rgba(10, 31, 27, 0.5);
}

.hl-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.hl-feature-card {
  background: rgba(240, 242, 240, 0.04);
  border: 1px solid rgba(240, 242, 240, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}
.hl-feature-card:hover {
  background: rgba(240, 242, 240, 0.07);
  border-color: rgba(240, 242, 240, 0.12);
  transform: translateY(-3px);
}
[data-theme="light"] .hl-feature-card {
  background: rgba(10, 31, 27, 0.03);
  border-color: rgba(10, 31, 27, 0.06);
}
[data-theme="light"] .hl-feature-card:hover {
  background: rgba(10, 31, 27, 0.05);
  border-color: rgba(10, 31, 27, 0.1);
}

.hl-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hl-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #f0f2f0;
}
[data-theme="light"] .hl-feature-card h3 {
  color: #0a1f1b;
}

.hl-feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 242, 240, 0.55);
  margin: 0;
}
[data-theme="light"] .hl-feature-card p {
  color: rgba(10, 31, 27, 0.55);
}

/* Bottom section */
.hl-bottom {
  padding: 6rem 2rem 0;
  background: #031c19;
}
[data-theme="light"] .hl-bottom {
  background: #f6faf9;
}
@media (min-width: 768px) {
  .hl-bottom {
    padding: 8rem 4rem 0;
  }
}
@media (min-width: 1024px) {
  .hl-bottom {
    padding: 10rem 6rem 0;
  }
}

.hl-bottom-inner {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.hl-bottom h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: #f0f2f0;
}
[data-theme="light"] .hl-bottom h2 {
  color: #0a1f1b;
}

.hl-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hl-tag-list a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(240, 242, 240, 0.7);
  background: rgba(240, 242, 240, 0.06);
  border: 1px solid rgba(240, 242, 240, 0.08);
  transition: all 0.15s;
}
.hl-tag-list a:hover {
  color: #f0f2f0;
  background: rgba(240, 242, 240, 0.1);
  border-color: rgba(240, 242, 240, 0.15);
}
[data-theme="light"] .hl-tag-list a {
  color: rgba(10, 31, 27, 0.6);
  background: rgba(10, 31, 27, 0.04);
  border-color: rgba(10, 31, 27, 0.08);
}
[data-theme="light"] .hl-tag-list a:hover {
  color: #0a1f1b;
  background: rgba(10, 31, 27, 0.08);
  border-color: rgba(10, 31, 27, 0.12);
}

/* Page footer */
.hl-footer {
  padding: 2rem 2rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(240, 242, 240, 0.25);
}
[data-theme="light"] .hl-footer {
  color: rgba(10, 31, 27, 0.25);
}
