/* Kadimasoft campaign pages — shared design system.
   Light, trust-first; used by the ecosystem homepage and the track
   landing pages. lp/system keeps its own inline copy for now. */

:root {
    --ink: #0b1220;
    --ink-soft: #4a5568;
    --line: #e2e8f0;
    --paper: #ffffff;
    --paper-alt: #f6f8fb;
    --brand: #0057ff;
    --brand-deep: #003bb3;
    --accent: #00c2d1;
    --warn: #b42318;
    --ok: #067647;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 18, 32, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(25px, 3.6vw, 38px); margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; }
p { color: var(--ink-soft); }
section { padding: 64px 0; }
section.alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

/* header */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.bar .spacer { flex: 1; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 16px; }
.bar nav a:hover { color: var(--brand); }
.tel { font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: none; }
.tel:hover { color: var(--brand); }
.lang { display: flex; gap: 4px; }
.lang button {
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
    padding: 3px 9px; border-radius: 8px;
}
.lang button.active { border-color: var(--brand); color: var(--brand); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 10px; border: 0;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 87, 255, .28); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-wa { background: #25d366; color: #fff; }
.btn-lg { padding: 17px 32px; font-size: 19px; }

/* hero */
.hero { padding: 60px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.eyebrow {
    display: inline-block; font-weight: 700; font-size: 15px; color: var(--brand);
    background: #eaf1ff; padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hero p.lead { font-size: 21px; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }

/* panel + flow (hero visuals) */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.flow-step + .flow-step { border-top: 1px dashed var(--line); }
.flow-ico {
    flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: #eaf1ff; color: var(--brand); font-size: 22px;
}
.flow-txt strong { display: block; font-size: 17px; }
.flow-txt small { color: var(--ink-soft); font-size: 15px; }
.flow-num {
    font-variant-numeric: tabular-nums; font-weight: 900; font-size: 20px;
    color: var(--ok); background: #e9f7f0; padding: 2px 10px; border-radius: 8px;
    margin-inline-start: auto; direction: ltr;
}

/* the ecosystem chain */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chain-node {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; position: relative; box-shadow: var(--shadow);
}
.chain-node .ico { font-size: 28px; margin-bottom: 8px; }
.chain-node h3 { font-size: 18px; margin-bottom: 6px; }
.chain-node p { font-size: 15px; }
.chain-node::after {
    content: "←"; position: absolute; top: 50%; inset-inline-start: -16px;
    transform: translateY(-50%); color: var(--brand); font-weight: 900; font-size: 18px;
}
[dir="ltr"] .chain-node::after { content: "→"; }
.chain-node:first-child::after { display: none; }

/* cards & steps */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { font-size: 26px; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16.5px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.card .more { color: var(--brand); font-weight: 700; font-size: 15.5px; margin-top: 10px; display: inline-block; }
.quote { font-style: italic; color: var(--ink); border-inline-start: 3px solid var(--warn); padding-inline-start: 12px; margin-bottom: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 46px; }
.step::before {
    counter-increment: s; content: counter(s);
    position: absolute; top: 0; inset-inline-start: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 900;
    display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 16.5px; }

/* tables */
.tbl-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-width: 520px; }
table.spec th, table.spec td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 16.5px; }
table.spec th { background: var(--paper-alt); font-weight: 700; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.num { font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }

/* code block (scales page) */
pre.code {
    background: #0b1220; color: #d7e3f4; border-radius: 12px; padding: 18px 20px;
    font: 14.5px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace;
    overflow-x: auto; direction: ltr; text-align: left;
}
pre.code .c { color: #7c8ba1; }
pre.code .k { color: #7dd3fc; }

/* checklist */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.who li { list-style: none; padding-inline-start: 30px; position: relative; margin-bottom: 6px; }
.who li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 900; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details[open] { box-shadow: var(--shadow); }
summary { font-weight: 700; cursor: pointer; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; float: left; color: var(--brand); font-weight: 900; }
[dir="ltr"] summary::after { float: right; }
details[open] summary::after { content: "－"; }
details p { margin-top: 10px; font-size: 16.5px; }

/* lead form */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
form.lead { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 15px; }
label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 13px 14px; font: inherit; font-size: 17px;
    border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin: 6px 0 16px; }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.form-msg { display: none; padding: 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }
.form-msg.ok { display: block; background: #e9f7f0; color: var(--ok); }
.form-msg.err { display: block; background: #fdecea; color: var(--warn); }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; }

/* footer */
footer.site { background: var(--ink); color: #cbd5e1; padding: 34px 0; font-size: 15px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot .spacer { flex: 1; }

/* mobile sticky call bar */
.callbar { display: none; }

@media (max-width: 860px) {
    body { font-size: 17px; }
    .hero-grid, .form-wrap { grid-template-columns: 1fr; gap: 30px; }
    .cards, .cards.two, .steps, .who, .chain { grid-template-columns: 1fr; }
    .chain-node::after { content: "↑"; top: -18px; inset-inline-start: 50%; transform: translateX(50%); }
    [dir="ltr"] .chain-node::after { content: "↓"; transform: translateX(-50%); }
    /* phone: number hides (callbar has it); nav wraps to a second row instead of vanishing */
    .bar .tel { display: none; }
    .bar { flex-wrap: wrap; row-gap: 4px; }
    .bar nav { order: 10; width: 100%; flex-wrap: wrap; gap: 4px 14px; padding-top: 4px; }
    .bar nav a { font-size: 14.5px; }
    section { padding: 48px 0; }
    body { padding-bottom: 72px; }
    .callbar {
        display: flex; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
        background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
    }
    .callbar .btn { flex: 1; padding: 13px 10px; }
}
