/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light only; }

:root {
    --bg: #ffffff;
    --surface: #f7f7f8;
    --surface-2: #ededf0;
    --border: #e2e2e6;
    --text: #1a1a1e;
    --text-muted: #6b6b76;
    --accent: #1a1a1e;
    --accent-hover: #3a3a42;
    --radius: 10px;
    --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

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

/* === Navigation === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* === Hero === */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
}

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

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-req {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Features === */
.features {
    padding: 80px 0;
}

.features h2, .how-it-works h2, .download h2, .faq h2 {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

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

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

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* === How It Works === */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}

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

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* === Download === */
.download {
    padding: 80px 0;
    text-align: center;
}

.download-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -32px;
    margin-bottom: 32px;
}

.download-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 48px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-label {
    font-size: 14px;
    color: var(--text-muted);
}

.version-num {
    font-weight: 600;
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 8px;
}

.download-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Pricing === */
.pricing-hero { padding-bottom: 32px; }

.billing-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    margin-top: 8px;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--accent);
    color: #fff;
}

.save-badge {
    font-size: 11px;
    background: var(--surface-2);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 100px;
    margin-left: 4px;
}

.toggle-btn.active .save-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pricing-cards { padding: 32px 0 80px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
}

.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.plan-featured {
    border-color: var(--accent);
}

.plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-header { margin-bottom: 20px; }

.plan-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.plan-features li {
    font-size: 14px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}

.plan-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--text);
    font-weight: 600;
}

.plan-features li.muted {
    color: var(--text-muted);
}

.plan-features li.muted::before {
    content: '\2212';
    color: var(--text-muted);
}

.btn-full {
    display: block;
    text-align: center;
    padding: 11px 24px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--text-muted);
}

/* === FAQ === */
.faq {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.faq-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* === Responsive === */
@media (max-width: 640px) {
    .hero { padding: 110px 0 50px; }
    .nav-links a:not(.btn) { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .download-card { padding: 24px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}