:root {
    --bg-color: #ffffff;
    --text-color: #1a1f36;
    --text-muted: #697386;
    --primary-color: #0f172a;
    --primary-hover: #334155;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(227, 232, 238, 0.8);
    --blue-accent: #2563eb;
    --light-bg: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    background: #f1f5f9;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
}

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

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

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

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

.btn-outline:hover {
    border-color: var(--text-color);
    background-color: #f8fafc;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* GitHub Floating Badge */
.github-float {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    background: white;
    padding: 1.5rem 0.5rem;
    border-radius: 0 16px 16px 0;
    border: 1px solid #e2e8f0;
    border-left: none;
    box-shadow: 5px 0 25px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.github-float:hover {
    color: var(--primary-color);
    padding-left: 1rem;
    box-shadow: 10px 0 30px rgba(0,0,0,0.12);
}

.github-float span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: rotate(180deg);
}

/* Hero Visual & Globe */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 600px;
    height: 600px;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Difuminar bordes cuadrados para integrar con el fondo suave */
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 65%);
    mask-image: radial-gradient(circle, black 40%, transparent 65%);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(27, 31, 36, 0.08);
    border: 1px solid #d0d7de;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    transition: transform 0.2s ease;
}

.floating-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 31, 36, 0.12);
}

.floating-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #24292f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.floating-card p {
    font-size: 0.75rem;
    color: #57606a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-left-1 { top: 10%; left: -5%; }
.card-left-2 { top: 50%; left: -10%; }
.card-right-1 { top: 60%; right: -5%; flex-direction: column; align-items: flex-start; }
.card-right-2 { top: 15%; right: -2%; flex-direction: column; align-items: flex-start; }

.card-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: #24292f;}
.card-text span { display: block; font-size: 0.8rem; color: #57606a; }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* Common Section Styles */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-card svg {
    color: var(--blue-accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

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

/* Dashboard Section */
#dashboard {
    background-color: var(--light-bg);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1100px;
    padding: 5rem 2rem;
    text-align: center;
}

.dashboard-preview {
    background: transparent;
    margin-top: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.showcase-images {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.img-graceful {
    position: absolute;
    width: 60%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.img-left {
    left: 5%;
    top: 10%;
    transform: rotate(-4deg) translateY(0) translateZ(0);
    z-index: 2;
}

.img-right {
    right: 5%;
    top: 5%;
    transform: rotate(3deg) translateY(0) translateZ(-50px);
    z-index: 1;
}

.img-left:hover {
    transform: rotate(-2deg) translateY(-10px) translateZ(50px);
    z-index: 10;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.img-right:hover {
    transform: rotate(1deg) translateY(-10px) translateZ(50px);
    z-index: 10;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.mockup-code {
    background: #0f172a;
    color: #f8fafc;
    text-align: left;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mockup-code span { color: #10b981; }

/* Install Section & Docs Layout */
.docs-section {
    background-color: var(--bg-color);
}

.docs-container {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.docs-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
}

.docs-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid #e2e8f0;
    padding-left: 1.5rem;
}

.docs-sidebar a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.docs-sidebar a:hover {
    color: var(--blue-accent);
}

.docs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.doc-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.doc-block p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.doc-code {
    width: 100%;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.doc-code code {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Terminal Mockup */
.terminal-mockup {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.term-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.term-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #f8fafc;
    line-height: 1.6;
}

.term-body .cmd { color: #10b981; }
.term-body .out { color: #94a3b8; }

.code-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-family: monospace;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--blue-accent);
}

.quick-commands {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cmd-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .docs-container {
        flex-direction: column;
        gap: 2rem;
    }
    .docs-sidebar {
        position: relative;
        top: 0;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding-left: 0;
        padding-bottom: 2rem;
        width: 100%;
    }
    .docs-sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .floating-card { position: relative; top: auto !important; left: auto !important; right: auto !important; margin: 1rem auto; transform: none !important; animation: none;}
    .hero-visual { height: auto; flex-direction: column; display: none;} /* Hide globe on small mobile for space */
    .github-float { position: relative; left: auto; top: auto; flex-direction: row; writing-mode: horizontal-tb; transform: none; width: max-content; margin: 0 auto 2rem; }
    .github-float span { writing-mode: horizontal-tb; transform: none; }
    .showcase-images { display: none; }
}
