@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --pulse-color: rgba(255, 255, 255, 0.2);
}

body {
    margin: 0;
    padding: 0;
    font-family: "SN Pro", 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.hero-section {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e1e1e 0%, #121212 100%);
    position: relative;
    overflow: clip;
}

.animation-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: main-thump 0.8s infinite ease-in-out;
}

.hero-tagline {
    font-family: 'SN Pro', sans-serif;
    font-size: 2.5rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

.bowlby-one-regular {
    font-family: "Bowlby One", sans-serif;
    position: relative;
    font-size: 5rem;
    color: #ffffff;
    line-height: 1;
    z-index: 2;
}

.bowlby-one-regular::before,
.bowlby-one-regular::after {
    content: "Hrtbeat";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    color: var(--pulse-color);
    opacity: 0;
    pointer-events: none;
}

.bowlby-one-regular::before {
    animation: ghost-pulse 0.8s infinite ease-out;
}

.bowlby-one-regular::after {
    animation: ghost-pulse 0.8s infinite ease-out 0.1s;
}

@keyframes main-thump {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
}

@keyframes ghost-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3.5); opacity: 0; }
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.8rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.banner-content h1 {
    margin: 0;
    font-family: "MuseoModerno", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #bdc3c7;
    letter-spacing: 2px;
}

.banner-content .btn-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.top-banner.visible {
    opacity: 1;
    visibility: visible;
}

.content-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    min-height: auto;
    padding-bottom: 100px;
    padding-top: 100px;
}

.top-tag-container {
    position: absolute;
    top: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #bdc3c7;
    letter-spacing: 2px;
    opacity: 0.8;
    font-family: "MuseoModerno", sans-serif;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
}

.icon {
    width: 72px;
    height: auto;
}

.button-container {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: btn-fade 1s ease forwards 0.8s;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-btn {
    background: linear-gradient(145deg, #464a4e, #2e3134);
    border: none;
}

@keyframes btn-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.markdown-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #eee;
    font-family: "SN Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3, 
.markdown-body li {
    font-family: "SN Pro", sans-serif;
}

.markdown-body h1, 
.markdown-body h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
    margin-top: 2rem;
    font-weight: 700;
}

.markdown-body h1 {
    font-size: 2.5rem;
}

.markdown-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-body a {
    color: #8ab4f8;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(138, 180, 248, 0.2);
}

.markdown-body a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* mobile */
@media (max-width: 768px) {
    .hero-tagline {
        flex-direction: column;
        font-size: 1.5rem;
        white-space: normal;
    }

    .bowlby-one-regular {
        font-size: 3rem;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }

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

    .top-tag-container {
        top: 30px;
    }
}