/* BK Tech — corporate site. Light, vivid blue-violet, photography-led. */

/* Plus Jakarta Sans (SIL Open Font License 1.1), self-hosted variable font */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so text does not jump when the web font swaps in */
@font-face {
    font-family: "Plus Jakarta Fallback";
    src: local("Arial");
    size-adjust: 106%;
    ascent-override: 96%;
    descent-override: 24%;
    line-gap-override: 0%;
}

:root {
    --bg: #f5f7ff;
    --white: #ffffff;
    --ink: #0f1a3d;
    --muted: #5b6688;
    --blue: #3359ff;
    --violet: #7c5cff;
    --grad: linear-gradient(100deg, #3359ff 0%, #7c5cff 100%);
    --grad-soft: linear-gradient(135deg, #e9edff 0%, #f1ecff 100%);
    --soft: #eceffe;
    --line: #e3e7f7;
    --deep: #0b1233;
    --ok: #3dd9b4;
    --fail: #ff6b4a;
    --fail-text: #c2260b;

    --font: "Plus Jakarta Sans", "Plus Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1260px;
    --sec: clamp(72px, 9vw, 136px);
    --r-lg: 32px;
    --r-md: 22px;
    --shadow: 0 24px 60px -28px rgba(40, 60, 160, .35);
    --shadow-sm: 0 10px 30px -14px rgba(40, 60, 160, .28);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); position: relative; }
.sec--white { background: var(--white); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Type ----------------------------------------------------------------- */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1, .h2, .h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.75; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .8125rem; font-weight: 600; color: var(--blue); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.center.sec-head { margin-inline: auto; }
.sec-head .lead { margin-top: 16px; }
.center.sec-head .lead { margin-inline: auto; }

/* Buttons & links ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 10px 0 28px; border: 0; border-radius: 999px; font: 700 .9375rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s; }
.btn__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); transition: transform .3s var(--ease); }
.btn__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__ico { transform: rotate(-45deg); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(51, 89, 255, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(51, 89, 255, .8); }
.btn--plain { padding-right: 28px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--plain:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white .btn__ico { background: var(--soft); }
.btn--white:hover { transform: translateY(-2px); }
.btn--ghost { padding-right: 28px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; transition: gap .25s var(--ease), color .2s; }
.tlink::after { content: "→"; }
.tlink:hover { gap: 14px; color: var(--violet); }

/* Header: floating rounded bar ---------------------------------------- */
.site-head { position: sticky; top: 12px; z-index: 60; padding-inline: var(--gutter); margin-bottom: -84px; }
.site-head__bar { max-width: var(--max); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 0 12px 0 22px; border-radius: 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand__name { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.03em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a { position: relative; padding-block: 8px; text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.lang a { min-width: 38px; padding: 6px 10px; border-radius: 999px; text-align: center; text-decoration: none; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm); }
.head-cta { min-height: 48px; padding-left: 22px; font-size: .875rem; }
.head-cta .btn__ico { width: 32px; height: 32px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 .875rem var(--font); cursor: pointer; }

@media (max-width: 1020px) {
    .head-cta { display: none; }
    .menu-btn { display: inline-flex; align-items: center; }
    .site-head__bar { position: relative; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 18px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a::after { display: none; }
}

/* Photo slot: drop a real photo in, otherwise a branded placeholder ---- */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #3359ff 0%, #7c5cff 60%, #a08bff 100%); isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(118deg, transparent 0 34px, rgba(255, 255, 255, .1) 34px 35px); }
.ph__logo { position: absolute; left: 50%; top: 50%; width: 38%; max-width: 180px; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .35; }
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: 84px; background: radial-gradient(900px 500px at 85% 10%, rgba(124, 92, 255, .18), transparent 60%), radial-gradient(800px 500px at 0% 40%, rgba(51, 89, 255, .13), transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__proof div { font-size: .9375rem; color: var(--muted); }
.hero__proof b { display: block; font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.hero__media { position: relative; padding: 0 0 28px 28px; }
.hero__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 72%; border-radius: 36px; background: var(--grad); opacity: .16; }
.hero__photo { position: relative; aspect-ratio: 5 / 5.4; border-radius: 40px 40px 120px 40px; box-shadow: var(--shadow); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); animation: bob 6s ease-in-out infinite; }
.float__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.float__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.float div span { font-size: .8125rem; color: var(--muted); line-height: 1.3; display: block; }
.float--a { left: 0; top: 14%; }
.float--b { right: -8px; bottom: 6%; animation-delay: -2s; }
.float--c { right: 6%; top: -14px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__photo { aspect-ratio: 4 / 3; border-radius: 32px 32px 80px 32px; }
    .float--a { left: -4px; }
    .float--b { right: -4px; }
}
@media (max-width: 520px) { .float--c { display: none; } .float { padding: 10px 14px; } }

/* Marquee -------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--white); border-block: 1px solid var(--line); padding-block: 22px; -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; width: max-content; gap: 56px; animation: slide 38s linear infinite; }
.marquee__track span { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #66719a; white-space: nowrap; }
@keyframes slide { to { transform: translateX(calc(-50% - 28px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee__track span:nth-child(n+12) { display: none; } .float { animation: none; } }

/* About split ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); }
.about__media { position: relative; padding: 0 12% 12% 0; }
.about__a { aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about__b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 28px; border: 8px solid var(--bg); box-shadow: var(--shadow); }
.sec--white .about__b { border-color: var(--white); }
.about__badge { position: absolute; left: -10px; bottom: 18%; padding: 18px 22px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.about__badge b { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.about__badge span { font-size: .875rem; opacity: .9; }
.checks { margin-block: 28px 32px; display: grid; gap: 18px; }
.checks li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checks li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checks b { display: block; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.checks span { color: var(--muted); font-size: .9688rem; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } .about__media { max-width: 520px; } }

/* Service cards -------------------------------------------------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.svc-card { position: relative; overflow: hidden; padding: clamp(26px, 2.6vw, 38px); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; z-index: 0; }
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover p, .svc-card:hover h3 { color: #fff; }
.svc-card:hover .svc-card__ico { background: rgba(255, 255, 255, .2); color: #fff; }
.svc-card__ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 26px; background: var(--grad-soft); color: var(--blue); transition: background-color .3s, color .3s; }
.svc-card__ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-card p { margin-top: 12px; color: var(--muted); font-size: .9688rem; transition: color .3s; }
.svc-card h3 { transition: color .3s; }
.center-cta { margin-top: clamp(32px, 4vw, 52px); text-align: center; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }

/* Stats band ----------------------------------------------------------- */
.band { position: relative; overflow: hidden; margin-inline: var(--gutter); border-radius: 40px; background: var(--grad); color: #fff; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); pointer-events: none; }
.band::before { width: 520px; height: 520px; right: -140px; top: -260px; }
.band::after { width: 340px; height: 340px; left: -120px; bottom: -200px; background: rgba(255, 255, 255, .06); }
.band__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: var(--max); margin-inline: auto; }
.bstat dd { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bstat dt { margin-top: 8px; font-size: .9688rem; opacity: .88; }
.bstat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 860px) { .band { border-radius: 28px; } .band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* Sector photo cards --------------------------------------------------- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.sector { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sector .ph { position: absolute; inset: 0; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 14, 50, .88) 100%); z-index: 1; }
.sector__body { position: relative; z-index: 2; padding: 24px; }
.sector h3 { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.sector p { font-size: .9063rem; opacity: .88; line-height: 1.55; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } .sector { aspect-ratio: 4 / 3; } }

/* Dark live-demo panel ------------------------------------------------- */
.dark-panel { position: relative; overflow: hidden; border-radius: 40px; background: var(--deep); color: #e8ecf8; padding: clamp(28px, 5vw, 72px); }
.dark-panel::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .45), transparent 65%); pointer-events: none; }
.dark-panel > * { position: relative; }
.dark-panel .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #b9c6ff; box-shadow: none; }
.dark-panel .lead { color: rgba(232, 236, 248, .75); }
.dark-panel :focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .dark-panel { border-radius: 28px; } }

.stage { margin-top: clamp(28px, 4vw, 48px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; background: rgba(255, 255, 255, .04); padding: clamp(14px, 2.2vw, 28px); }
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.stage__hint { font-weight: 600; font-size: .9375rem; color: rgba(232, 236, 248, .9); }
.stage__reset { min-height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #fff; font: 700 .8125rem var(--font); cursor: pointer; transition: background-color .2s; }
.stage__reset:hover { background: rgba(255, 255, 255, .12); }
.stage__canvas { overflow-x: auto; margin-inline: calc(-1 * clamp(14px, 2.2vw, 28px)); padding-inline: clamp(14px, 2.2vw, 28px); }
.stage svg { width: 100%; height: auto; overflow: visible; }
.edge { stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; fill: none; }
.node rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
.node text { fill: #e8ecf8; font: 600 15px var(--font); }
.node--fixed rect { fill: rgba(124, 92, 255, .28); stroke: rgba(170, 150, 255, .85); }
.qlabel { fill: rgba(232, 236, 248, .65); font: 500 14px var(--font); }
.svc { cursor: pointer; outline: none; }
.svc rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.svc text { fill: #e8ecf8; font: 600 15px var(--font); }
.svc .dot { fill: var(--ok); transition: fill .2s; }
.svc--standby rect { stroke-dasharray: 5 4; }
.svc:hover rect { fill: rgba(255, 255, 255, .15); }
.svc:focus-visible rect { stroke: #fff; stroke-width: 2.5; stroke-dasharray: none; }
.svc.is-down rect { fill: rgba(255, 107, 74, .2); stroke: var(--fail); stroke-dasharray: none; }
.svc.is-down .dot { fill: var(--fail); }
.svc.is-down text { fill: #ffb9a8; text-decoration: line-through; }
.svc .svc__state { font: 500 12px var(--font); fill: #ffb9a8; text-decoration: none; }
.packet { fill: var(--ok); }
.packet--wait { fill: #fff; }
.stage__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(12px, 2vw, 22px); padding-top: clamp(14px, 2vw, 20px); border-top: 1px solid rgba(255, 255, 255, .14); }
.sstat dt { font-size: .8438rem; color: rgba(232, 236, 248, .65); }
.sstat dd { margin-top: 4px; font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sstat--lost dd { color: var(--ok); }
.stage__note { margin-top: 14px; font-size: .8125rem; color: rgba(232, 236, 248, .5); }
@media (max-width: 640px) { .stage svg { min-width: 760px; } .stage__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Project cards -------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__art { position: relative; height: clamp(190px, 22vw, 260px); padding: 26px 30px; display: flex; align-items: flex-end; color: #fff; }
.card__art .ph { position: absolute; inset: 0; }
.card__art--2 .ph { background: linear-gradient(135deg, #141e78 0%, #3359ff 100%); }
.card__art > span { position: relative; z-index: 1; }
.card__tag { position: absolute !important; top: 22px; left: 26px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-size: .8125rem; font-weight: 700; }
.card__metric { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.8vw, 38px); }
.card__body p { color: var(--muted); }
.card__stack { font-size: .9063rem; font-weight: 700; color: var(--blue); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Process -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: step; }
.steps li { position: relative; padding: 34px 30px 30px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 1.25rem; font-weight: 800; box-shadow: 0 12px 24px -10px rgba(51, 89, 255, .7); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
.steps__meta { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--blue) !important; font-size: .9063rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: rgba(51, 89, 255, .4); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--blue); font-size: 1.375rem; font-weight: 500; line-height: 1; transition: background-color .25s, color .25s; }
.faq details[open] summary::after { content: "–"; background: var(--grad); color: #fff; }
.faq p { padding: 0 26px 24px; color: var(--muted); max-width: 64ch; }

/* Why trio ------------------------------------------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.trio > div { padding: 32px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--muted); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* CTA banner ----------------------------------------------------------- */
.cta { margin-inline: var(--gutter); }
.cta__box { position: relative; overflow: hidden; max-width: var(--max); margin-inline: auto; border-radius: 44px; background: var(--grad); color: #fff; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
.cta__box::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); left: -140px; bottom: -240px; }
.cta__text { position: relative; padding: clamp(36px, 6vw, 88px); }
.cta__text .lead { color: rgba(255, 255, 255, .85); margin-top: 18px; }
.cta__text .btn-row { margin-top: 32px; }
.cta__photo { position: relative; min-height: 280px; }
.cta__photo .ph { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); }
.cta__photo .ph::before { opacity: .6; }
@media (max-width: 860px) { .cta__box { grid-template-columns: 1fr; border-radius: 30px; } .cta__photo { min-height: 200px; order: -1; } }

/* Footer --------------------------------------------------------------- */
.site-foot { margin-top: var(--sec); background: var(--deep); color: #e8ecf8; padding-block: clamp(56px, 7vw, 96px) 28px; border-radius: 48px 48px 0 0; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.site-foot .brand__name { color: #fff; }
.site-foot h2 { margin-bottom: 18px; font-size: 1rem; font-weight: 700; color: #fff; }
.site-foot a { text-decoration: none; color: rgba(232, 236, 248, .78); transition: color .2s; }
.site-foot a:hover { color: #fff; }
.site-foot li + li { margin-top: 12px; }
.site-foot li { color: rgba(232, 236, 248, .78); }
.site-foot__tag { margin-top: 20px; max-width: 30ch; color: rgba(232, 236, 248, .7); }
.site-foot__copy { margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: rgba(232, 236, 248, .5); }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__grid > :first-child { grid-column: 1 / -1; } .site-foot { border-radius: 32px 32px 0 0; } }

/* Inner page hero ------------------------------------------------------ */
.phero { position: relative; overflow: hidden; padding-top: 84px; background: radial-gradient(700px 360px at 90% 0%, rgba(124, 92, 255, .2), transparent 65%), radial-gradient(600px 320px at 0% 100%, rgba(51, 89, 255, .12), transparent 65%), var(--bg); }
.phero__inner { position: relative; z-index: 1; padding-block: clamp(48px, 7vw, 104px); }
.crumbs { display: inline-flex; gap: 10px; padding: 7px 16px; margin-bottom: 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .8438rem; font-weight: 600; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs b { color: var(--blue); font-weight: 700; }
.phero .lead { margin-top: 20px; }
.phero .h1 { max-width: 17ch; }
.phero::after { content: ""; position: absolute; right: clamp(-120px, -4vw, -40px); bottom: -140px; width: clamp(260px, 34vw, 460px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(51, 89, 255, .25); box-shadow: inset 0 0 0 40px rgba(51, 89, 255, .05), inset 0 0 0 80px rgba(124, 92, 255, .05); pointer-events: none; }

/* Services page cards -------------------------------------------------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.svc-full { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.svc-full:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(51, 89, 255, .4); }
.svc-full h3 { margin-bottom: 10px; }
.svc-full p { color: var(--muted); }
.svc-full__stack { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9063rem; font-weight: 700; color: var(--blue) !important; }
.svc-full__sla { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--grad-soft); font-size: .8125rem; font-weight: 700; color: var(--blue) !important; }
.svc-full--wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.toolchain { font-size: clamp(1.5rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; max-width: 24em; text-wrap: balance; color: var(--ink); }

/* Work page cases ------------------------------------------------------ */
.cases { display: grid; gap: clamp(16px, 2vw, 28px); }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .35s; }
.case:hover { box-shadow: var(--shadow); }
.case__art { position: relative; min-height: 300px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #fff; }
.case__art .ph { position: absolute; inset: 0; }
.case__art > p { position: relative; z-index: 1; }
.case:nth-child(2) .case__art .ph { background: linear-gradient(135deg, #141e78, #3359ff); }
.case:nth-child(3) .case__art .ph { background: linear-gradient(135deg, #7c5cff, #c08bff); }
.case:nth-child(4) .case__art .ph { background: linear-gradient(135deg, #0b1233, #3359ff); }
.case__tag { font-weight: 700; }
.case__metric { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.case__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.case__body p { color: var(--muted); max-width: 54ch; }
.case__body .case__facts { font-weight: 700; color: var(--blue); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case__art { min-height: 220px; } }

/* About page ----------------------------------------------------------- */
.statement { font-size: clamp(1.4rem, 2.8vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; text-wrap: balance; }
.facts { border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 8px 32px; }
.facts div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; }

/* Contact -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.chan { display: grid; gap: 14px; }
.chan a, .chan div { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .3s var(--ease), border-color .25s; }
.chan a:hover { transform: translateY(-3px); border-color: rgba(51, 89, 255, .45); }
.chan__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.chan__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chan small { display: block; font-size: .8438rem; color: var(--muted); line-height: 1.4; }
.chan b { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.promises { margin-top: 28px; display: grid; gap: 12px; }
.promises li { position: relative; padding-left: 30px; color: var(--muted); }
.promises li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.promises li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.next { margin-top: 36px; padding: 28px; border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid var(--line); }
.next h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.next .steps { grid-template-columns: 1fr; gap: 16px; }
.next .steps li { padding: 0 0 0 64px; background: none; border: 0; box-shadow: none; }
.next .steps li::before { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; border-radius: 14px; font-size: 1.0625rem; }
.next .steps h3 { font-size: 1.0625rem; margin-bottom: 2px; }

.form { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 700; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: 500 1rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230f1a3d' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #98a2c2; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51, 89, 255, .15); }
.field-err { display: block; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--fail-text); }
.field-err:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .9063rem; font-weight: 600; transition: all .2s; }
.pill:hover span { border-color: var(--blue); color: var(--blue); }
.pill input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px rgba(51, 89, 255, .7); }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.notice { margin-bottom: 24px; padding: 16px 18px; border-radius: 16px; font-weight: 600; }
.notice--ok { background: #e3f8f1; border: 1px solid #8fdcc3; color: #0b5a45; }
.notice--err { background: #ffeae4; border: 1px solid #ffb9a8; color: #7a1806; }
.form__note { margin-top: 16px; font-size: .875rem; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.err-page { padding-block: 160px 100px; }
.err-page .h2 { max-width: 18ch; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.cta__box .grad { background: none; -webkit-text-fill-color: #fff; color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 9px; text-decoration-color: rgba(255, 255, 255, .45); }

/* E-mail shown as an image (kept out of the markup on purpose) */
.mail-img { display: inline-block; height: 1.3em; width: auto; vertical-align: -0.28em; }
.chan b .mail-img { height: 1.15em; vertical-align: -0.2em; }
.chan div { cursor: default; }

/* Form spam protection */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.form__legal { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.form__legal a { color: var(--blue); }
