:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --text: #e4e4ed;
    --text-muted: #8888a0;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-subtle: rgba(34, 197, 94, 0.1);
    --accent-border: rgba(34, 197, 94, 0.2);
    --border: #1e1e2e;
    --focus: #22c55e;
}

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

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Skip link for screen readers / keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.nav-cta {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.nav-cta:hover {
    color: var(--accent-hover);
}

/* Hero */
.hero {
    text-align: center;
    padding: 160px 24px 80px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-name {
    display: block;
    font-size: clamp(56px, 10vw, 88px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-accent {
    color: var(--text-muted);
    font-weight: 400;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #0a0a0f;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
}

/* App Preview */
.app-preview {
    max-width: 340px;
    margin: 60px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.app-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.app-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.app-preview-title {
    font-size: 15px;
    font-weight: 700;
}

.app-preview-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.app-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.app-preview-row-label {
    font-size: 13px;
    color: var(--text-muted);
}

.app-preview-row-value {
    font-size: 13px;
    font-weight: 500;
}

.app-preview-row-value.active {
    color: var(--accent);
}

.app-preview-app {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 13px;
}

.app-preview-app-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.app-preview-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.app-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
}

/* Sections */
.problem, .solution, .features, .download {
    padding: 100px 0;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 48px;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    list-style: none;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: background 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    list-style: none;
}

.step {
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-subtle);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    list-style: none;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Download */
.download {
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.download-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.download-note code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .problem-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    .problem, .solution, .features, .download {
        padding: 72px 0;
    }

    h2 {
        font-size: 28px;
    }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
    .problem-grid,
    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 16px 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-name {
        font-size: 48px;
    }

    .hero-sub {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .problem, .solution, .features, .download {
        padding: 56px 0;
    }

    .container {
        padding: 0 16px;
    }

    h2 {
        font-size: 24px;
    }

    .section-sub {
        font-size: 15px;
        margin-bottom: 32px;
    }

    /* Touch-friendly tap targets (min 44px) */
    .btn {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 15px;
    }

    /* App preview scales down */
    .app-preview {
        max-width: 100%;
        margin-top: 40px;
    }

    /* Cards breathe more */
    .card {
        padding: 24px 20px;
    }

    .feature {
        padding: 24px 20px;
    }

    /* Download note wraps better */
    .download-note {
        font-size: 12px;
        line-height: 1.7;
    }

    .download-note code {
        word-break: break-all;
    }

    footer {
        padding: 32px 0;
    }
}
