/* ============================================
   MongoDB Backup Manager Documentation
   Premium Modern Light Mode Design
   ============================================ */

/* ============= CSS Variables ============= */
:root {
    /* Primary Colors - Emerald */
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --primary-glow: rgba(5, 150, 105, 0.2);
    --primary-subtle: rgba(5, 150, 105, 0.08);

    /* Accent Colors */
    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.15);

    /* Backgrounds - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --bg-elevated: rgba(248, 250, 252, 0.95);

    /* Glass Effect - Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.9);

    /* Text - Light Mode */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders - Light Mode */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(5, 150, 105, 0.4);

    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-gap: 80px;

    /* Timing */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============= Reset & Base ============= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

/* ============= Custom Scrollbar ============= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(5, 150, 105, 0.3);
    border-radius: 3px;
    transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    font-family: var(--font-mono);
}

/* ============= Background Effects ============= */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(5, 150, 105, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 100% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 0% 60%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ============= Container ============= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

/* ============= Navigation ============= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--primary-light);
}

.logo-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.logo-badge svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.logo-badge.small {
    width: 28px;
    height: 28px;
}

.logo-badge.small svg {
    width: 16px;
    height: 16px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-left: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.nav-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.github-icon {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ============= Buttons ============= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ============= Hero Section ============= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    padding-left: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-feature svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.dashboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

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

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.preview-dots span:first-child {
    background: #ef4444;
    opacity: 1;
}

.preview-dots span:nth-child(2) {
    background: #eab308;
    opacity: 1;
}

.preview-dots span:last-child {
    background: #22c55e;
    opacity: 1;
}

.preview-url {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    flex: 1;
}

.preview-body {
    padding: 20px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    stroke: var(--text-secondary);
}

.preview-placeholder span {
    font-weight: 500;
    color: var(--text-secondary);
}

.preview-placeholder.large {
    min-height: 300px;
}

.preview-placeholder.large svg {
    width: 80px;
    height: 80px;
}

.preview-placeholder p {
    font-size: 0.85rem;
    max-width: 300px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.card-1 {
    top: 20px;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: -3s;
}

.progress-ring {
    width: 36px;
    height: 36px;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    stroke: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= Section Styles ============= */
section {
    padding: var(--section-gap) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-subtle);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============= Features Section ============= */
.features {
    background: transparent;
}

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

.feature-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============= Preview Section ============= */
.preview {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
}

.preview-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.showcase-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.showcase-tab svg {
    width: 18px;
    height: 18px;
}

.showcase-tab:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.showcase-tab.active {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary-light);
}

.showcase-window {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

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

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ef4444;
}

.control.yellow {
    background: #eab308;
}

.control.green {
    background: #22c55e;
}

.window-address {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.window-address svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
}

.window-address span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.window-content {
    min-height: 400px;
}

/* Preview images container and showcase tab images */
.preview-image-container {
    position: relative;
    width: 100%;
}

/* Showcase images - hidden by default, shown when active */
.preview-image-container .showcase-image {
    display: none !important;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.preview-image-container .showcase-image.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ============= Quick Start Section ============= */
.quickstart {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 50%, transparent 100%);
}

.quickstart-content {
    max-width: 700px;
    margin: 0 auto;
}

.install-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.method-btn svg {
    width: 22px;
    height: 22px;
}

.method-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.method-btn.active {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary-light);
}

.steps-container {
    display: none;
}

.steps-container.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.requirements-box {
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.requirements-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.req-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.req-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.step.final .step-num {
    background: var(--primary);
    color: white;
}

.step-line {
    flex: 1;
    width: 2px;
    background: var(--border-color);
    margin: 8px 0;
}

.step-content {
    flex: 1;
    padding-bottom: 32px;
}

.step.final .step-content {
    padding-bottom: 0;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-content p a {
    color: var(--primary);
    text-decoration: underline;
}

.code-block {
    position: relative;
    background: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-block pre {
    padding: 18px;
    padding-right: 60px;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.code-block code {
    font-size: 0.9rem;
    color: #6ee7b7;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.5);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn.copied {
    color: #6ee7b7;
    border-color: #6ee7b7;
}

.credentials-card {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.cred-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.cred-row:first-child {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.cred-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 80px;
}

.cred-row code {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.warning-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-size: 0.9rem;
    color: #b45309;
}

.warning-note svg {
    width: 18px;
    height: 18px;
    stroke: #d97706;
    flex-shrink: 0;
}

/* ============= API Section ============= */
.api {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.api-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.api-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.api-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.api-card-header svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.api-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.api-endpoints {
    padding: 16px 20px;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.endpoint:hover {
    background: var(--glass-highlight);
}

.method {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 45px;
    text-align: center;
}

.method.get {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.method.post {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.method.put {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.method.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.endpoint code {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============= CTA Section ============= */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    position: relative;
    padding: 64px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.05;
}

.deco-circle:first-child {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.deco-circle:last-child {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

/* ============= Footer ============= */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

/* ============= Mobile Responsive ============= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card.featured {
        grid-column: span 2;
    }

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

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .container {
        padding: 0 16px;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        text-align: center;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background: var(--bg-tertiary);
    }

    .nav-btn {
        margin: 8px 0 0 0;
        justify-content: center;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
    }

    .hero-visual {
        max-width: 100%;
    }

    .dashboard-preview {
        max-width: 100%;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card.featured {
        grid-column: span 1;
    }

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

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-desc {
        font-size: 1rem;
    }

    /* Preview Mobile */
    .preview-showcase {
        max-width: 100%;
    }

    .showcase-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .showcase-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    .showcase-window {
        border-radius: var(--radius-md);
    }

    .window-header {
        padding: 10px 14px;
    }

    .window-address {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .window-address span {
        font-size: 0.7rem;
    }

    /* Quick Start Mobile */
    .install-methods {
        flex-direction: column;
        gap: 8px;
    }

    .method-btn {
        padding: 14px 20px;
    }

    .step {
        gap: 14px;
    }

    .step-content {
        padding-bottom: 24px;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .code-block pre {
        padding: 14px;
        padding-right: 50px;
        font-size: 0.8rem;
    }

    .code-block code {
        font-size: 0.8rem;
    }

    .credentials-card {
        padding: 16px;
    }

    /* API Mobile */
    .api-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .api-card-header {
        padding: 16px 20px;
    }

    .api-endpoints {
        padding: 12px 16px;
    }

    .endpoint {
        padding: 10px;
        flex-wrap: wrap;
    }

    .endpoint code {
        font-size: 0.8rem;
        word-break: break-all;
    }

    /* CTA Mobile */
    .cta-section {
        padding: 60px 0;
    }

    .cta-card {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .cta-card p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-gap: 60px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .showcase-tabs {
        gap: 6px;
    }

    .showcase-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 90px;
    }

    .showcase-tab svg {
        width: 14px;
        height: 14px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .step {
        gap: 12px;
    }

    .step-content h4 {
        font-size: 0.95rem;
    }

    .code-block pre {
        padding: 12px;
        padding-right: 45px;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .copy-btn {
        top: 8px;
        right: 8px;
        padding: 6px;
    }

    .copy-btn svg {
        width: 14px;
        height: 14px;
    }

    .cta-card {
        padding: 28px 16px;
    }

    .cta-card h2 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 24px;
    }

    .nav-logo .logo-text {
        font-size: 0.9rem;
    }

    .logo-badge {
        width: 32px;
        height: 32px;
    }

    .logo-badge svg {
        width: 18px;
        height: 18px;
    }
}