* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    transition: background-color .2s ease, color .2s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 360px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 20% 0%, rgba(8,120,255,.11), transparent 35%), radial-gradient(circle at 85% 5%, rgba(8,120,255,.08), transparent 28%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow { max-width: 760px; }
.centered { text-align: center; }
.section-pad { padding: 96px 0; }
.section-muted { background: var(--surface-soft); border-block: 1px solid var(--border); }
.skip-link { position: absolute; left: -9999px; top: 10px; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { display: block; }
.brand-wordmark { font-size: 1.5rem; letter-spacing: -.045em; line-height: 1; }
.brand-wordmark span { color: var(--primary); font-weight: 800; }
.desktop-nav { display: flex; gap: 30px; color: var(--text-muted); font-weight: 650; font-size: .95rem; }
.desktop-nav a:hover, .text-link:hover, footer a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; box-shadow: var(--shadow-soft); }
.menu-toggle { width: 42px; height: 42px; display: none; flex-direction: column; justify-content: center; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 11px; }
.menu-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 4px; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding: 15px 20px 20px; }
.mobile-nav a:not(.button) { display: block; padding: 12px 4px; color: var(--text-muted); font-weight: 650; }

.button { min-height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 10px 24px rgba(8,120,255,.20); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.button-large { min-height: 52px; padding: 0 24px; border-radius: 13px; }
.button-light { background: white; color: #0c1b33; }
.text-link { font-weight: 700; }

.hero { padding-top: 82px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 62px; align-items: center; }
.hero-copy h1 { font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; margin: 18px 0 24px; max-width: 760px; }
.hero-lead { color: var(--text-muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 620px; margin: 0; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 850; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 31px 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: .88rem; font-weight: 650; }

.hero-dashboard { min-width: 0; }
.mock-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1300px) rotateY(-2deg) rotateX(1deg); }
.mock-topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mock-brand { display: flex; align-items: center; gap: 7px; font-weight: 850; }
.mock-search { justify-self: center; width: min(100%, 270px); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; color: var(--text-muted); font-size: .72rem; }
.mock-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-strong); font-size: .72rem; font-weight: 800; }
.mock-body { display: grid; grid-template-columns: 118px 1fr; }
.mock-sidebar { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.mock-sidebar span { font-size: .68rem; padding: 7px 8px; border-radius: 7px; color: var(--text-muted); }
.mock-sidebar .active { color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.mock-content { padding: 18px; min-width: 0; }
.mock-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-heading-row strong { display: block; font-size: 1.08rem; }
.mock-heading-row small { color: var(--text-muted); display: block; margin-top: 2px; }
.mock-heading-row button { border: 0; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: .7rem; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.stat-card { border: 1px solid var(--border); background: var(--surface); padding: 12px; border-radius: 10px; }
.stat-card b { display: block; font-size: 1.38rem; line-height: 1.1; }
.stat-card span { color: var(--text-muted); font-size: .64rem; }
.stat-card.blue b { color: var(--primary); } .stat-card.green b { color: var(--success); } .stat-card.orange b { color: var(--warning); } .stat-card.red b { color: var(--danger); }
.mock-panels { display: grid; grid-template-columns: 1.35fr .85fr; gap: 10px; margin-top: 10px; }
.activity-card, .status-card { border: 1px solid var(--border); border-radius: 11px; padding: 12px; }
.panel-title { display: flex; justify-content: space-between; font-size: .7rem; margin-bottom: 8px; }
.panel-title span { color: var(--primary); }
.activity-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); }
.activity-row:first-of-type { border-top: 0; }
.activity-row i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-style: normal; }
.activity-row i.in { color: var(--success); background: var(--success-soft); } .activity-row i.out { color: var(--danger); background: var(--danger-soft); }
.activity-row b, .activity-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row b { font-size: .64rem; } .activity-row small, .activity-row time { font-size: .56rem; color: var(--text-muted); }
.status-card { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ring { width: 104px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--primary) 0 42%, #20b7df 42% 62%, var(--success) 62% 75%, var(--warning) 75% 90%, #627da0 90%); position: relative; display: grid; place-items: center; }
.ring::after { content: ""; position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; z-index: 1; font-weight: 900; font-size: 1.1rem; text-align: center; line-height: 1; }
.ring small { display: block; font-size: .5rem; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
.accounted { background: var(--success-soft); color: var(--success); border-radius: 8px; padding: 9px; font-size: .62rem; font-weight: 800; text-align: center; }

.problem-strip { border-block: 1px solid var(--border); background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.problem-grid > div { padding: 28px 32px; border-left: 1px solid var(--border); }
.problem-grid > div:first-child { border-left: 0; }
.problem-grid strong, .problem-grid span { display: block; }
.problem-grid span { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.05em; margin: 14px 0 18px; }
.section-intro { color: var(--text-muted); font-size: 1.08rem; margin: 0 auto; max-width: 680px; }
.section-intro.left { margin-left: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-soft); }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.step-card h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.step-card p { margin: 0; color: var(--text-muted); }

.feature-split { display: grid; grid-template-columns: 1fr .72fr; gap: 68px; align-items: center; }
.feature-list { margin-top: 34px; display: grid; gap: 12px; }
.feature-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--border); }
.feature-list > div > span { color: var(--primary); font-weight: 900; }
.feature-list strong { display: block; margin-bottom: 3px; }
.feature-list p { color: var(--text-muted); margin: 0; }
.key-card-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.key-card-top { display: flex; align-items: center; gap: 16px; }
.key-card-top small { color: var(--text-muted); font-weight: 800; letter-spacing: .08em; }
.key-card-top h3 { margin: 3px 0 0; font-size: 1.45rem; }
.key-glyph { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); transform: rotate(45deg); }
.key-status { display: inline-block; margin: 24px 0 8px; padding: 7px 11px; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.key-status.out { background: var(--danger-soft); color: var(--danger); }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
dt { color: var(--text-muted); } dd { margin: 0; font-weight: 750; text-align: right; }
.key-card-demo button { width: 100%; margin-top: 20px; min-height: 46px; border: 0; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 800; }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); box-shadow: var(--shadow); }
.price-card > span { color: var(--text-muted); font-weight: 800; }
.price-card > strong { font-size: 2.4rem; margin-top: 8px; }
.price-card > strong small { font-size: .95rem; color: var(--text-muted); }
.price-card p { color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 10px 0 24px; flex: 1; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 8px; }
.popular { position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 900; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 8px; }

.cta-section { padding: 42px 0; background: linear-gradient(135deg, #056cf0, #1292ff); color: #fff; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.cta-inner h2 { font-size: 2.2rem; margin: 0 0 4px; color: #fff; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.82); }
.site-footer { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--border); color: var(--text-muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .86rem; }
.footer-inner .brand-wordmark { color: var(--text); font-size: 1.1rem; }
.footer-inner > div { display: flex; gap: 18px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent); outline-offset: 3px; }

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .hero-grid, .feature-split { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-dashboard { width: min(100%, 760px); margin: 0 auto; }
    .mock-window { transform: none; }
    .steps-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
    .problem-grid { grid-template-columns: 1fr; }
    .problem-grid > div { border-left: 0; border-top: 1px solid var(--border); }
    .problem-grid > div:first-child { border-top: 0; }
    .cta-inner { grid-template-columns: auto 1fr; }
    .cta-inner .button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section-pad { padding: 70px 0; }
    .hide-small { display: none; }
    .theme-label { display: none; }
    .hero { padding-top: 54px; }
    .hero-copy h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
    .hero-actions { flex-direction: column; }
    .button-large { width: 100%; }
    .trust-row { flex-direction: column; gap: 8px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
    .mock-search { display: none; }
    .mock-topbar { grid-template-columns: 1fr auto; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .mock-panels { grid-template-columns: 1fr; }
    .status-card { display: none; }
    .feature-split { gap: 38px; }
    .key-card-demo { padding: 22px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-inner img { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
