:root {
    /* Light Mode Variables (Strict Monochrome) */
    --md-sys-color-background: #FAFAFA;
    --md-sys-color-on-background: #1C1B1F;
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-surface-container: #F3F3F3;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-outline: #79747E;
    --md-sys-color-primary: #1C1B1F;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #E2E2E2;
    --md-sys-color-on-primary-container: #1C1B1F;

    /* Liquid Glass configuration */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(24px);

    --radius-pill: 9999px;
    --radius-card: 28px;

    --transition-speed: 0.3s;
    --spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
    /* Dark Mode Variables (Strict Monochrome) */
    --md-sys-color-background: #141414;
    --md-sys-color-on-background: #E6E1E5;
    --md-sys-color-surface: #1C1B1F;
    --md-sys-color-surface-container: #282828;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-on-surface-variant: #CAC4D0;
    --md-sys-color-outline: #938F99;
    --md-sys-color-primary: #E6E1E5;
    --md-sys-color-on-primary: #1C1B1F;
    --md-sys-color-primary-container: #484848;
    --md-sys-color-on-primary-container: #E2E2E2;

    /* Liquid Glass configuration */
    --glass-bg: rgba(28, 27, 31, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.5;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    color: var(--md-sys-color-on-background);
    font-weight: 700;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px; /* Top padding accounts for fixed navbar */
}

/* Liquid Glass Utilities */
.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Subtle inner glow / rim light to add depth */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.liquid-glass:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pill-container {
    border-radius: var(--radius-card);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 800px;
    border-radius: var(--radius-pill);
    z-index: 100;
    padding: 12px 24px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.icon-button {
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.icon-button:hover {
    background-color: var(--md-sys-color-surface-container);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    text-align: center;
}

.hero-content {
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

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

.version-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Download Section */
.download-section {
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--spring-easing), box-shadow 0.2s ease, opacity 0.2s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Magnetic sheen effect on hover */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn:active {
    transform: scale(0.95) !important; /* Force scale down on click overriding magnetic translation */
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    opacity: 1;
    animation: pulseGlow 2s infinite ease-in-out;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Liquid Progress Animation overlay */
.btn-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.15);
    width: 0%;
    transition: width 2s cubic-bezier(0.1, 0.7, 0.1, 1);
    pointer-events: none;
}

.btn-content-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.btn-secondary {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.btn-secondary:hover {
    background-color: var(--md-sys-color-outline);
    color: var(--md-sys-color-surface);
}

.non-android-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

.sad-icon {
    font-size: 48px;
    animation: sadBounce 2s infinite ease-in-out;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s var(--spring-easing);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--md-sys-color-primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--md-sys-color-on-surface-variant);
}

/* Changelog Section */
.changelog-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-card {
    padding: 32px;
    text-align: left;
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.timeline-version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin: 0;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 4px;
}

.timeline-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.timeline-download-btn:hover {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.timeline-download-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

.changelog-content ul {
    list-style-position: outside;
    margin-top: 16px;
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--md-sys-color-on-surface-variant);
}

.changelog-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.changelog-content h1,
.changelog-content h2,
.changelog-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface);
    font-size: 1.1rem;
}

.changelog-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
}

.changelog-content a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    word-break: break-all;
}

.changelog-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--md-sys-color-on-surface-variant);
}

.github-link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    display: inline-block;
}

.github-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes sadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Base state for animated elements */
.slide-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
}

.fade-in {
    opacity: 0;
}

/* Visible state applied via JS IntersectionObserver */
.slide-up.visible {
    animation: slideUp 0.8s var(--spring-easing) forwards;
}

.fade-in.visible {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--md-sys-color-surface-container);
    border-top: 3px solid var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stagger animations */
.hero.slide-up { animation-delay: 0.1s; }
.features.fade-in { animation-delay: 0.3s; }
.changelog-section.slide-up { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .changelog-content {
        padding: 24px;
    }
}
/* Mockup Container */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
    position: relative;
    z-index: 10;
}

/* Smartphone Mockup (CSS Only) */
.smartphone-mockup {
    width: 300px;
    height: 600px;
    background-color: var(--md-sys-color-surface);
    border-radius: 40px;
    border: 12px solid var(--md-sys-color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.4s var(--spring-easing);
}

.smartphone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.smartphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: var(--md-sys-color-primary);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.smartphone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--md-sys-color-background);
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prevent alt text flash on slow connections */
    color: transparent;
    background-color: var(--md-sys-color-surface-variant);
    /* Subtle pulsing placeholder */
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: placeholder-shimmer 2s infinite linear;
}

@keyframes placeholder-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-mockup {
        margin-top: 20px;
    }
}

/* Showcase Section */
.showcase-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: center;
}

.showcase-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
}

.showcase-mockup {
    width: 250px;
    height: 500px;
    background-color: var(--md-sys-color-surface);
    border-radius: 36px;
    border: 10px solid var(--md-sys-color-surface-container);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--spring-easing), box-shadow 0.4s ease;
}

.showcase-mockup:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.showcase-mockup:nth-child(1) {
    transform: rotate(-5deg);
}

.showcase-mockup:nth-child(2) {
    transform: translateY(-20px);
    z-index: 5;
}

.showcase-mockup:nth-child(3) {
    transform: rotate(5deg);
}

.showcase-mockup:nth-child(1):hover,
.showcase-mockup:nth-child(2):hover,
.showcase-mockup:nth-child(3):hover {
    transform: translateY(-30px) scale(1.05) rotate(0deg);
}

@media (max-width: 768px) {
    .showcase-container {
        flex-direction: column;
        gap: 20px;
    }

    .showcase-mockup:nth-child(1),
    .showcase-mockup:nth-child(2),
    .showcase-mockup:nth-child(3) {
        transform: none;
    }

    .showcase-mockup:hover {
        transform: scale(1.05);
    }
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

.tool-item {
    background-color: var(--md-sys-color-surface-container);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tool-item:hover {
    background-color: var(--md-sys-color-primary-container);
    transform: translateY(-2px);
}

.tool-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

/* Clean Changelog List */
.clean-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.clean-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px !important;
    font-size: 1.05rem;
    color: var(--md-sys-color-on-surface) !important;
}

.clean-list li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 18px;
    color: var(--md-sys-color-primary);
}
