/* ======================================
   PureCSS — Landing Page Styles
   Dark premium design system
   ====================================== */

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

:root {
    --bg-primary: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    --success: #22c55e;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #a5b4fc;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

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

.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: white;
}

/* --- Code Preview --- */
.code-preview {
    max-width: 600px;
    margin: 60px auto 0;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    text-align: left;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ef4444;
}

.code-dot.yellow {
    background: #eab308;
}

.code-dot.green {
    background: #22c55e;
}

.code-title {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.code-body {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-body .comment {
    color: #4a4a60;
}

.code-body .prop {
    color: #818cf8;
}

.code-body .val {
    color: #a5b4fc;
}

.code-body .punct {
    color: #4a4a60;
}

.code-body .selector {
    color: #c084fc;
}

/* --- Section Base --- */
section {
    padding: 100px 0;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

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

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

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

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

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

.feature-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--gradient);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 60px auto 0;
}

.price-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: var(--shadow-glow);
}

.price-card.featured::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 100px;
    background: var(--gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.price-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.price-amount .currency {
    font-size: 24px;
    vertical-align: top;
    color: var(--text-secondary);
}

.price-period {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.price-save {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.btn-price {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-price.primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    color: white;
}

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

.btn-price.outline:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: white;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.faq-q:hover {
    color: var(--accent-light);
}

.faq-q .arrow {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.open .faq-q .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }
}