:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-2: #f1f3f5;
    --text: #0e172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --secondary: #0e172a;
    --secondary-dark: #0e172a;
    --primary: #f96109;
    --primary-dark: #d45308;
    --primary-soft: #fff0e6;
    --accent: #f96109;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --gradient: linear-gradient(135deg, #0e172a 0%, #1e293b 42%, #f96109 100%);
    --shadow-sm: 0 1px 2px rgba(33, 37, 41, 0.06);
    --shadow-md: 0 10px 30px rgba(33, 37, 41, 0.08);
    --shadow-lg: 0 20px 50px rgba(33, 37, 41, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; overflow-x: clip; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 { color: var(--text); }
.hero h1, .hero h2, .hero h3,
.hero-panel h3,
.cta-banner h2,
.site-footer h4, .site-footer .footer-subheading { color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.skip-link {
    position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}
.header-inner {
    min-height: var(--header-height);
    display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--gradient); color: #fff;
    display: grid; place-items: center; font-weight: 800;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1rem; }
.logo-text small { font-size: 0.72rem; color: var(--text-muted); }

.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav > a, .nav-dropdown-trigger {
    color: var(--text); font-weight: 500; font-size: 0.95rem;
    padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
}
.primary-nav > a:hover, .nav-dropdown-trigger:hover { background: var(--surface-2); }
.primary-nav > a.active { background: var(--primary-soft); color: var(--primary); }
.nav-group { position: relative; }
.nav-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    width: 320px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
}
.nav-group.open .nav-dropdown { display: block; }
.nav-dropdown-item {
    display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text);
}
.nav-dropdown-item:hover { background: var(--surface-2); }
.nav-dropdown-icon { font-size: 1.2rem; }
.nav-dropdown-item small { display: block; color: var(--text-muted); font-size: 0.82rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.currency-toggle {
    display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px;
}
.currency-btn {
    border: 0; background: transparent; padding: 6px 10px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.currency-btn.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
    border: 1px solid transparent; transition: 0.2s ease; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #fff; color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.75); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    background: var(--gradient); color: #fff; padding: 88px 0 72px;
    position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 40%);
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.03em; color: #fff; }
.hero-lead { font-size: 1.12rem; opacity: 0.95; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
    background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.28);
    border-radius: var(--radius-sm); padding: 14px;
}
.stat-card strong { display: block; font-size: 1.35rem; }
.stat-card span { font-size: 0.85rem; opacity: 0.9; }

.hero-panel {
    background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.28);
    border-radius: var(--radius); padding: 24px; backdrop-filter: blur(8px);
}
.hero-panel h3 { margin: 0 0 12px; color: #fff; }
.hero-checklist { list-style: none; padding: 0; margin: 0; }
.hero-checklist li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-checklist li:last-child { border-bottom: 0; }

.page-hero {
    padding: 56px 0 40px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.02em; }
.page-hero p { margin: 0; color: var(--text-muted); max-width: 760px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-header h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.5vw, 2.2rem); letter-spacing: -0.02em; }
.section-header p { margin: 0; color: var(--text-muted); }

.split-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.content-block h2, .content-block h3 { margin-top: 0; }
.content-block p, .content-block li { color: var(--text-muted); }
.content-block ul { padding-left: 1.2rem; }
.highlight-box {
    background: var(--primary-soft); border: 1px solid #ffd4b3;
    border-radius: var(--radius); padding: 20px 24px;
}

.purpose-bar { padding-top: 0; }
.purpose-box {
    background: var(--primary-soft); border: 1px solid #ffd4b3; border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm); padding: 16px 20px; color: var(--text);
}
.purpose-box strong { color: var(--primary-dark); }
.use-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.use-case-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px;
}
.use-case-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.use-case-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Feature grid */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); transition: 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-card p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.95rem; }
.feature-link { font-weight: 600; font-size: 0.92rem; }

/* Pricing */
.pricing-toolbar {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.billing-toggle {
    display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px;
}
.billing-btn {
    border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
    font-weight: 600; cursor: pointer; color: var(--text-muted);
}
.billing-btn.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: var(--shadow-sm); font-weight: 700; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.pricing-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; position: relative; display: flex; flex-direction: column;
}
.pricing-card.is-recommended { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}
.pricing-card h3 { margin: 0 0 8px; }
.pricing-price { margin-bottom: 16px; }
.price-from { display: block; font-size: 0.82rem; color: var(--text-muted); }
.price-amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period, .price-yearly { display: block; font-size: 0.85rem; color: var(--text-muted); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pricing-features li {
    padding: 8px 0 8px 24px; position: relative; font-size: 0.92rem; color: var(--text-muted);
    border-bottom: 1px solid var(--surface-2);
}
.pricing-features li::before {
    content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.pricing-actions { display: grid; gap: 8px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.step-number {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 20px; margin-bottom: 12px;
}
.faq-item summary {
    cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding-bottom: 18px; color: var(--text-muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparison-table th, .comparison-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.comparison-table th { background: var(--surface-2); font-size: 0.88rem; }
.comparison-table td { font-size: 0.92rem; color: var(--text-muted); }

/* Forms */
.form-section { padding: 56px 0 80px; }
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
}
.form-card h2 { margin-top: 0; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input:not([type="checkbox"]):not([type="radio"]),
.form-row select,
.form-row textarea {
    width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px;
    font: inherit; background: #fff;
}
.form-row input[type="checkbox"],
.form-row input[type="radio"] {
    width: auto; flex-shrink: 0; margin: 0; accent-color: var(--primary);
}
.checkbox-list {
    display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
    padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.checkbox-list label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 400; margin-bottom: 0; cursor: pointer;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 97, 9, 0.15);
}
.form-row-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }
.turnstile-row { margin-top: 4px; min-height: 72px; }
.turnstile-row .cf-turnstile { min-height: 65px; }
.turnstile-error { color: var(--danger); margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.92rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

/* CTA banner */
.cta-banner {
    background: var(--gradient); color: #fff; padding: 56px 0;
    border-top: 4px solid var(--primary);
}
.cta-banner-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 8px; color: #fff; }
.cta-banner p { margin: 0; opacity: 0.92; max-width: 560px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Service detail */
.service-detail-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start;
}
.service-sidebar { align-self: start; min-width: 0; }
.sidebar-stack {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sidebar-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px;
}
.sidebar-card h3 { margin-top: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.pill-list li {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 12px; font-size: 0.82rem; font-weight: 600;
}
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
    padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--border);
}
.benefit-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Footer */
.site-footer { background: #0e172a; color: #cbd5e1; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: #adb5bd; font-size: 0.92rem; }
.footer-col h4, .footer-subheading { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
.footer-subheading { margin-top: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #adb5bd; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px; padding: 6px 10px; font-size: 0.75rem;
}
.footer-bottom {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: #6c757d;
}
.footer-powered a { color: #f96109; }

/* Legal */
.legal-content { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.legal-content h2 { margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .split-section, .form-grid, .service-detail-grid, .footer-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .use-case-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar-stack { position: static; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; margin-left: auto; }
    .primary-nav {
        display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    }
    .site-header.menu-open .primary-nav { display: flex; }
    .nav-group .nav-dropdown {
        position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 8px;
    }
    .header-actions { display: none; }
    .site-header.menu-open .header-actions {
        display: flex; position: absolute; top: calc(var(--header-height) + 280px); left: 16px; right: 16px;
        flex-wrap: wrap;
    }
    .hero-stats { grid-template-columns: 1fr; }
    .feature-grid, .steps-grid { grid-template-columns: 1fr; }
    .form-row-inline { grid-template-columns: 1fr; }
}
