:root {
    --bg: #f6f1e7;
    --bg-strong: #eadbc3;
    --surface: rgba(255,255,255,0.88);
    --surface-strong: #ffffff;
    --ink: #102132;
    --muted: #5d6976;
    --line: rgba(16,33,50,0.12);
    --primary: #0d8f73;
    --primary-deep: #085f4c;
    --accent: #ff8e3c;
    --accent-soft: #ffe3cf;
    --night: #0b1b2b;
    --shadow: 0 22px 60px rgba(16,33,50,0.10);
    --radius: 28px;
    --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255,142,60,0.18), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(13,143,115,0.12), transparent 24%),
        linear-gradient(180deg, #fffaf3 0%, var(--bg) 58%, #f0ede7 100%);
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(250,245,237,0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16,33,50,0.08);
}
.header-row { display: flex; align-items: center; gap: 22px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--night), var(--primary));
    box-shadow: var(--shadow);
}
.brand strong,
.brand small { display: block; }
.brand strong,
.hero h1,
.section-head h1,
.section-head h2,
.hero-stat strong,
.price-big,
.table strong {
    font-family: 'Space Grotesk', sans-serif;
}
.brand small,
.muted,
.breadcrumbs,
.table td,
.table th { color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 18px; flex: 1; }
.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
}
.main-nav a.active,
.main-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.button,
input,
textarea,
select,
button { font: inherit; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: 0 14px 28px rgba(13,143,115,0.24);
}
.button-secondary { background: rgba(255,255,255,0.8); border-color: var(--line); }
.text-link { font-weight: 800; color: var(--primary-deep); }
.menu-toggle {
    display: none;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.9);
}
.hero { padding: 78px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: center; }
.eyebrow,
.pill,
.kicker,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
}
.eyebrow,
.pill { background: rgba(13,143,115,0.10); color: var(--primary-deep); }
.kicker { background: rgba(255,142,60,0.15); color: #9d4f12; }
.hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}
.hero p { margin: 0 0 22px; font-size: 18px; max-width: 680px; color: var(--muted); }
.cta-row,
.pill-row,
.tag-row,
.stack { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel,
.card,
.metric,
.split-card,
.auth-card,
.dashboard-shell,
.dashboard-sidebar,
.dashboard-main,
.timeline-step,
.table-wrap,
.notice,
.product-card,
.blog-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.hero-panel,
.card,
.split-card,
.auth-card,
.dashboard-main,
.dashboard-sidebar,
.notice,
.product-card,
.blog-card,
.table-wrap { padding: 26px; }
.hero-card-grid,
.grid-2,
.grid-3,
.grid-4,
.metric-grid,
.footer-grid,
.split-grid,
.dashboard-shell,
.stats-row,
.docs-grid { display: grid; gap: 20px; }
.metric-grid,
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2,
.split-grid { grid-template-columns: repeat(2, 1fr); }
.docs-grid { grid-template-columns: repeat(2, 1fr); }
.hero-panel { position: relative; overflow: hidden; }
.hero-panel::after {
    content: '';
    position: absolute;
    inset: auto -20% -25% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,142,60,0.28), transparent 60%);
}
.hero-stat {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(234,219,195,0.48));
    border: 1px solid rgba(16,33,50,0.08);
}
.hero-stat strong { font-size: 28px; }
.section { padding: 56px 0; }
.page-hero { padding: 52px 0 10px; }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head.narrow { max-width: 720px; }
.section-head h1,
.section-head h2 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.04em; }
.section-head p { margin: 0; font-size: 17px; color: var(--muted); }
.breadcrumbs { margin-bottom: 12px; font-size: 14px; }
.card h3,
.product-card h3,
.blog-card h3 { margin-top: 0; }
.list-clean,
.footer-links,
.icon-list { margin: 0; padding: 0; list-style: none; }
.list-clean li,
.icon-list li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid rgba(16,33,50,0.08);
}
.list-clean li::before,
.icon-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(16,33,50,0.08);
    text-align: left;
    vertical-align: top;
}
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.badge { padding: 6px 10px; font-size: 12px; }
.badge.success { background: rgba(13,143,115,0.12); color: var(--primary-deep); }
.badge.pending { background: rgba(255,142,60,0.16); color: #9d4f12; }
.pricing-highlight {
    background: linear-gradient(135deg, var(--night), #123858);
    color: #eaf3ff;
}
.price-big { margin: 12px 0; font-size: 42px; }
.timeline {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}
.timeline-step { display: grid; gap: 8px; padding: 20px; }
.auth-shell { display: grid; grid-template-columns: 1fr 440px; gap: 28px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-weight: 800; }
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(16,33,50,0.12);
    background: rgba(255,255,255,0.92);
}
.order-form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.callout {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(16,33,50,0.08);
}
.warning-callout { background: rgba(255,142,60,0.12); color: #8f4c1b; }
.info-callout { background: rgba(13,143,115,0.10); color: var(--primary-deep); }
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.checkbox-row input { width: 18px; height: 18px; }
.result-panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(16,33,50,0.10);
}
.result-success { background: rgba(13,143,115,0.10); }
.result-error { background: rgba(255,142,60,0.14); }
.notice { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,227,207,0.55)); }
.dashboard-shell { grid-template-columns: 280px 1fr; }
.dashboard-sidebar { position: sticky; top: 100px; height: fit-content; }
.dashboard-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 800;
    color: var(--muted);
}
.dashboard-nav a.active,
.dashboard-nav a:hover { background: rgba(13,143,115,0.10); color: var(--primary-deep); }
.dashboard-panels { display: grid; gap: 20px; }
.stats-row { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.metric { padding: 18px; }
.metric strong { display: block; font-size: 30px; font-family: 'Space Grotesk', sans-serif; }
.site-footer {
    margin-top: 56px;
    padding: 52px 0 28px;
    background: var(--night);
    color: #dfe9f1;
}
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer-links li + li { margin-top: 10px; }
.footer-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); color: rgba(223,233,241,0.74); }
.faq-item + .faq-item { margin-top: 14px; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.api-code {
    margin: 0;
    padding: 18px;
    border-radius: 22px;
    background: #09131f;
    color: #d8f4ec;
    overflow: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}
.compare-card { display: grid; gap: 10px; }
.compare-card .mini { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card p:last-child,
.card p:last-child { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
    .hero-grid,
    .grid-4,
    .grid-3,
    .grid-2,
    .split-grid,
    .auth-shell,
    .dashboard-shell,
    .stats-row,
    .footer-grid,
    .metric-grid,
    .form-grid { grid-template-columns: 1fr; }
    .main-nav,
    .header-actions { display: none; }
    .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; }
    .main-nav.is-open {
        display: flex;
        position: absolute;
        top: 82px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255,255,255,0.98);
        box-shadow: var(--shadow);
    }
    .dashboard-sidebar { position: static; }
}
