/* Duckle website design system.
   Brand = Duckle palette: orange #ff7a45, hot orange #ff6900, slate-violet
   #7d66ff, maya blue #2eafff. Light is the default theme (clean, like
   duckdb.org); dark is a toggle. Product screenshots sit in browser-frame
   mockups. No emoji - icons are inline SVG. */

:root {
    /* brand */
    --lemon: #ff7a45;
    --orange: #ff6900;
    --orange-600: #e8590c;
    --violet: #7d66ff;
    --maya: #2eafff;

    /* light theme (default) */
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --bg-2: #f3f4f6;
    --bg-3: #eceef1;
    --panel: #ffffff;
    --ink: #0d0d0d;
    --ink-2: #454d5a;
    --ink-3: #717784;
    --border: #e7e9ee;
    --border-2: #d7dae1;

    --gold: #ff9e3d;
    --accent: var(--ink);
    --accent-2: var(--gold);
    --on-accent: #0a0a0a;
    --link: var(--ink);

    --kind-source: #1f8fd0;
    --kind-transform: #6a4bff;
    --kind-sink: #d96400;

    --shadow-sm: 0 1px 2px rgba(13, 15, 20, 0.06), 0 4px 12px rgba(13, 15, 20, 0.05);
    --shadow: 0 10px 30px rgba(13, 15, 20, 0.1), 0 2px 6px rgba(13, 15, 20, 0.05);
    --shadow-lg: 0 30px 70px rgba(13, 15, 20, 0.16), 0 8px 20px rgba(13, 15, 20, 0.08);

    --nav-bg: rgba(255, 255, 255, 0.82);
    --hero-tint: radial-gradient(900px 380px at 78% -8%, rgba(237, 95, 34, 0.12), transparent 60%),
        radial-gradient(720px 360px at 8% 0%, rgba(255, 122, 69, 0.16), transparent 62%);
    --code-bg: #0d111a;
    --code-ink: #cdd6e6;

    --max: 1180px;
    --radius: 16px;
    --radius-sm: 10px;
    --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #07090f;
    --bg-soft: #0b0e16;
    --bg-2: #121724;
    --bg-3: #1b2231;
    --panel: #0e1220;
    --ink: #eef2f8;
    --ink-2: #aeb7c7;
    --ink-3: #7a8294;
    --border: rgba(255, 255, 255, 0.09);
    --border-2: rgba(255, 255, 255, 0.16);

    --accent: var(--lemon);
    --accent-2: var(--gold);
    --on-accent: #0a0a0a;
    --link: #ffd44d;

    --kind-source: var(--maya);
    --kind-transform: #9d8cff;
    --kind-sink: var(--orange);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

    --nav-bg: rgba(11, 14, 22, 0.78);
    --hero-tint: radial-gradient(900px 400px at 80% -10%, rgba(237, 95, 34, 0.16), transparent 60%),
        radial-gradient(760px 380px at 6% 0%, rgba(255, 122, 69, 0.1), transparent 62%),
        radial-gradient(640px 360px at 50% 0%, rgba(125, 102, 255, 0.14), transparent 62%);
    --code-bg: #05070c;
    --code-ink: #c6d0e2;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
    line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.docs-main a, .uc-text a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.docs-main a:hover, .uc-text a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--ink-2); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section.tight { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 640; font-size: .97rem; padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s, border-color .18s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: #171717; color: var(--lemon); border-color: #171717; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn-primary:hover { background: #000; }
:root[data-theme="dark"] .btn-primary { background: var(--lemon); color: #0a0a0a; border-color: var(--lemon); box-shadow: 0 6px 18px rgba(237, 95, 34, .28); }
:root[data-theme="dark"] .btn-primary:hover { background: #ed5f22; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 82px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 820; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .dot { color: var(--gold); }
.brand .bw { display: inline-flex; flex-direction: column; line-height: 1.02; }
.brand .by { font-family: "Segoe Script", "Brush Script MT", cursive; font-style: italic; font-weight: 600; font-size: .5em; color: var(--lemon); margin-top: 1px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 560; font-size: .94rem; padding: 8px 13px; border-radius: 9px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-right .btn { padding: 12px 24px; border-radius: 999px; font-size: .95rem; font-weight: 670; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--panel); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

.gh-star { display: inline-flex; align-items: stretch; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: var(--panel); font-size: .86rem; font-weight: 660; box-shadow: var(--shadow-sm); }
.gh-star:hover { text-decoration: none; }
.gh-star .gh-label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--ink); }
.gh-star .gh-count { display: inline-flex; align-items: center; padding: 8px 13px; color: #0a0a0a; background: var(--lemon); font-variant-numeric: tabular-nums; }
.gh-star svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.logo-dark { display: none; }
.logo-light { display: inline; }
:root[data-theme="dark"] .logo-dark { display: inline; }
:root[data-theme="dark"] .logo-light { display: none; }
.nav-toggle { display: none; }

/* ---- browser-frame mockup for screenshots ---- */
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: var(--panel); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.frame-bar i:nth-child(1) { background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar .url { margin-left: 12px; font-size: .76rem; color: var(--ink-3); font-family: var(--mono); }
.frame img { width: 100%; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: 0; pointer-events: none; background: var(--hero-tint); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1.18fr; gap: 52px; align-items: center; }
.hero h1 .grad { background: linear-gradient(115deg, #c2410c, #9a3412 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hero h1 .grad { background: linear-gradient(115deg, var(--lemon), var(--gold) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--ink-3); font-size: .9rem; }
.hero-sub .ok { display: inline-flex; align-items: center; gap: 6px; }
.hero-sub .ok svg { width: 15px; height: 15px; color: var(--maya); }
.badge-eco { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); color: var(--ink-2); font-size: .82rem; font-weight: 600; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.badge-eco b { color: var(--accent); }
.badge-eco .dd { width: 11px; height: 11px; border-radius: 3px; background: var(--lemon); border: 1px solid rgba(0,0,0,.15); }

/* ---- logo / proof strip ---- */
.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.proof .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; padding-top: 22px; padding-bottom: 22px; }
.proof .lbl { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.proof .tag { font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.proof .tag b { color: var(--ink); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.3rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); }
:root[data-theme="dark"] .stat b { background: linear-gradient(135deg, var(--lemon), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-3); font-size: .88rem; }

/* ---- feature rows (alternating) ---- */
.feature { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.rev .feat-text { order: 2; }
.feat-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.feat-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feat-list li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-2); }
.feat-list li svg { position: absolute; left: 0; top: 3px; width: 19px; height: 19px; color: var(--accent); }

/* ---- icon cards ---- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .15s, border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
a.card:hover { text-decoration: none; }
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(237, 95, 34, .16); color: var(--accent); font-size: 0; }
.card .ico svg { width: 23px; height: 23px; }
.card.src .ico { background: rgba(46, 175, 255, .14); color: var(--kind-source); }
.card.xf .ico { background: rgba(125, 102, 255, .15); color: var(--kind-transform); }
.card.snk .ico { background: rgba(255, 105, 0, .12); color: var(--kind-sink); }
.card h3 { margin-bottom: 7px; }
.card p { margin: 0; font-size: .96rem; }

/* ---- use cases (screenshot driven) ---- */
.uc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: center; }
.uc + .uc { margin-top: 90px; }
.uc.rev .uc-text { order: 2; }
.uc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.uc-text h3 { font-size: 1.5rem; margin-bottom: .5em; }
.uc-metrics { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.uc-metric b { display: block; font-size: 1.5rem; font-weight: 820; color: var(--ink); letter-spacing: -.02em; }
.uc-metric span { font-size: .8rem; color: var(--ink-3); }
.uc-pipe { margin-top: 16px; font-family: var(--mono); font-size: .82rem; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; }
.uc-pipe .n { color: #ffb27a; }
.uc-pipe .a { color: #6d7585; }

/* ---- integrations ---- */
.int-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int-cat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.int-cat h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 13px; }
.int-cat .count { margin-left: auto; font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--ink-2); white-space: nowrap; }

/* ---- ecosystem ---- */
.eco { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 48px; text-align: center; box-shadow: var(--shadow-sm); }
.eco img.mark { width: 54px; height: 54px; margin: 0 auto 14px; }
.eco-head { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 18px; }
.eco-head img.mark { width: 38px; height: 38px; margin: 0; }
.eco-head .eyebrow { margin: 0; }
.eco blockquote { max-width: 760px; margin: 16px auto 0; color: var(--ink-3); font-size: .96rem; }
.eco .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---- learn hub teaser ---- */
.learn-card { display: flex; flex-direction: column; }
.learn-card .tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.learn-card h3 { font-size: 1.08rem; }
.learn-card .more { margin-top: auto; padding-top: 12px; font-weight: 650; color: var(--accent); font-size: .9rem; }

/* ---- CTA band ---- */
.cta { text-align: center; border-radius: var(--radius); padding: 64px 28px; background: linear-gradient(135deg, rgba(255, 122, 69, .2), rgba(237, 95, 34, .24)); border: 1px solid var(--border-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cta .hero-cta { margin: 26px 0 0; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 28px; }
.footer h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; }
.footer a { display: block; color: var(--ink-2); font-size: .92rem; padding: 4px 0; }
.footer a:hover { color: var(--accent); text-decoration: none; }
.footer .brand { display: flex; align-items: center; }
.footer .legal a { display: inline; padding: 0; }
.footer .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-3); font-size: .84rem; }

/* ---- docs ---- */
.docs-shell { display: grid; grid-template-columns: 252px 1fr; gap: 40px; align-items: start; }
.docs-side { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 30px; }
.docs-side h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 18px 0 7px; }
.docs-side a { display: block; color: var(--ink-2); font-size: .92rem; padding: 6px 11px; border-radius: 8px; }
.docs-side a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.docs-side a.active { background: rgba(237, 95, 34, .18); color: var(--accent); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-main h1 { font-size: 2.2rem; margin-bottom: .3em; }
.docs-main h2 { font-size: 1.5rem; margin-top: 1.6em; padding-top: .5em; border-top: 1px solid var(--border); }
.docs-main h3 { margin-top: 1.4em; }
.docs-main ul, .docs-main ol { color: var(--ink-2); padding-left: 22px; }
.docs-main li { margin-bottom: 6px; }
.docs-main table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.docs-main th, .docs-main td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs-main th { color: var(--ink); font-weight: 660; }
.docs-main td { color: var(--ink-2); }

pre, code { font-family: var(--mono); }
code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .88em; color: var(--ink); }
pre { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; margin: 1em 0; }
pre code { background: none; border: none; padding: 0; color: var(--code-ink); }
.note { border-left: 3px solid var(--gold); background: rgba(237, 95, 34, .12); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 1em 0; color: var(--ink-2); }
.note b { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 980px) {
    .docs-shell { grid-template-columns: 1fr; }
    .docs-side { position: static; max-height: none; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--border); padding: 8px; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; }
    .nav-toggle { display: inline-flex; }
    .section { padding: 60px 0; }
    .cols-2, .cols-3, .cols-4, .int-cats, .stats { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .feature, .feature.rev, .uc, .uc.rev { grid-template-columns: 1fr; gap: 28px; }
    .feature.rev .feat-text, .uc.rev .uc-text { order: 0; }
    .feature + .feature, .uc + .uc { margin-top: 56px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
}

/* ============================================================
   Landing-page structural components
   ============================================================ */

/* mega-menu dropdowns in the nav */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > .top { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 560; font-size: .94rem; padding: 8px 13px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.nav-item > .top:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.nav-item > .top svg { width: 13px; height: 13px; opacity: .6; }
.mega { position: absolute; top: calc(100% + 12px); left: 0; min-width: 640px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px 22px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 70; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: flex; gap: 13px; align-items: flex-start; padding: 12px; border-radius: 12px; }
.mega a:hover { background: var(--bg-2); text-decoration: none; }
.mega .mi { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink-2); }
.mega .mi svg { width: 18px; height: 18px; }
.mega .mlbl { grid-column: 1 / -1; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 2px 12px 12px; }
.mega b { display: block; color: var(--ink); font-size: .95rem; font-weight: 650; margin-bottom: 2px; }
.mega span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.mega.right { left: auto; right: 0; }
.nav-item:has(> .mega3) { position: static; }
.mega3 { left: 50%; right: auto; transform: translateX(-50%) translateY(8px); min-width: 0; width: min(1132px, calc(100vw - 40px)); max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
.nav-item:hover .mega3, .nav-item:focus-within .mega3 { transform: translateX(-50%) translateY(0); }
.mega3 .mcol { display: flex; flex-direction: column; }

/* dark stat band */
.statband { background: #0b0e16; color: #eef2f8; padding: 40px 0; }
:root[data-theme="dark"] .statband { background: #05070c; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statband .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.statband .sb b { display: block; font-size: 2.4rem; font-weight: 850; letter-spacing: -.04em; background: linear-gradient(135deg, var(--lemon), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statband .sb span { color: #aeb7c7; font-size: .9rem; }

/* integrations marquee */
.marquee { overflow: hidden; position: relative; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 90s linear infinite; }
.marquee.rtl .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; padding: 0; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.logo-tile .d { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.logo-tile img { width: 38px; height: 38px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Integrations directory (docs/integrations.html) ---- */
.intg-page { padding-top: 40px; padding-bottom: 64px; }
.intg-head { max-width: 720px; }
.intg-head .lead { max-width: 640px; }
.intg-layout { display: grid; grid-template-columns: 236px 1fr; gap: 30px; align-items: start; margin-top: 28px; }
.intg-rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }
.intg-search { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.intg-search input { border: 0; background: transparent; outline: none; color: var(--ink-1); font-size: .92rem; width: 100%; }
.intg-search svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.intg-rlbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; margin: 0 0 10px; }
.intg-radio { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; color: var(--ink-2); font-size: .9rem; }
.intg-radio input { accent-color: var(--lemon); width: 15px; height: 15px; }
.intg-catlist { display: flex; flex-direction: column; gap: 2px; }
.intg-catlist button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 11px; border-radius: 9px; color: var(--ink-2); font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .12s, color .12s; }
.intg-catlist button:hover { background: var(--panel); }
.intg-catlist button.active { background: var(--lemon); color: #0a0a0a; }
.intg-catlist button .c { font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.intg-catlist button.active .c { color: #0a0a0a; opacity: .65; }
.intg-count { color: var(--ink-3); font-size: .85rem; margin: 0 0 16px; }
.intg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.intg-card { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.intg-card:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-md, 0 10px 26px rgba(0,0,0,.10)); }
.intg-logo { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.intg-logo img { width: 27px; height: 27px; object-fit: contain; }
.intg-logo svg { width: 24px; height: 24px; }
.intg-meta { display: flex; flex-direction: column; min-width: 0; }
.intg-name { font-weight: 700; font-size: .96rem; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intg-kind { font-size: .75rem; color: var(--ink-3); }
.intg-empty { color: var(--ink-3); padding: 40px 0; text-align: center; }
.intg-cta { margin-top: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.intg-cta h4 { margin: 0 0 5px; font-size: .92rem; color: var(--ink-1); }
.intg-cta p { margin: 0 0 12px; font-size: .82rem; line-height: 1.5; color: var(--ink-3); }
.intg-cta .btn { width: 100%; justify-content: center; }

/* Dark mode: dark slate behind the icons instead of bright white squares.
   Near-black brand glyphs ship a light variant via .logo-light/.logo-dark. */
:root[data-theme="dark"] .logo-tile,
:root[data-theme="dark"] .intg-logo { background: #1b1f2a; border-color: rgba(255, 255, 255, .14); }

@media (max-width: 860px) {
  .intg-layout { grid-template-columns: 1fr; gap: 18px; }
  .intg-rail { position: static; }
  .intg-catlist { flex-direction: row; flex-wrap: wrap; }
  .intg-catlist button { width: auto; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
  .intg-catlist button .c { display: none; }
}

/* security / compliance strip */
.secstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.secitem { text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
.secitem .si { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(46,175,255,.12); color: var(--maya); }
.secitem .si svg { width: 21px; height: 21px; }
.secitem b { display: block; color: var(--ink); font-size: .95rem; }
.secitem span { font-size: .8rem; color: var(--ink-3); }

/* three use-case columns */
.usecols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usecol { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.usecol:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usecol .top { padding: 26px 24px 0; }
.usecol .tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.usecol h3 { margin: 8px 0 8px; font-size: 1.18rem; }
.usecol p { font-size: .94rem; margin: 0 0 18px; }
.usecol .shot { border-top: 1px solid var(--border); }
.usecol .shot img { width: 100%; display: block; }

/* case-study metric cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.case .big { font-size: 2.4rem; font-weight: 850; letter-spacing: -.04em; color: var(--accent); }
.case h3 { font-size: 1.08rem; margin: 4px 0 8px; }
.case p { font-size: .93rem; margin: 0; }

@media (max-width: 980px) { .statband .row, .secstrip, .usecols, .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .nav-item { display: block; width: 100%; }
    .nav-item > .top { padding: 12px; }
    .mega { display: none; }
    .statband .row, .secstrip, .usecols, .cases { grid-template-columns: 1fr; }
    .statband .sb b { font-size: 2rem; }
}

/* ============================================================
   Hero: announcement bar, pill nav, rating row,
   and the integrations graph (central mark + logo nodes).
   ============================================================ */
.announce { background: rgba(255, 122, 69, 0.22); color: var(--ink); font-size: .82rem; font-weight: 500; text-align: center; padding: 9px 44px; position: relative; border-bottom: 1px solid rgba(255, 122, 69, 0.45); }
.announce a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 5px; }
.announce a:hover { opacity: .8; }
.announce a svg { width: 14px; height: 14px; }
.announce-x { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; cursor: pointer; opacity: .6; padding: 4px; display: inline-flex; line-height: 0; }
.announce-x:hover { opacity: 1; }
.announce-x svg { width: 16px; height: 16px; }

/* pill buttons */
.btn-pill { border-radius: 999px; padding: 11px 24px; }
.btn-outline { background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink-2); border-radius: 999px; box-shadow: none; }
.btn-outline:hover { background: var(--bg-2); }
.btn-dark { background: #171717; color: #fff; border: 1px solid #171717; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-dark:hover { background: #000; }
:root[data-theme="dark"] .btn-dark { background: #fff; color: #0a0a0a; border-color: #fff; }

/* hero rating row */
.rating { display: inline-flex; align-items: center; gap: 9px; }
.rating .stars { display: inline-flex; gap: 1px; color: #ffb400; }
.rating .stars svg { width: 17px; height: 17px; }
.rating .rtxt { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* hero trust microcopy */
.value-props { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.value-props .vp { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.value-props .vp svg { width: 15px; height: 15px; color: var(--maya); }

/* hero headline scale */
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }

/* integrations graph */
.hgraph { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hgraph .gridbg { position: absolute; inset: 0; background-image: radial-gradient(currentColor 1.1px, transparent 1.1px); background-size: 26px 26px; color: var(--border-2); opacity: .55; -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000, transparent 100%); mask-image: radial-gradient(72% 72% at 50% 50%, #000, transparent 100%); }
.hgraph .lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hgraph .lines line { stroke: var(--border-2); stroke-width: 1.4; }
.hgraph .lines circle { fill: var(--gold); }
.hg-el { position: absolute; transform: translate(-50%, -50%); }
.hg-center { width: 112px; height: 112px; border-radius: 50%; background: transparent; border: none; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; z-index: 4; animation: hgpulse 3.4s ease-in-out infinite; }
.hg-center img { width: 112px; height: 112px; }
@keyframes hgpulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(255, 122, 69, .06), 0 0 18px 2px rgba(255, 122, 69, .12), 0 18px 44px rgba(0, 0, 0, .35); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 122, 69, .12), 0 0 42px 8px rgba(255, 122, 69, .34), 0 18px 44px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .hg-center { animation: none; } }
.hgraph .lines circle.flow { fill: var(--gold); }
:root[data-theme="dark"] .hgraph .lines circle.flow { fill: var(--lemon); }
@media (prefers-reduced-motion: reduce) { .hgraph .lines circle.flow { display: none; } }
.hg-group { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 12px 9px; z-index: 3; }
.hg-group .grow { display: flex; gap: 8px; }
.hg-group .glbl { text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 9px; }
.hg-tile, .hg-node { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.hg-tile { width: 44px; height: 44px; border-radius: 12px; }
.hg-tile img { width: 28px; height: 28px; background: #fff; border-radius: 6px; padding: 3px; box-sizing: border-box; }
.hg-node { width: 60px; height: 60px; border-radius: 50%; z-index: 3; }
.hg-node img { width: 36px; height: 36px; background: #fff; border-radius: 50%; padding: 5px; box-sizing: border-box; }
.hg-node.sm { width: 50px; height: 50px; } .hg-node.sm img { width: 32px; height: 32px; }
.hg-group.eco .hg-tile { background: var(--panel); border: 1px solid var(--border); }
:root[data-theme="dark"] .hg-group.eco .hg-tile { background: #1b1f2a; border-color: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .hg-group.eco .hg-tile img { background: transparent; padding: 4px; }
.hg-float { animation: hgfloat 6.5s ease-in-out infinite; }
.hg-float.d1 { animation-delay: -1.3s; } .hg-float.d2 { animation-delay: -2.6s; } .hg-float.d3 { animation-delay: -3.9s; } .hg-float.d4 { animation-delay: -5.2s; }
@keyframes hgfloat { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .hg-float { animation: none; } }
@media (max-width: 980px) { .hgraph { max-width: 460px; } }
@media (max-width: 760px) { .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); } .hgraph { max-width: 380px; margin-top: 8px; } }

/* ============================================================
   Schedule-a-demo modal (static booking via Google Calendar)
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 16, .55); backdrop-filter: blur(4px); animation: modalfade .15s ease; }
.modal-overlay[hidden] { display: none; }
@keyframes modalfade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 480px; background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal > p { font-size: .92rem; margin-bottom: 18px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--panel); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-x:hover { background: var(--bg-2); color: var(--ink); }
.modal form { display: flex; flex-direction: column; gap: 13px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.modal .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.modal input, .modal select, .modal textarea { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(237, 95, 34, .22); }
.modal textarea { resize: vertical; }
.modal form .btn { justify-content: center; margin-top: 4px; }
.modal-alt { text-align: center; font-size: .85rem; color: var(--ink-3); margin: 2px 0 0; }
.modal-ok { text-align: center; padding: 8px 0; }
.modal-ok .chk { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: rgba(46, 175, 255, .14); color: var(--maya); display: flex; align-items: center; justify-content: center; }
@media (max-width: 520px) { .modal .frow { grid-template-columns: 1fr; } }

/* ============================================================
   Discord widget: bottom-right floating button + invite popup
   (yellow on dark, black on light)
   ============================================================ */
.discord-widget { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.discord-fab { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.discord-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.discord-fab svg { width: 28px; height: 28px; }
.discord-fab { background: #0d0d0d; color: #fff; }
:root[data-theme="dark"] .discord-fab { background: var(--lemon); color: #0a0a0a; }
.discord-pop { position: relative; max-width: 244px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 16px 15px; animation: modalfade .2s ease; }
.discord-pop strong { display: block; font-family: var(--font-heading); color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.discord-pop p { color: var(--ink-2); font-size: .85rem; line-height: 1.45; margin: 0 0 12px; }
.discord-pop-cta { display: inline-block; font-weight: 660; font-size: .85rem; padding: 8px 16px; border-radius: 999px; }
.discord-pop-cta:hover { text-decoration: none; opacity: .9; }
.discord-pop-cta { background: #0d0d0d; color: #fff; }
:root[data-theme="dark"] .discord-pop-cta { background: var(--lemon); color: #0a0a0a; }
.discord-pop-x { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--ink-3); cursor: pointer; padding: 3px; line-height: 0; }
.discord-pop-x:hover { color: var(--ink); }
.discord-pop-x svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .discord-pop { display: none; } .discord-widget { right: 16px; bottom: 16px; } }
