:root {
    --primary: #FF5A1F;
    --gradient-start: #FF5A1F;
    --gradient-end: #FF2D55;
    --bg: #1a1e27;
    --bg-card: #1F2937;
    --bg-input: #374151;
    --neutral: #F9FAFB;
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --border: #374151;
}

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

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

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.75rem;
    height: 4.75rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    flex-shrink: 0;
    z-index: 2;
}

.nav-brand-logo {
    height: 3.25rem;
    width: auto;
    display: block;
}

.nav-brand i { color: var(--primary); }
.nav-brand:hover { text-decoration: none; }

.nav-cluster {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-left: 1.5rem;
    min-width: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-lang a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0.15rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

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

.nav-lang a.is-active {
    color: var(--text);
    font-weight: 700;
}

.nav-lang-sep {
    opacity: 0.45;
    user-select: none;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
    border-color: var(--text-muted);
    background: var(--bg-input);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.15s;
}

.btn-cta:hover { opacity: 0.9; text-decoration: none; color: #fff; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.w-full { width: 100%; justify-content: center; text-align: center; }

/* Hero */
.hero {
    padding: 11rem 0 6rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 90, 31, 0.1);
    border: 1px solid rgba(255, 90, 31, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 90, 31, 0.1);
    border: 1px solid rgba(255, 90, 31, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.feature-card:hover { border-color: rgba(255, 90, 31, 0.3); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 90, 31, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* How it works */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-card);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

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

.step-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
}

.pricing-sub {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card:hover { border-color: rgba(255, 90, 31, 0.3); }

.pricing-card.featured {
    border-color: var(--primary);
    max-width: 420px;
    width: 100%;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-detail {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pricing-per {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card ul li i {
    color: var(--primary);
    font-size: 0.8rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mt-4 { margin-top: 3rem; }

/* CTA */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-card);
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

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

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner p {
    flex: 1;
    min-width: 240px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-banner .btn-cookie {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.cookie-banner .btn-cookie-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

.cookie-banner .btn-cookie-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cookie-banner .btn-cookie-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Legal document pages */
.legal-body {
    padding-top: 4.5rem;
}

.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.legal-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.legal-nav-logo {
    height: 2.5rem;
    width: auto;
    display: block;
}

.legal-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.legal-nav-back {
    font-weight: 600;
    flex-shrink: 0;
    text-align: right;
}

.legal-main {
    padding: 3rem 1.5rem 5rem;
    max-width: 800px;
}

.legal-doc h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-doc h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.legal-doc h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.legal-doc ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.legal-doc a {
    color: var(--primary);
}

/* Setup guide & long-form docs */
.doc-guide-main {
    max-width: 800px;
}

.doc-section {
    scroll-margin-top: 6.5rem;
}

.doc-toc {
    margin: 1.75rem 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.doc-toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.doc-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.doc-toc a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.doc-toc a:hover {
    color: var(--primary);
}

.doc-steps-list {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.doc-steps-list li {
    margin-bottom: 0.35rem;
}

.doc-sublist {
    margin: 0.5rem 0 0.75rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.doc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: var(--bg-input);
    padding: 0.12em 0.35em;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--neutral);
}

/* Responsive */
@media (max-width: 768px) {
    body.nav-drawer-open {
        overflow: hidden;
        touch-action: none;
    }

    .nav-inner {
        min-height: 3.75rem;
        height: 3.75rem;
    }

    .nav-brand-logo {
        height: 2.35rem;
    }

    .nav-cluster {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 0.5rem 0 1rem;
        background: rgba(17, 24, 39, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        gap: 0;
        max-height: min(70vh, calc(100vh - 3.75rem));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

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

    .nav-cluster .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1.25rem;
    }

    .nav-cluster .nav-links a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        white-space: normal;
    }

    .nav-cluster .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-cluster .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 1rem 1.25rem 0.25rem;
        gap: 0.65rem;
    }

    .nav-cluster .nav-lang {
        justify-content: center;
        padding: 0.35rem 0 0.5rem;
        font-size: 0.9rem;
    }

    .nav-cluster .nav-actions .btn-ghost,
    .nav-cluster .nav-actions .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero { padding: 6.5rem 0 4rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }
    .hero-ctas { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat strong { font-size: 1.25rem; }

    .features-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .pricing-grid { grid-template-columns: 1fr; }

    .section-header h2 { font-size: 1.75rem; }
    .cta-section h2 { font-size: 1.75rem; }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-nav {
        padding: 0.65rem 0;
    }

    .legal-nav-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
    }

    .legal-nav-back {
        text-align: center;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .legal-nav-logo {
        height: 2.1rem;
    }

    .legal-body {
        padding-top: 6.25rem;
    }
}
