/* ==========================================================================
   AstroLunae API - Stylesheet
   ========================================================================== */

/* Variables & Root Design Tokens */
:root {
    --bg-dark: #05020c;
    --bg-deep-purple: #0c0621;
    --bg-card: rgba(18, 10, 44, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --primary: #943aff;      /* Purple neon */
    --primary-glow: rgba(148, 58, 255, 0.5);
    --secondary: #ffb700;    /* Cosmic gold */
    --secondary-glow: rgba(255, 183, 0, 0.4);
    --cyan: #00f0ff;         /* Star cyan */
    --text-white: #f7f5ff;
    --text-muted: #9f9bba;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cosmic Background effects */
.stars, .twinkling, .nebula {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    pointer-events: none;
}

.stars {
    /*background: #000 url('/fondo.webp') repeat top center;*/
}

.twinkling {
    /*background: transparent url('/fondo.webp') repeat top center;*/
    animation: move-twink-back 200s linear infinite;
}

.nebula {
    background: radial-gradient(circle at 20% 30%, rgba(148, 58, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.12) 0%, transparent 50%);
    mix-blend-mode: screen;
    filter: blur(80px);
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(148, 58, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(148, 58, 255, 0.15);
    transform: translateY(-4px);
}

/* Headings & Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 70%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.text-gold { color: var(--secondary); }
.text-purple { color: var(--primary); }
.text-cyan { color: var(--cyan); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #701edb 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #e6a400 100%);
    color: #05020c;
    box-shadow: 0 4px 20px var(--secondary-glow);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px var(--secondary-glow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Top Bar Info */
.top-bar {
    background: rgba(5, 2, 12, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 0;
    font-size: 0.78rem;
    position: relative;
    z-index: 101;
    letter-spacing: 0.5px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.top-bar-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-item a:hover {
    color: var(--cyan);
}

.top-bar-item i {
    color: var(--cyan);
    font-size: 0.75rem;
}

/* Header Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 2, 12, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white);
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.badge {
    background: rgba(148, 58, 255, 0.15);
    border: 1px solid var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Zodiac Visual Wheel */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zodiac-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.zodiac-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(148, 58, 255, 0.4);
    box-shadow: 0 0 50px rgba(148, 58, 255, 0.15);
    animation: rotate-zodiac 80s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.zodiac-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.zodiac-symbols {
    position: absolute;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.symbol {
    position: absolute;
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

/* Placing zodiac symbols in a circle */
.symbol-1  { transform: rotate(0deg) translate(140px) rotate(0deg); }
.symbol-2  { transform: rotate(30deg) translate(140px) rotate(-30deg); }
.symbol-3  { transform: rotate(60deg) translate(140px) rotate(-60deg); }
.symbol-4  { transform: rotate(90deg) translate(140px) rotate(-90deg); }
.symbol-5  { transform: rotate(120deg) translate(140px) rotate(-120deg); }
.symbol-6  { transform: rotate(150deg) translate(140px) rotate(-150deg); }
.symbol-7  { transform: rotate(180deg) translate(140px) rotate(-180deg); }
.symbol-8  { transform: rotate(210deg) translate(140px) rotate(-210deg); }
.symbol-9  { transform: rotate(240deg) translate(140px) rotate(-240deg); }
.symbol-10 { transform: rotate(270deg) translate(140px) rotate(-270deg); }
.symbol-11 { transform: rotate(300deg) translate(140px) rotate(-300deg); }
.symbol-12 { transform: rotate(330deg) translate(140px) rotate(-330deg); }

.zodiac-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(12, 6, 33, 0.85);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--secondary-glow);
    z-index: 5;
}

.icon-center {
    font-size: 2.2rem;
    color: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary-glow));
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes rotate-zodiac {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--secondary-glow)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px var(--secondary)); }
}

/* Sections Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 6, 33, 0.4) 50%, transparent 100%);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
}

.demo-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.demo-controls h3 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary);
}

.form-control {
    background: rgba(5, 2, 12, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    padding: 12px;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(148, 58, 255, 0.2);
}

.form-row {
    display: flex;
    gap: 16px;
}

.col {
    flex: 1;
}

.demo-info-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: flex;
    gap: 8px;
}

.demo-info-note i {
    color: var(--secondary);
    margin-top: 2px;
}

.hidden {
    display: none !important;
}

/* Code Editor view styling */
.demo-code {
    padding: 0;
    overflow: hidden;
}

.code-header {
    background: rgba(5, 2, 12, 0.5);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.file-name {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--text-white);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.code-box {
    padding: 24px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    max-height: 480px;
    background: #04010b;
    flex-grow: 1;
}

.code-box code {
    color: #ffd866; /* default syntax coloring (warm yellow) */
}

/* Features Section styling */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(148, 58, 255, 0.1);
    border: 1px solid rgba(148, 58, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(148, 58, 255, 0.2));
}

.feature-card h3 {
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Target Audience Section */
.audience-section {
    padding: 80px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.audience-card {
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.audience-card:hover .card-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(148, 58, 255, 0.12) 0%, transparent 70%);
}

.audience-icon {
    font-size: 2.5rem;
    color: var(--cyan);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
    z-index: 2;
}

.audience-card h3 {
    font-size: 1.4rem;
    z-index: 2;
}

.audience-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    z-index: 2;
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
}

.advantages-container {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.advantage-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.advantage-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(148, 58, 255, 0.4);
    line-height: 1;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.advantage-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 32px;
}

.pricing-card {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.pricing-card.recommended {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px rgba(148, 58, 255, 0.25);
    background: rgba(18, 10, 44, 0.65);
    padding: 56px 32px; /* Slightly taller */
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary) 0%, #e6a400 100%);
    color: #05020c;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.plan-features li i {
    font-size: 0.9rem;
    color: var(--cyan);
}

.plan-features li i.text-muted {
    color: rgba(255, 255, 255, 0.2);
}

/* Footer styling */
.footer-section {
    background: #030109;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--text-white);
    border-color: var(--primary);
    background: rgba(148, 58, 255, 0.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--text-white);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Web Design (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .audience-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .audience-card:last-child {
        grid-column: span 2;
    }

    .advantages-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-card.recommended {
        padding: 48px 32px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Hide nav links on mobile for simplicity */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .zodiac-wrapper {
        width: 300px;
        height: 300px;
    }

    .symbol {
        font-size: 1.3rem;
    }

    .symbol-1  { transform: rotate(0deg) translate(110px) rotate(0deg); }
    .symbol-2  { transform: rotate(30deg) translate(110px) rotate(-30deg); }
    .symbol-3  { transform: rotate(60deg) translate(110px) rotate(-60deg); }
    .symbol-4  { transform: rotate(90deg) translate(110px) rotate(-90deg); }
    .symbol-5  { transform: rotate(120deg) translate(110px) rotate(-120deg); }
    .symbol-6  { transform: rotate(150deg) translate(110px) rotate(-150deg); }
    .symbol-7  { transform: rotate(180deg) translate(110px) rotate(-180deg); }
    .symbol-8  { transform: rotate(210deg) translate(110px) rotate(-210deg); }
    .symbol-9  { transform: rotate(240deg) translate(110px) rotate(-240deg); }
    .symbol-10 { transform: rotate(270deg) translate(110px) rotate(-270deg); }
    .symbol-11 { transform: rotate(300deg) translate(110px) rotate(-300deg); }
    .symbol-12 { transform: rotate(330deg) translate(110px) rotate(-330deg); }

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

    .audience-card:last-child {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Form Contact Info */
.form-contact-info {
    background: rgba(148, 58, 255, 0.03);
    border-left: 3px solid var(--cyan);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-contact-info .info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.form-contact-info .info-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-contact-info .info-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.form-contact-info .info-links a:hover {
    color: var(--cyan);
}

.form-contact-info .info-links i {
    color: var(--cyan);
}

/* Documentation Layout */
.docs-section {
    padding: 80px 0 140px 0;
    position: relative;
    min-height: 100vh;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 20px;
}

/* Prevent sidebar glass-card from shifting/translating on hover */
.docs-sidebar.glass-card:hover {
    transform: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    border-color: var(--border-glass) !important;
}

.docs-nav-group {
    margin-bottom: 32px;
}

.docs-nav-group:last-child {
    margin-bottom: 0;
}

.docs-nav-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-nav-link {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 14px;
    font-weight: 500; /* Set consistent font weight to avoid resizing */
}

.docs-nav-link:hover, .docs-nav-link.active {
    color: var(--cyan);
    border-left-color: var(--cyan);
    padding-left: 18px;
    font-weight: 500; /* Maintain consistent font weight on active to avoid layout shifting */
}

/* Code Tabs Styles */
.code-tabs {
    display: flex;
    gap: 6px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.code-block {
    display: block;
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.api-card {
    padding: 44px;
    scroll-margin-top: 120px;
    border-radius: 20px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.api-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 16px 48px 0 rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
}

.api-method {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--cyan);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.api-route {
    font-family: 'Space Grotesk', 'Consolas', monospace;
    font-size: 1.25rem;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.api-subtitle {
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 28px 0 16px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-subtitle i {
    font-size: 0.95rem;
}

.param-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
    margin-bottom: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 2, 12, 0.4);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.param-table th, .param-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.param-table tr:last-child td {
    border-bottom: none;
}

.param-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

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

.param-table code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.param-required {
    color: #ff4a5a;
    font-weight: 700;
    font-size: 0.78rem;
    background: rgba(255, 74, 90, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.param-optional {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.api-examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.demo-code {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.code-header {
    background: rgba(5, 2, 12, 0.7);
    padding: 14px 20px;
}

.code-box {
    padding: 20px;
    background: rgba(3, 1, 7, 0.65);
    overflow-x: auto;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .docs-sidebar {
        position: static;
        max-height: none;
        padding: 20px;
    }
    .api-examples-grid {
        grid-template-columns: 1fr;
    }
}
