:root {
    --primary: #715dc6;
    --primary-hover: #5a47b0;
    --primary-light: #8b78d4;
    --dark: #1e293b;
    --dark-hover: #334155;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #22c55e;
    --radius: 10px;
    --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.navbar-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.5px;
}
.navbar-logo span { color: var(--primary-light); }
.navbar-logo svg { flex-shrink: 0; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
    color: #cbd5e1; font-size: 0.9rem; font-weight: 500;
    transition: color 0.15s;
}
.navbar-links a:hover { color: #fff; }
.navbar-cta {
    background: var(--primary); color: #fff !important;
    padding: 8px 20px; border-radius: var(--radius);
    font-weight: 600; transition: background 0.15s;
}
.navbar-cta:hover { background: var(--primary-hover); }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; }

/* ── Hero ── */
.hero {
    background: var(--dark);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; top: 0; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(113,93,198,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(113,93,198,0.15); color: var(--primary-light);
    padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    color: #fff; font-size: 3rem; font-weight: 700;
    line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary-light); }
.hero p {
    color: #94a3b8; font-size: 1.15rem; line-height: 1.7;
    margin-bottom: 32px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; transition: all 0.15s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline {
    background: transparent; color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: #cbd5e1; color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.hero-preview {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-preview img { width: 100%; border-radius: 8px; display: block; }

/* ── Section base ── */
.section { padding: 100px 0; }
.section-alt { background: #fff; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-tag {
    color: var(--primary); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section h2 {
    font-size: 2.25rem; font-weight: 700; letter-spacing: -0.5px;
    margin-bottom: 16px; color: var(--text);
}
.section-header p {
    font-size: 1.1rem; color: var(--text-secondary);
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(113,93,198,0.08);
    transform: translateY(-2px);
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(113,93,198,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.feature-card h3 {
    font-size: 1.15rem; font-weight: 600; margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.screenshot-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.screenshot-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.screenshot-item img {
    width: 100%; display: block;
    aspect-ratio: 16/10; object-fit: cover;
    background: var(--dark);
}
.screenshot-info { padding: 20px 24px; }
.screenshot-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.screenshot-info p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Download / Install ── */
.download-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: start;
}
.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
}
.download-card h3 {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.download-card .subtitle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; }
.download-btn {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary); color: #fff;
    padding: 14px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem;
    transition: background 0.15s; margin-bottom: 12px;
    width: 100%;
}
.download-btn:hover { background: var(--primary-hover); color: #fff; }
.download-btn svg { flex-shrink: 0; }
.download-btn .btn-sub { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }
.download-meta {
    font-size: 0.85rem; color: var(--text-secondary);
    padding-top: 20px; margin-top: 20px;
    border-top: 1px solid var(--border);
}
.download-meta div { margin-bottom: 6px; }
.download-meta strong { color: var(--text); }

.install-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 36px 32px;
    color: #e2e8f0;
}
.install-card h3 {
    color: #fff; font-size: 1.3rem; font-weight: 600; margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
}
.install-steps { list-style: none; counter-reset: step; }
.install-steps li {
    counter-increment: step;
    margin-bottom: 24px;
    padding-left: 44px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
}
.install-steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px;
    background: var(--primary); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
}
.install-steps li strong { color: #fff; }
.install-steps code {
    display: block;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    overflow-x: auto;
    white-space: pre;
}

/* ── Contact ── */
.contact-wrap { max-width: 580px; margin: 0 auto; }
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
    text-align: center; margin-top: 16px;
    font-size: 0.9rem; font-weight: 500;
    display: none;
}
.form-status.success { display: block; color: var(--success); }
.form-status.error { display: block; color: #ef4444; }

/* ── Footer ── */
.footer {
    background: var(--dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-logo {
    color: #fff; font-weight: 700; font-size: 1.1rem;
}
.footer-logo span { color: var(--primary-light); }
.footer p { color: #64748b; font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #94a3b8; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.25rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
    .navbar-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--dark); padding: 20px 24px;
        gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .hero { padding: 110px 0 70px; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 70px 0; }
    .section h2 { font-size: 1.75rem; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 28px 20px; }
}
