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

:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --text: #e8e8e8;
    --text-muted: #888;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --radius: 12px;
    --max-width: 1100px;
}

html { scroll-behavior: smooth; }

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;
}

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

/* ===== Nav ===== */
.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ===== Hero ===== */
.hero { padding: 4rem 2rem 6rem; text-align: center; }

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-glow); }

/* ===== Sections ===== */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-alt {
    max-width: 100%;
    background: var(--bg-alt);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ===== Cards Grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-alt);
    border: 1px solid #1e1e1e;
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.card:hover { border-color: #333; }

.card-featured { border-color: var(--accent); background: rgba(59, 130, 246, 0.04); }
.card-featured:hover { border-color: var(--accent-hover); }

.card-soon { opacity: 0.7; }

.card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.badge-soon {
    color: var(--text-muted);
    background: rgba(136, 136, 136, 0.1);
}

/* ===== Product Detail ===== */
.product-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-info h2 { text-align: left; font-size: 2.25rem; margin-top: 0.75rem; }
.product-tagline { color: var(--text-muted); font-size: 1.1rem; margin: 0.75rem 0 1.5rem; }

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list strong { color: var(--text); }

kbd {
    display: inline-block;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text);
}

.product-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Demo Window ===== */
.demo-window {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.demo-titlebar {
    background: #222;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.demo-url {
    margin-left: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #111;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.demo-body { padding: 2rem; }

.demo-arrow {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.demo-before, .demo-after {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.demo-before {
    background: rgba(255, 95, 87, 0.08);
    border: 1px solid rgba(255, 95, 87, 0.2);
}

.demo-after {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.label-before { color: #ff5f57; font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 0.4rem; }
.label-after { color: var(--green); font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 0.4rem; }

.demo-before code, .demo-after code {
    font-size: 0.75rem;
    word-break: break-all;
    color: var(--text-muted);
}

.demo-after code { color: var(--green); }

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-alt);
    border: 1px solid #1e1e1e;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.pricing-featured {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
    position: relative;
}

.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.price-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card .btn { width: 100%; text-align: center; }
.pricing-featured .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* ===== FAQ ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #1e1e1e;
    padding: 1rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after { content: '+'; color: var(--text-muted); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '−'; }

.faq-item p { color: var(--text-muted); font-size: 0.95rem; padding: 0.75rem 0; line-height: 1.7; }

/* ===== Footer ===== */
.footer {
    border-top: 1px solid #1e1e1e;
    padding: 3rem 2rem;
}

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

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #1e1e1e;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .product-detail { grid-template-columns: 1fr; gap: 2rem; }
    .product-info h2 { text-align: center; }
    .product-actions { justify-content: center; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .nav-links { gap: 1rem; }
}
