/* ============================================
   WebsiteBox Marketing Site
   Clean, modern, dark theme
   ============================================ */

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

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --bg-card-hover: #1e1e22;
    --bg-terminal: #0d1117;
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b73;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --border: #27272a;
    --border-light: #3f3f46;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1120px;
    --max-width-narrow: 780px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

a:hover {
    color: var(--accent-hover);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-card);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--border);
}

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

.container-narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 56px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    padding: 10px 20px;
    line-height: 1.4;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
}

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

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

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

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 450;
}

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

.nav-link-source {
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.2s;
}

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

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-terminal {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* --- Terminal --- */
.terminal-bar {
    background: #1c1c1f;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 8px;
}

.terminal-body {
    background: var(--bg-terminal);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;
}

.terminal-prompt {
    color: var(--accent);
    user-select: none;
    margin-right: 8px;
}

.terminal-green {
    color: var(--accent);
}

.terminal-cyan {
    color: #67e8f9;
}

.terminal-output {
    color: var(--text-secondary);
}

.cta-terminal {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: left;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cta-terminal .terminal-body {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow-x: auto;
}

/* --- Problem Grid --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s;
}

.problem-card:hover {
    border-color: var(--border-light);
}

.problem-icon {
    font-size: 1.75rem;
    margin-bottom: 14px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Steps --- */
.steps {
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 48px;
    bottom: -12px;
    width: 1px;
    background: var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding-top: 7px;
}

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

.step-code {
    margin-top: 12px;
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    overflow-x: auto;
}

.step-code code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.steps-guide-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 16px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

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

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

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

.feature p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.55;
}

/* --- Audience Grid --- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.audience-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s;
}

.audience-card:hover {
    border-color: var(--accent);
}

.audience-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.pricing-main {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 16px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-number {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.pricing-list {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-list li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.875rem;
}

.check-muted {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.5;
}

.pricing-addon {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-top: 4px;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.pricing-compare-bar {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.compare-context {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    background: var(--bg-card);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--bg-card-hover);
}

.faq-item p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* --- CTA Section --- */
.section-cta {
    text-align: center;
    background: var(--bg-primary);
    padding-bottom: 112px;
}

.cta-sub {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 40px;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-tagline {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-disclaimer {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
    margin-bottom: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: underline;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-tiers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .problem-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-tiers {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-terminal .terminal-body {
        font-size: 0.6875rem;
    }

    .step {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .pricing-number {
        font-size: 2.75rem;
    }
}
