/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0F172A;
    --surface: #1E293B;
    --surface-light: #334155;
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --accent: #8B5CF6;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --error: #EF4444;
    --success: #22C55E;
    --radius: 8px;
    --max-width: 1100px;
}

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

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Navigation ── */
nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--surface-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-light);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Features ── */
.features, .workflow, .platforms {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.features h2, .workflow h2, .platforms h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
}

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

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* ── Workflow Steps ── */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Platforms ── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background-color: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.platform-card.active {
    border-color: var(--primary);
}

.platform-card h3 {
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--primary);
    color: white;
}

.badge.future {
    background-color: var(--surface-light);
    color: var(--text-secondary);
}

/* ── Content Pages (Privacy, Tutorial, Feedback) ── */
.content-page {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.content-page section {
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

.content-page h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.content-page ul, .content-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.4rem;
}

/* ── Tutorial specific ── */
.tutorial-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--surface-light);
}

.tutorial-section:last-of-type {
    border-bottom: none;
}

.tip {
    background-color: var(--surface);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tips-list li {
    margin-bottom: 0.75rem;
}

/* ── Feedback Form ── */
.feedback-form {
    background-color: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background-color: var(--bg);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group select {
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.alt-contact {
    text-align: center;
    padding: 2rem;
}

.alt-contact h2 {
    color: var(--text) !important;
}

/* ── Footer ── */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--surface-light);
    padding: 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

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

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

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

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

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