:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #edf4ff;
    --ink: #0b1526;
    --muted: #5d6b7d;
    --line: rgba(11, 21, 38, .10);
    --brand: #2563eb;
    --brand-2: #22d3ee;
    --dark: #07111f;
    --dark-2: #0c1a2c;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(23, 52, 94, .13);
    --container: 1180px;
}

* { 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;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 248, 252, .86);
    border-bottom: 1px solid rgba(11, 21, 38, .07);
    backdrop-filter: blur(18px);
}
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 28px rgba(37, 99, 235, .25);
}
.brand-copy { display: flex; flex-direction: column; line-height: .9; }
.brand-copy strong { letter-spacing: .12em; font-size: 15px; }
.brand-copy small { margin-top: 7px; letter-spacing: .23em; font-size: 8px; color: var(--muted); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.main-nav a { font-size: 14px; font-weight: 650; color: #39485b; transition: .2s ease; }
.main-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; width: 42px; height: 42px; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

.button {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 48px; padding: 0 22px;
    border: 1px solid var(--brand);
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #0284c7);
    color: #fff;
    font-weight: 750;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .2);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(37, 99, 235, .28); }
.button--small { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.button--ghost { color: var(--ink); background: rgba(255,255,255,.7); border-color: var(--line); box-shadow: none; }
.button--ghost:hover { background: #fff; box-shadow: 0 12px 28px rgba(20, 40, 70, .08); }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(245,248,252,.9)),
        radial-gradient(circle at 12% 22%, rgba(37,99,235,.17), transparent 33%),
        radial-gradient(circle at 88% 35%, rgba(34,211,238,.12), transparent 28%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(17, 33, 58, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 33, 58, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding-block: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.hero h1, .section-heading h2, .split-grid h2, .cta-panel h2, .quote-layout h2, .demo-layout h2 {
    margin: 0;
    letter-spacing: -.045em;
    line-height: 1.03;
}
.hero h1 { max-width: 760px; font-size: clamp(48px, 6vw, 82px); }
.hero-lead { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.dashboard-card {
    width: min(100%, 520px);
    min-height: 340px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 50px 120px rgba(35, 64, 115, .21);
    backdrop-filter: blur(14px);
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
}
.mock-topbar { height: 50px; display: flex; align-items: center; gap: 6px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.mock-topbar span { width: 8px; height: 8px; border-radius: 50%; background: #d7dfeb; }
.mock-grid { display: grid; grid-template-columns: 78px 1fr; min-height: 290px; }
.mock-sidebar { padding: 25px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.mock-sidebar i { width: 32px; height: 9px; border-radius: 8px; background: #dfe7f3; }
.mock-sidebar i:first-child { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.mock-content { padding: 30px; }
.mock-title { width: 150px; height: 17px; border-radius: 9px; background: #cfd9e8; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.mock-kpis span { height: 70px; border-radius: 15px; border: 1px solid #e3e9f2; background: linear-gradient(145deg, #fff, #f5f8fc); }
.mock-chart { height: 118px; display: flex; align-items: end; gap: 13px; padding: 12px 16px; border-radius: 18px; background: #f5f8fc; }
.mock-chart b { flex: 1; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .78; }
.mock-chart .bar-35 { height: 35%; } .mock-chart .bar-58 { height: 58%; } .mock-chart .bar-45 { height: 45%; } .mock-chart .bar-78 { height: 78%; } .mock-chart .bar-68 { height: 68%; } .mock-chart .bar-92 { height: 92%; }
.floating-chip { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; color: #fff; font-weight: 850; box-shadow: 0 24px 50px rgba(20,40,70,.22); }
.floating-chip--site { top: 35px; right: -12px; background: #0f172a; }
.floating-chip--api { left: 4px; bottom: 45px; background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.floating-chip--data { right: 20px; bottom: 12px; background: linear-gradient(135deg, #0f766e, #22d3ee); font-size: 26px; }
.hero-orb { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(100px); opacity: .17; }
.hero-orb--one { background: #2563eb; left: -200px; top: 0; }
.hero-orb--two { background: #22d3ee; right: -180px; bottom: -180px; }

.section { padding: 110px 0; }
.section--tight { padding: 34px 0; }
.section--soft { background: #edf4ff; }
.section--dark { background: var(--dark); color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2, .split-grid h2, .cta-panel h2, .quote-layout h2, .demo-layout h2 { font-size: clamp(36px, 4.5vw, 58px); }
.section-heading p, .split-grid p, .quote-layout > div > p, .demo-layout > div > p { color: var(--muted); font-size: 18px; }
.section--dark .split-grid p { color: #aab8c9; }

.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 50px rgba(34,57,95,.06); color: #6a7788; font-size: 12px; letter-spacing: .17em; font-weight: 850; }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: #c9d2df; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid--four { grid-template-columns: repeat(4, 1fr); }
.feature-card, .contact-card {
    min-height: 280px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.85);
    box-shadow: 0 14px 50px rgba(37, 65, 103, .055);
}
.feature-card h3, .contact-card h3 { margin: 30px 0 10px; font-size: 23px; letter-spacing: -.02em; }
.feature-card p, .contact-card p { color: var(--muted); }
.feature-card a, .contact-card a { color: var(--brand); font-weight: 750; }
.feature-icon { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 13px; background: #e9f1ff; color: var(--brand); font-weight: 900; font-size: 12px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.flow { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.flow div { min-width: 98px; padding: 18px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.06); text-align: center; }
.flow strong, .flow span { display: block; }
.flow strong { color: #66d9ff; font-size: 11px; }
.flow span { margin-top: 6px; font-size: 13px; }
.flow b { color: #5b6c80; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 44px rgba(25,50,88,.07); }
.portfolio-cover { aspect-ratio: 16/10; overflow: hidden; background: #e9f1ff; }
.portfolio-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.portfolio-card:hover .portfolio-cover img { transform: scale(1.035); }
.portfolio-cover--placeholder { display: grid; place-items: center; font-size: 42px; font-weight: 900; color: rgba(37,99,235,.24); }
.portfolio-card__body { padding: 24px; }
.portfolio-card__body h3 { margin: 0 0 8px; font-size: 22px; }
.portfolio-card__body p { margin: 0; color: var(--muted); }
.dynamic-empty { padding: 34px; border: 1px dashed #a9bad1; border-radius: 20px; color: #718198; text-align: center; background: rgba(255,255,255,.4); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: #dfe9f7; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; inset: auto 10px 10px; padding: 8px 11px; border-radius: 10px; color: #fff; font-size: 12px; background: rgba(7,17,31,.72); backdrop-filter: blur(8px); }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 800px; font-size: clamp(32px, 4vw, 48px); }
.cta-panel--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.11); box-shadow: none; }

.stat-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-stack div { padding: 26px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.05); }
.stat-stack strong, .stat-stack span { display: block; }
.stat-stack strong { color: #64dcff; font-size: 30px; }
.stat-stack span { margin-top: 9px; color: #b9c5d4; font-size: 13px; }

.code-card { padding: 34px; border-radius: 24px; background: #07111f; color: #fff; box-shadow: 0 25px 65px rgba(7,17,31,.2); }
.code-card span, .code-card small { display: block; color: #8da1b8; }
.code-card code { display: block; margin: 22px 0; padding: 22px; border-radius: 15px; color: #73e7ff; background: rgba(255,255,255,.06); font-size: 17px; }

.timeline { display: grid; gap: 16px; max-width: 860px; }
.timeline-item { display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.timeline-item > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #e9f1ff; color: var(--brand); font-weight: 900; }
.timeline-item h3 { margin: 3px 0 7px; font-size: 21px; }
.timeline-item p { margin: 0; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.price-card--featured { color: #fff; background: linear-gradient(155deg, #0b1930, #0f2748); border-color: rgba(255,255,255,.1); box-shadow: 0 30px 90px rgba(7,17,31,.2); transform: translateY(-12px); }
.price-card h3 { margin: 6px 0 12px; font-size: 28px; }
.price-note { min-height: 58px; color: var(--muted); }
.price-card--featured .price-note { color: #b4c2d2; }
.price-card ul { padding-left: 20px; margin: 28px 0; color: var(--muted); }
.price-card--featured ul { color: #c6d1de; }
.price-card li { margin: 8px 0; }
.price-badge { position: absolute; top: 18px; right: 18px; padding: 7px 10px; border-radius: 10px; background: #1e63e9; font-size: 11px; font-weight: 800; }
.pricing-disclaimer { margin: 28px auto 0; max-width: 800px; text-align: center; color: var(--muted); font-size: 13px; }

.demo-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.demo-screen { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.demo-screen__top { height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.demo-screen__top span { width: 8px; height: 8px; border-radius: 50%; background: #d7dfeb; }
.demo-screen__body { display: grid; grid-template-columns: 90px 1fr; min-height: 360px; }
.demo-nav { padding: 25px 18px; border-right: 1px solid var(--line); background: #f7f9fc; }
.demo-nav i { display: block; height: 10px; margin-bottom: 22px; border-radius: 8px; background: #d8e1ee; }
.demo-nav i:first-child { background: #2563eb; }
.demo-main { padding: 30px; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; }
.demo-cards span { height: 80px; border-radius: 15px; background: #eef3f9; }
.demo-table { padding: 15px; border-radius: 15px; background: #f6f8fb; }
.demo-table i { display: block; height: 12px; margin: 14px 0; border-radius: 8px; background: #dce5f0; }
.check-list { list-style: none; padding: 0; margin: 26px 0; }
.check-list li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.quote-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.quote-points { margin-top: 34px; display: grid; gap: 12px; }
.quote-points div { display: flex; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.65); }
.quote-points strong { color: var(--brand); }
.quote-points span { color: #4e5e72; }

.quote-form { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.quote-form label { display: block; margin-bottom: 15px; color: #34445a; font-size: 13px; font-weight: 750; }
.quote-form input, .quote-form textarea, .quote-form select {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #cfd8e5;
    border-radius: 12px;
    outline: 0;
    color: var(--ink);
    background: #fbfcfe;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.form-footer p { margin: 0; max-width: 430px; color: #748196; font-size: 12px; }
.form-status { margin-top: 16px; min-height: 24px; font-weight: 700; font-size: 14px; }
.form-status.is-success { color: #067647; }
.form-status.is-error { color: #b42318; }

.site-footer { padding: 75px 0 28px; color: #d8e2ed; background: #07111f; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 50px; }
.brand--footer { color: #fff; }
.brand--footer .brand-copy small { color: #8ba0b8; }
.footer-grid p { max-width: 420px; color: #92a5ba; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
.footer-grid > div > strong { margin-bottom: 9px; color: #fff; }
.footer-grid a { color: #9fb1c4; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #70859d; font-size: 12px; }

.consent { position: fixed; z-index: 200; left: 20px; right: 20px; bottom: 20px; max-width: 880px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #fff; background: rgba(7,17,31,.95); box-shadow: 0 25px 80px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.consent[hidden] { display: none; }
.consent p { margin: 5px 0 0; color: #afbdcc; font-size: 12px; }
.consent-actions { display: flex; gap: 9px; flex: none; }
.consent .button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.22); }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; background: radial-gradient(circle at center, #eef4ff, #f8fafc); }
.error-page h1 { margin: 5px 0 14px; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.05em; }
.error-page p { color: var(--muted); margin-bottom: 25px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1000px) {
    .main-nav { position: fixed; inset: 78px 0 auto; padding: 25px 20px 34px; display: none; flex-direction: column; align-items: stretch; background: rgba(245,248,252,.98); border-bottom: 1px solid var(--line); }
    .main-nav.is-open { display: flex; }
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .hero-grid, .split-grid, .quote-layout, .demo-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-grid { gap: 35px; padding-block: 70px; }
    .hero-visual { min-height: 380px; }
    .feature-grid--four { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card--featured { transform: none; }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .nav-wrap { height: 70px; }
    .main-nav { inset: 70px 0 auto; }
    .section { padding: 78px 0; }
    .hero h1 { font-size: clamp(42px, 13vw, 62px); }
    .hero-visual { min-height: 300px; }
    .dashboard-card { min-height: 260px; }
    .mock-grid { grid-template-columns: 58px 1fr; min-height: 220px; }
    .mock-content { padding: 18px; }
    .mock-kpis { margin: 18px 0; }
    .mock-kpis span { height: 52px; }
    .mock-chart { height: 90px; }
    .floating-chip { width: 52px; height: 52px; border-radius: 16px; font-size: 12px; }
    .feature-grid, .feature-grid--four, .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-strip { overflow-x: auto; justify-content: flex-start; }
    .trust-strip span, .trust-strip i { flex: none; }
    .cta-panel { flex-direction: column; align-items: flex-start; padding: 30px; }
    .stat-stack { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .consent { flex-direction: column; align-items: stretch; }
    .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
