
:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-primary: #00f2ff;
  --accent-secondary: #7000ff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MkDocs global overrides to match neon theme */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--accent-primary);
  --md-accent-fg-color: var(--accent-secondary);
  --md-typeset-a-color: var(--accent-primary);
  --md-default-bg-color: var(--bg-color);
}

/* Hide default MkDocs wrapper limits ONLY on the landing page */
.md-content__inner {
  margin: 0 !important;
  max-width: none !important;
}

/* The landing page wrapper */
.modern-landing {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  padding: 0 5%;
  margin: -1.5rem; /* Offsets MkDocs default padding */
  border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero Section */
.modern-landing .hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 40px;
}

.modern-landing .hero-content {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

.modern-landing .hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-bottom: none !important;
}

.modern-landing .hero-title span {
  display: block;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-landing .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
  color: var(--text-color);
}

.modern-landing .hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.modern-landing .hero-img-container {
  width: 500px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.modern-landing .hero-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--glass-border);
  border-radius: 30px;
  z-index: 10;
}

.modern-landing .hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
}

.modern-landing .btn {
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.modern-landing .btn-primary {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: #fff !important;
  box-shadow: 0 10px 20px -5px rgba(0, 242, 255, 0.3);
}

.modern-landing .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0,242, 255, 0.5);
}

/* Features Section */
.modern-landing .features {
  padding: 6rem 0;
}

.modern-landing .section-tag {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
  font-weight: bold;
}

.modern-landing .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modern-landing .card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.modern-landing .card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.modern-landing .card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  border-bottom: none;
}

.modern-landing .card p {
  opacity: 0.6;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 968px) {
  .modern-landing .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
  }
  .modern-landing .hero-title {
    font-size: 3rem;
  }
  .modern-landing .hero-visual {
    margin-top: 4rem;
  }
  .modern-landing .hero-img-container {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
  .modern-landing .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
}
