:root {
    /* Colors based on the app's dark theme */
    --primary: rgb(16, 163, 127);
    --primary-dark: rgb(13, 130, 102);
    --background: rgb(30, 30, 30);
    --background-dark: rgb(20, 20, 20);
    --text: rgb(255, 255, 255);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.05);
    --shadow: rgba(0, 0, 0, 0.3);
    
    /* Intensity colors */
    --intensity-warmup: rgb(74, 222, 128);
    --intensity-moderate: rgb(96, 165, 250);
    --intensity-working: rgb(245, 158, 11);
    --intensity-heavy: rgb(249, 115, 22);
    --intensity-maximum: rgb(239, 68, 68);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.muted {
    color: var(--text-secondary);
}

.text-link,
.text-link:visited {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-secondary);
    line-height: 1;
    white-space: nowrap;
}

.badge-soon {
    border-color: rgba(245, 158, 11, 0.35);
    color: rgba(245, 158, 11, 0.95);
    background: rgba(245, 158, 11, 0.08);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.nav-links a,
.nav-links a:visited {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--background) 0%, var(--background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(16, 163, 127, 0.1) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-image {
    max-width: 560px;
    margin: 2rem auto 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 163, 127, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Gamification Section */
.gamification {
    padding: 4rem 0;
    background-color: var(--background-dark);
    position: relative;
}

.gamification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(16, 163, 127, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.section-title {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    text-align: center;
    font-size: 2rem;
    margin: 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.gamification-grid {
    margin-top: 0.5rem;
}

.gamification .container {
    position: relative;
    z-index: 1;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.metrics {
    margin-top: 2.5rem;
    text-align: center;
}

.metrics h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.metrics-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.metrics-list li {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background-color: var(--background-dark);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 222, 128, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(16, 163, 127, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.step {
    text-align: center;
    padding: 1.25rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(16, 163, 127, 0.3));
    z-index: -1;
}

/* Bonus Features Section */
.bonus-features {
    padding: 2rem 0;
    background-color: var(--background);
}

.bonus-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.bonus-icon {
    font-size: 1.25rem;
}

.bonus-text {
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--background);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-block;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 44px;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img-small {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Doc Pages (same site chrome + readable content) */
.doc-content {
    max-width: 900px;
    margin: 8rem auto 4rem;
    padding: 0 20px;
}

.doc-content h1 {
    margin-bottom: 1rem;
}

.doc-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--primary);
}

.doc-content h3 {
    margin: 1.75rem 0 0.75rem;
}

.doc-content p {
    margin-bottom: 1rem;
}

.doc-content ul,
.doc-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.doc-content th,
.doc-content td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.doc-content th {
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
}

.doc-content tr:last-child td {
    border-bottom: none;
}

.doc-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .section-title {
        flex-direction: column;
    }
}
