/* ==========================================================================
   Kodentix — design system
   Light, calm surfaces with deep-navy sections; blue → teal brand gradient
   taken from the logo.
   ========================================================================== */

:root {
    --ink: #0d1b2a;
    --ink-2: #26364a;
    --muted: #5d6b7b;
    --muted-2: #8794a3;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f0f4f8;
    --line: rgba(13, 27, 42, .09);
    --line-strong: rgba(13, 27, 42, .16);

    --blue: #1f5fa8;
    --blue-600: #184c88;
    --teal: #13a587;
    --brand: linear-gradient(135deg, #1f5fa8 0%, #13a587 100%);
    --brand-soft: linear-gradient(135deg, rgba(31, 95, 168, .1), rgba(19, 165, 135, .1));

    --navy: #0a1521;
    --navy-2: #102033;
    --navy-line: rgba(255, 255, 255, .1);

    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --shadow-sm: 0 1px 2px rgba(13, 27, 42, .05), 0 2px 8px rgba(13, 27, 42, .04);
    --shadow: 0 10px 30px -12px rgba(13, 27, 42, .18);
    --shadow-lg: 0 30px 60px -28px rgba(13, 27, 42, .35);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(19, 165, 135, .22); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

.section {
    position: relative;
    padding: clamp(72px, 9vw, 120px) 0;
}

.section--white { background: var(--surface); }

.section--dark {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
}

.section--dark h2,
.section--dark h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

/* ---------- Section heading ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--blue);
    background: var(--brand-soft);
    border: 1px solid rgba(31, 95, 168, .16);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(19, 165, 135, .18);
}

.section--dark .eyebrow {
    color: #9fe9d4;
    background: rgba(255, 255, 255, .06);
    border-color: var(--navy-line);
}

.head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.head--center {
    margin-inline: auto;
    text-align: center;
}

.head h2 {
    margin: 16px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
}

.head p {
    font-size: 17.5px;
    line-height: 1.7;
}

.head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.head-row .head { margin-bottom: 0; }

.text-gradient {
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn i {
    font-size: 14px;
    transition: transform .2s var(--ease);
}

.btn:hover i { transform: translateX(3px); }

.btn-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 24px -12px rgba(19, 120, 140, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(19, 120, 140, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-ghost {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-light {
    color: var(--ink);
    background: #fff;
}

.btn-light:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.btn-outline-light:hover {
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    transition: gap .2s ease, color .2s ease;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--blue);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(246, 248, 251, .78);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .88);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -24px rgba(13, 27, 42, .5);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark { width: 40px; height: 40px; }

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .2s ease, background-color .2s ease;
}

.nav a:hover {
    color: var(--ink);
    background: rgba(13, 27, 42, .05);
}

.nav a.is-active {
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .btn {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
}

/* Language switcher (native <details>) */
.lang { position: relative; }

.lang summary {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lang summary::-webkit-details-marker { display: none; }

.lang summary i {
    font-size: 11px;
    color: var(--muted);
    transition: transform .2s ease;
}

.lang summary .fa-globe {
    font-size: 15px;
    color: var(--blue);
}

.lang[open] summary .fa-chevron-down { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    animation: pop .16s var(--ease);
}

.lang-menu form { margin: 0; }

.lang-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    text-align: start;
    cursor: pointer;
}

.lang-menu button:hover { background: var(--surface-2); }

.lang-menu button.is-current {
    color: var(--ink);
    background: var(--brand-soft);
}

.lang-menu button small {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted-2);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    place-items: center;
    font-size: 17px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 27, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 27, 42, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    right: -220px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 165, 135, .22), rgba(31, 95, 168, .1) 45%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero h1 {
    margin: 22px 0;
    font-size: clamp(40px, 5.4vw, 70px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.hero-lead {
    max-width: 560px;
    font-size: clamp(16.5px, 1.4vw, 19px);
    line-height: 1.7;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: start;
}

.hero-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    font-size: 17px;
}

.hero-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.hero-stat span {
    font-size: 13px;
    font-weight: 600;
}

/* Hero visual: real app screens fanned out */
.hero-visual {
    position: relative;
    height: clamp(440px, 46vw, 600px);
}

.hero-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(170px, 17vw, 236px);
    aspect-ratio: 9 / 19;
    padding: 7px;
    border-radius: 34px;
    background: linear-gradient(145deg, #2a2f36, #0b0d10 50%, #1d2127);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.hero-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 27px;
}

.hero-phone--1 {
    z-index: 3;
    transform: translate(-50%, -50%);
}

.hero-phone--2 {
    z-index: 2;
    transform: translate(-112%, -44%) rotate(-9deg);
}

.hero-phone--3 {
    z-index: 2;
    transform: translate(12%, -44%) rotate(9deg);
}

.hero-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-align: start;
    animation: float 6s ease-in-out infinite;
}

.hero-chip img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.hero-chip small {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

.hero-chip--a { left: 0; top: 14%; }
.hero-chip--b { right: 0; bottom: 14%; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Marquee (technologies) ---------- */

.marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--line);
    background: var(--surface);
    -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: 14px;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}

.tech-pill i { color: var(--blue); }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */

.card {
    position: relative;
    display: block;
    height: 100%;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

a.card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 95, 168, .25);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    font-size: 22px;
    color: var(--blue);
    background: var(--brand-soft);
    border: 1px solid rgba(31, 95, 168, .14);
    transition: color .3s ease, background .3s ease;
}

a.card:hover .card-icon {
    color: #fff;
    background: var(--brand);
}

.card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15.5px;
    line-height: 1.65;
}

.card .link-arrow {
    margin-top: 18px;
    font-size: 14.5px;
}

.card-num {
    position: absolute;
    top: 26px;
    right: 28px;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted-2);
}

/* ---------- Process ---------- */

.step {
    position: relative;
    height: 100%;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    background: var(--navy-2);
    border: 1px solid var(--navy-line);
    transition: transform .35s var(--ease), border-color .35s ease;
}

.step:hover {
    transform: translateY(-6px);
    border-color: rgba(159, 233, 212, .35);
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 22px -10px rgba(19, 165, 135, .8);
}

.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.step p {
    font-size: 15px;
    color: rgba(255, 255, 255, .66);
}

.step > i {
    position: absolute;
    top: 32px;
    right: 26px;
    font-size: 22px;
    color: rgba(255, 255, 255, .18);
}

/* ---------- Why us ---------- */

.why-list {
    display: grid;
    gap: 14px;
}

.why-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.why-item:hover {
    transform: translateX(4px);
    border-color: rgba(19, 165, 135, .35);
    box-shadow: var(--shadow);
}

.why-item > i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--teal);
    background: rgba(19, 165, 135, .1);
}

.why-item strong {
    display: block;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
}

.why-item p { font-size: 15px; }

.why-visual {
    position: relative;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background: var(--navy);
    overflow: hidden;
}

.why-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 165, 135, .45), transparent 65%);
}

.why-visual > * { position: relative; }

.code-window {
    border-radius: 18px;
    background: #07101a;
    border: 1px solid var(--navy-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.9;
}

.code-window-bar {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--navy-line);
}

.code-window-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }

.code-window pre {
    margin: 0;
    padding: 18px 22px 22px;
    color: #c9d6e3;
    white-space: pre-wrap;
    word-break: break-word;
}

.c-key { color: #7cc4ff; }
.c-str { color: #9fe9d4; }
.c-fn { color: #ffd479; }
.c-com { color: #5f7488; }

.why-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.why-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--navy-line);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
}

.why-badge img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

/* ---------- About ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.stat {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 6px;
}

.stat span {
    font-size: 14px;
    font-weight: 600;
}

.about-art {
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius-xl);
    background: var(--brand-soft);
    border: 1px solid var(--line);
}

.about-art img {
    width: 100%;
    height: auto;
}

.lead-text {
    font-size: 17.5px;
    line-height: 1.8;
}

/* ---------- CTA band ---------- */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 72px);
    border-radius: var(--radius-xl);
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 28px;
    align-items: center;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(19, 165, 135, .38), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(31, 95, 168, .45), transparent 60%);
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: #fff;
    font-size: clamp(28px, 3.6vw, 44px);
    margin-bottom: 12px;
}

.cta p { font-size: 17px; }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px);
    text-align: center;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    left: 50%;
    top: -420px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 165, 135, .25), rgba(31, 95, 168, .1) 50%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 18px auto 14px;
    max-width: 860px;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 17.5px;
}

.crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.crumbs a {
    color: var(--muted);
    transition: color .2s ease;
}

.crumbs a:hover { color: var(--ink); }

.crumbs i {
    font-size: 10px;
    color: var(--muted-2);
}

.crumbs span { color: var(--ink); }

/* ---------- Service detail ---------- */

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.service-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--line);
}

.service-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.prose h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 18px;
}

.prose h3 {
    font-size: 22px;
    margin: 30px 0 12px;
}

.prose p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.prose ul,
.prose ol {
    margin: 0 0 18px 1.2em;
    list-style: disc;
}

.prose li { margin-bottom: 6px; }

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong { color: var(--ink); }

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.timeline-item b {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--brand);
}

.timeline-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.timeline-item p { font-size: 15.5px; }

.side-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.side-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.side-links {
    display: grid;
    gap: 6px;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid transparent;
    transition: border-color .2s ease;
}

.side-links a:hover { border-color: var(--line-strong); }

.side-links a.is-current {
    color: #fff;
    background: var(--brand);
}

.side-cta {
    margin-top: 18px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
}

.side-cta h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.side-cta p {
    font-size: 14.5px;
    margin-bottom: 16px;
}

.side-cta .btn {
    width: 100%;
    height: 46px;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq details[open] {
    border-color: rgba(31, 95, 168, .25);
    box-shadow: var(--shadow);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
    background: var(--brand-soft);
    transition: transform .25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
    padding: 0 22px 22px;
    font-size: 16px;
    line-height: 1.75;
}

.faq-answer p + p { margin-top: 10px; }

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 14px;
}

.contact-info h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 16px 0 10px;
}

.contact-info > p {
    font-size: 17px;
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .2s ease, transform .2s var(--ease);
}

a.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.contact-item > i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
}

.contact-item small {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-2);
}

.contact-item strong {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    word-break: break-word;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background-color .2s ease, color .2s ease, transform .2s var(--ease);
}

.socials a:hover {
    color: #fff;
    background: var(--ink);
    transform: translateY(-2px);
}

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.form-card h2 {
    font-size: clamp(24px, 2.8vw, 32px);
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-grid textarea {
    min-height: 150px;
    resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 95, 168, .12);
}

.form-grid .errorlist {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    font-weight: 700;
    color: #0b6b55;
    background: rgba(19, 165, 135, .1);
    border: 1px solid rgba(19, 165, 135, .3);
}

/* ---------- Empty / 404 ---------- */

.empty {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    text-align: center;
    font-weight: 700;
}

.not-found {
    position: relative;
    text-align: center;
    padding: clamp(80px, 12vw, 160px) 0;
}

.not-found .code {
    font-size: clamp(96px, 18vw, 200px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
}

.not-found h1 {
    font-size: clamp(28px, 3.6vw, 42px);
    margin: 10px 0 12px;
}

.not-found p {
    max-width: 520px;
    margin: 0 auto 30px;
    font-size: 17px;
}

.not-found .cta-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 88px) 0 28px;
    background: var(--navy);
    color: rgba(255, 255, 255, .64);
}

.site-footer::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    left: -200px;
    bottom: -360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 95, 168, .35), transparent 65%);
}

.site-footer .container { position: relative; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--navy-line);
}

.site-footer .brand-name { color: #fff; }

.footer-about p {
    margin: 18px 0 0;
    max-width: 380px;
    font-size: 15px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 15px;
    transition: color .2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-mail {
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    word-break: break-word;
}

.site-footer .socials a {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: var(--navy-line);
}

.site-footer .socials a:hover {
    color: var(--ink);
    background: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    font-size: 14px;
}

.footer-bottom a:hover { color: #fff; }

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s var(--ease);
}

/* ---------- Portfolio cards ---------- */

.kx-project {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.kx-project:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 95, 168, .22);
    box-shadow: var(--shadow-lg);
}

.kx-project-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #0f1113;
}

.kx-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.kx-project:hover .kx-project-cover img { transform: scale(1.04); }

.kx-project-platform {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.kx-project-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    padding: 22px 24px 24px;
}

.kx-project-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kx-project-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}

.kx-project-titles { min-width: 0; }

.kx-project-category {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 2px;
}

.kx-project h4 {
    font-size: 20px;
    line-height: 1.25;
}

.kx-project h4 a {
    color: var(--ink);
    transition: color .2s ease;
}

.kx-project h4 a:hover { color: var(--blue); }

.kx-project-summary {
    font-size: 15px;
    line-height: 1.6;
}

.kx-project-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
}

.kx-stores {
    display: flex;
    gap: 8px;
}

.kx-store-mini {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.kx-store-mini:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

.kx-project-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    transition: gap .2s ease, color .2s ease;
}

.kx-project-more:hover {
    gap: 12px;
    color: var(--blue);
}

/* ---------- Project detail ---------- */

.kx-app-hero {
    position: relative;
    padding: clamp(32px, 5vw, 56px) 0 0;
    background:
        radial-gradient(60% 70% at 85% 0%, rgba(19, 165, 135, .16), transparent 60%),
        radial-gradient(50% 60% at 0% 30%, rgba(31, 95, 168, .1), transparent 60%),
        var(--bg);
}

.kx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 32px;
    font-size: 14px;
    font-weight: 600;
}

.kx-breadcrumb a { color: var(--muted); }
.kx-breadcrumb a:hover { color: var(--ink); }
.kx-breadcrumb .active { color: var(--ink); }

.kx-breadcrumb i {
    font-size: 10px;
    color: var(--muted-2);
}

.kx-app-head {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
}

.kx-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    flex-shrink: 0;
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .45);
}

.kx-app-titles h1 {
    margin: 4px 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.kx-app-titles p {
    max-width: 680px;
    font-size: 17px;
    margin-bottom: 22px;
}

.kx-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kx-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 16px;
    color: #fff;
    background: #0d0e10;
    border: 1px solid #0d0e10;
    box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .7);
    transition: transform .2s var(--ease), box-shadow .2s ease;
}

.kx-store-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.kx-store-btn i { font-size: 24px; }

.kx-store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 17px;
    font-weight: 700;
}

.kx-store-btn small {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
}

.kx-store-btn--ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.kx-store-btn--ghost:hover { color: var(--ink); }

.kx-app-showcase {
    position: relative;
    margin-bottom: -80px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}

.kx-app-showcase img {
    width: 100%;
    height: auto;
}

.kx-app-details {
    padding: 140px 0 clamp(72px, 9vw, 120px);
}

.kx-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.kx-app-content h2,
.kx-gallery-head h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    margin-bottom: 18px;
}

.kx-rich p {
    font-size: 16.5px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.kx-list-title {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px !important;
}

.kx-list {
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.kx-list li {
    position: relative;
    padding: 12px 16px 12px 46px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
}

.kx-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 13px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: #fff;
    background: var(--brand);
}

.kx-info-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.kx-info-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.kx-info-card dl > div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.kx-info-card dt {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted-2);
    margin-bottom: 4px;
}

.kx-info-card dd {
    font-weight: 700;
    color: var(--ink);
}

.kx-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px !important;
}

.kx-tech-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--blue-600);
    background: var(--brand-soft);
    border: 1px solid rgba(31, 95, 168, .16);
}

.kx-gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 72px 0 24px;
}

.kx-gallery-head h2 { margin: 0; }

.kx-gallery {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.kx-gallery-item {
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 9 / 18;
    scroll-snap-align: start;
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid #111;
    background: #111;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
    cursor: zoom-in;
    transition: transform .3s var(--ease);
}

.kx-gallery-item:hover { transform: translateY(-6px); }

.kx-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 12, 18, .9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
    animation: pop .2s var(--ease);
}

.lightbox img {
    max-height: 90vh;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .nav a {
        padding: 9px 10px;
        font-size: 14.5px;
    }

    .header-actions .btn { display: none; }

    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .menu-toggle { display: grid; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
    }

    .nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: opacity .2s ease, transform .25s var(--ease);
    }

    .nav a {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 16px;
    }

    .header-actions { margin-left: auto; }

    .hero-grid,
    .split,
    .contact-grid,
    .service-detail,
    .kx-detail-grid,
    .cta {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid { text-align: center; }
    .hero-lead { margin-inline: auto; }

    .hero-actions,
    .hero-stats { justify-content: center; }

    .hero-visual {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .side-card,
    .kx-info-card { position: static; }
}

@media (max-width: 640px) {
    :root { --header-h: 66px; }

    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: 19px; }

    .lang summary {
        height: 40px;
        padding: 0 12px;
    }

    .menu-toggle { width: 40px; height: 40px; }

    .grid-2,
    .grid-3,
    .grid-4,
    .stats,
    .form-grid,
    .footer-grid,
    .why-badges {
        grid-template-columns: minmax(0, 1fr);
    }

    .btn { height: 50px; }

    .hero-actions .btn { flex: 1 1 100%; }

    .hero-visual { height: 420px; }

    .hero-phone { width: 160px; }

    .hero-phone--2 { transform: translate(-100%, -44%) rotate(-9deg); }
    .hero-phone--3 { transform: translate(0%, -44%) rotate(9deg); }

    .hero-chip--a { top: 2%; }
    .hero-chip--b { bottom: 2%; }

    .card { padding: 24px; }

    .kx-app-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .kx-app-icon {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .kx-app-showcase {
        margin-bottom: -40px;
        border-radius: 18px;
    }

    .kx-app-details { padding-top: 80px; }

    .kx-gallery-item { width: 170px; }

    .kx-project-body { padding: 18px; }
}

/* Hero entrance: pure CSS so the first screen never waits on JavaScript. */
.rise {
    animation: rise .9s var(--ease) both;
    animation-delay: var(--d, 0ms);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .hero-stats { flex-wrap: nowrap; }
    .hero-stat { flex: 1 1 0; min-width: 0; padding: 10px 12px 10px 10px; }
    .hero-stat-icon { width: 36px; height: 36px; font-size: 15px; }
}
