/* AmuSoft — 3D design system */
:root {
    --bg: #040a16;
    --bg-2: #071226;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .08);
    --line: rgba(140, 200, 255, .14);
    --line-strong: rgba(140, 200, 255, .3);
    --text: #eaf4ff;
    --muted: #93a8c4;
    --sky: #36aff3;
    --deep: #04669d;
    --mint: #5eead4;
    --grad: linear-gradient(120deg, #7fd4ff 0%, #36aff3 45%, #5eead4 100%);
    --radius: 26px;
    --shell: min(1200px, calc(100% - 40px));
    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(54, 175, 243, .22), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(4, 102, 157, .28), transparent 60%),
        radial-gradient(800px 600px at 60% 110%, rgba(94, 234, 212, .10), transparent 60%),
        var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: #02101d; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- buttons (3D press) ---------- */
.btn {
    --depth: 6px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border: 0;
    border-radius: 18px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s;
    white-space: nowrap;
}
.btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #1f96e6, #0a63b8);
    box-shadow: 0 var(--depth) 0 #053f78, 0 18px 40px rgba(10, 99, 184, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 var(--depth) 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--line-strong);
    backdrop-filter: blur(10px);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 transparent, inset 0 0 0 1px var(--line-strong); }
.btn--primary:hover { background: linear-gradient(180deg, #2ba3f2, #0d6dc6); }
.btn--primary:active { box-shadow: 0 0 0 #053f78, 0 6px 16px rgba(10, 99, 184, .35); }
.btn i { transition: transform .2s; }
.btn:hover i { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 50;
}
.header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 14px 10px 22px;
    border-radius: 22px;
    background: rgba(6, 16, 34, .6);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: #fff; background: linear-gradient(180deg, #1f96e6, #0a63b8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.langs { display: flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.langs a { padding: 5px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.langs a.is-active { background: rgba(54, 175, 243, .22); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .05); cursor: pointer; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
    isolation: isolate;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
}
.hero__content { max-width: 760px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #bfe6ff;
    background: rgba(54, 175, 243, .1);
    border: 1px solid var(--line-strong);
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(30px, 4.3vw, 58px); margin: 26px 0 22px; }
.hero h1 span { display: block; }
.hero__text { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 56px; }
.stat {
    padding: 16px 22px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    min-width: 150px;
}
.stat b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
/* CSS fallback orb when WebGL is unavailable */
.no-webgl .scene { display: none; }
.no-webgl .hero::before, .no-webgl .phero::before {
    content: '';
    position: absolute;
    right: 6%;
    top: 22%;
    width: min(420px, 50vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #9be1ff, #36aff3 35%, #04669d 62%, #021a2e 100%);
    box-shadow: 0 0 120px rgba(54, 175, 243, .45), inset -30px -40px 80px rgba(0, 0, 0, .5);
    z-index: -1;
    animation: floaty 7s ease-in-out infinite;
}

/* ---------- page hero (inner pages) ---------- */
.phero {
    position: relative;
    padding: 190px 0 90px;
    overflow: hidden;
    isolation: isolate;
}
.phero h1 { font-size: clamp(32px, 5vw, 60px); margin-top: 18px; max-width: 760px; }
.phero p { color: var(--muted); max-width: 560px; margin-top: 18px; }
.phero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
}

/* ---------- section head ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sky);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: clamp(26px, 3.6vw, 44px); margin-top: 16px; }
.head p { color: var(--muted); margin-top: 16px; }
.head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head--row > div { max-width: 760px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(255, 255, 255, .02); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: rgba(234, 244, 255, .5); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: '✦'; color: var(--sky); font-size: 14px; }

/* ---------- 3D tilt cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.tilt { perspective: 1000px; }
.card {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    position: relative;
    height: 100%;
    padding: 34px 30px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .25s ease, border-color .25s, box-shadow .25s;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(54, 175, 243, .22), transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.tilt:hover .card { border-color: var(--line-strong); box-shadow: 0 50px 80px -30px rgba(4, 102, 157, .6); transition: transform .06s linear, border-color .25s, box-shadow .25s; }
.tilt:hover .card::before { opacity: 1; }
.card > * { transform: translateZ(28px); }
.card__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(160deg, #2ba3f2, #0a63b8);
    box-shadow: 0 8px 0 #053f78, 0 22px 34px rgba(10, 99, 184, .45), inset 0 2px 0 rgba(255, 255, 255, .35);
    transform: translateZ(60px) !important;
    margin-bottom: 30px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 13px; color: rgba(234, 244, 255, .3); }
.card__media { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 24px; background: rgba(255, 255, 255, .05); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 800; font-size: 14px; color: var(--sky); }
.card__link i { transition: transform .2s; }
.card__link:hover i { transform: translateX(4px); }
.card--flat { padding: 16px 16px 26px; }
.card--flat h3, .card--flat p, .card--flat .card__link, .card--flat .meta { margin-inline: 10px; }
.meta { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 10px; display: flex; gap: 14px; }

/* ---------- about: isometric stack ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.iso { height: 470px; display: grid; place-items: center; perspective: 1600px; }
.iso__stack { position: relative; width: 280px; height: 280px; transform: rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d; animation: sway 9s ease-in-out infinite; }
.iso__layer {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    display: flex;
    align-items: end;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    border: 1px solid rgba(255, 255, 255, .35);
    transform: translateZ(calc(var(--i) * 86px - 60px));
    animation: lift 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.9s);
}
.iso__layer:nth-child(1) { --i: 0; background: linear-gradient(135deg, rgba(4, 102, 157, .9), rgba(4, 50, 90, .9)); box-shadow: -40px 40px 80px rgba(0, 0, 0, .6); }
.iso__layer:nth-child(2) { --i: 1; background: linear-gradient(135deg, rgba(54, 175, 243, .75), rgba(4, 102, 157, .7)); backdrop-filter: blur(4px); }
.iso__layer:nth-child(3) { --i: 2; background: linear-gradient(135deg, rgba(210, 242, 255, .5), rgba(94, 234, 212, .4)); backdrop-filter: blur(6px); color: #02101d; box-shadow: 0 0 60px rgba(54, 175, 243, .5); }
.iso__layer i { position: absolute; top: 24px; left: 26px; font-size: 28px; opacity: .9; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 38px; }
.check { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.check i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(94, 234, 212, .14); color: var(--mint); font-size: 14px; }
.check b { display: block; font-size: 15px; line-height: 1.3; }
.check span { font-size: 13px; color: var(--muted); }

/* ---------- process ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step__num {
    font-family: var(--font-display);
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    color: #8fdcff;
    text-shadow: 1px 1px 0 #0a5a8c, 2px 2px 0 #0a5a8c, 3px 3px 0 #095280, 4px 4px 0 #084a74, 5px 5px 0 #074268, 6px 6px 0 #063a5c, 7px 7px 0 #053250, 14px 18px 30px rgba(0, 0, 0, .6);
    margin-bottom: 26px;
    transition: transform .3s;
}
.step:hover .step__num { transform: translate(-4px, -4px); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s; }
.filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters button.is-active { background: linear-gradient(180deg, #1f96e6, #0a63b8); color: #fff; border-color: transparent; }
.project { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: var(--bg-2); }
.tilt:hover .project { transition: transform .06s linear, box-shadow .25s; box-shadow: 0 50px 90px -30px rgba(4, 102, 157, .7); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tilt:hover .project img { transform: scale(1.07); }
.project__info { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; background: linear-gradient(to top, rgba(2, 10, 22, .95), transparent); }
.project__info small { color: var(--sky); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.project__info h3 { font-size: 18px; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__info h3 i { font-size: 14px; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #1f96e6, #0a63b8); color: #fff; }
.is-hidden { display: none !important; }

/* ---------- team ---------- */
.member { text-align: center; }
.member__photo { width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 36px; overflow: hidden; border: 2px solid var(--line-strong); box-shadow: 0 10px 0 rgba(4, 102, 157, .55), 0 30px 40px rgba(0, 0, 0, .5); transform: translateZ(50px) !important; background: var(--bg-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--mint); background: rgba(94, 234, 212, .12); margin-bottom: 12px; }
.socials { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: .2s; }
.socials a:hover { background: linear-gradient(180deg, #1f96e6, #0a63b8); color: #fff; transform: translateY(-3px); }
.socials--left { justify-content: flex-start; }

/* ---------- CTA with 3D grid floor ---------- */
.cta { position: relative; border-radius: 40px; padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px) clamp(150px, 18vw, 220px); overflow: hidden; text-align: center; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #082344, #040a16 75%); isolation: isolate; }
.cta h2 { font-size: clamp(26px, 4vw, 48px); max-width: 760px; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 520px; margin: 20px auto 36px; }
.floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    max-height: 300px;
    z-index: -1;
    overflow: hidden;
    perspective: 420px;
    perspective-origin: 50% 0%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 78%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 78%);
}
/* The plane itself slides toward the viewer (compositor-only transform, so the motion stays smooth). */
.floor::before {
    content: '';
    position: absolute;
    left: -75%;
    right: -75%;
    bottom: -80px;
    height: 1400px;
    transform-origin: 50% 100%;
    transform: rotateX(78deg) translate3d(0, 0, 0);
    background-image:
        linear-gradient(to bottom, rgba(90, 190, 255, .7) 0, rgba(90, 190, 255, .7) 2px, transparent 2px),
        linear-gradient(to right, rgba(90, 190, 255, .7) 0, rgba(90, 190, 255, .7) 2px, transparent 2px);
    background-size: 80px 80px;
    animation: grid 5s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}
.cta::after { content: ''; position: absolute; left: 50%; bottom: 22%; width: 70%; height: 180px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(20, 120, 210, .5), transparent); z-index: -1; filter: blur(24px); }
.phero .floor { height: 240px; opacity: .45; }

/* ---------- forms ---------- */
.panel { padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.field input, .field textarea {
    width: 100%;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(2, 10, 22, .6);
    border: 1px solid var(--line);
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--sky); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45), 0 0 0 4px rgba(54, 175, 243, .18); }
.field .error { color: #ff9b9b; font-size: 13px; margin-top: 6px; font-weight: 700; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 700; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--sky); }
.info { display: grid; gap: 14px; }
.info__item { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.info__item > i { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, #2ba3f2, #0a63b8); color: #fff; font-size: 19px; box-shadow: 0 6px 0 #053f78, 0 16px 24px rgba(10, 99, 184, .35); }
.info__item small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.info__item b { font-size: 16px; overflow-wrap: anywhere; }
.map { border-radius: 32px; overflow: hidden; border: 1px solid var(--line); height: 420px; margin-top: 60px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }

/* ---------- article / prose ---------- */
.article { max-width: 860px; margin-inline: auto; }
.article__cover { border-radius: 30px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 36px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.prose { color: #c9d9ee; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.8em; color: var(--text); }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { padding-left: 28px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.prose a { color: var(--sky); font-weight: 700; }
.prose img { border-radius: 18px; height: auto; }
.empty { text-align: center; padding: 70px 20px; border-radius: 32px; border: 1px dashed var(--line-strong); color: var(--muted); }
.empty i { font-size: 34px; color: var(--sky); margin-bottom: 16px; display: block; }

/* ---------- 404 ---------- */
.big404 { font-family: var(--font-display); font-weight: 800; font-size: clamp(110px, 24vw, 260px); line-height: 1; color: #0c2a47; -webkit-text-stroke: 2px rgba(54, 175, 243, .7); text-shadow: 2px 2px 0 #0a5a8c, 4px 4px 0 #095280, 6px 6px 0 #084a74, 8px 8px 0 #074268, 10px 10px 0 #063a5c, 12px 12px 0 #053250, 30px 40px 60px rgba(0, 0, 0, .7); }
.center { text-align: center; display: grid; justify-items: center; gap: 22px; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); background: rgba(2, 8, 18, .6); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 50px; }
.footer .logo img { height: 40px; margin-bottom: 20px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 380px; }
.footer h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; font-family: var(--font-body); font-weight: 800; }
.footer li + li { margin-top: 10px; }
.footer li a, .footer li { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer li i { width: 22px; color: var(--sky); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- toast & back to top ---------- */
.toast { position: fixed; top: 96px; right: 20px; z-index: 80; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 18px; background: rgba(6, 30, 40, .95); border: 1px solid rgba(94, 234, 212, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-weight: 700; animation: toast-in .5s cubic-bezier(.2, 1.2, .3, 1) both; max-width: calc(100% - 40px); }
.toast i { color: var(--mint); font-size: 20px; }
.toast.is-out { opacity: 0; transform: translateY(-12px); transition: .4s; }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, #1f96e6, #0a63b8); box-shadow: 0 5px 0 #053f78, 0 14px 30px rgba(10, 99, 184, .45); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; }
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: perspective(900px) translateY(46px) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 50% { transform: translateY(-22px); } }
@keyframes lift { 50% { transform: translateZ(calc(var(--i) * 112px - 60px)); } }
@keyframes sway { 50% { transform: rotateX(54deg) rotateZ(-34deg); } }
@keyframes grid { to { transform: rotateX(78deg) translate3d(0, 80px, 0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.95); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .burger { display: grid; place-items: center; margin-left: auto; }
    .langs { order: 2; }
    .nav {
        position: fixed;
        inset: 84px 20px auto 20px;
        margin: 0;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(6, 16, 34, .96);
        border: 1px solid var(--line);
        backdrop-filter: blur(18px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px) scale(.98);
        transition: .25s;
    }
    .nav a { padding: 14px 16px; font-size: 16px; }
    .menu-open .nav { opacity: 1; pointer-events: auto; transform: none; }
    .burger { order: 3; margin-left: 0; }
    .langs { margin-left: auto; }
}
@media (max-width: 860px) {
    body { font-size: 16px; }
    .split, .footer__grid { grid-template-columns: 1fr; }
    .iso { height: 380px; order: -1; }
    .iso__stack { width: 210px; height: 210px; }
    .hero { padding-top: 120px; align-items: flex-end; }
    .hero__content { max-width: none; }
}
@media (max-width: 640px) {
    :root { --shell: calc(100% - 32px); }
    .grid--3, .grid--4, .checks, .form .row { grid-template-columns: 1fr; }
    .header__bar { padding-left: 16px; gap: 10px; }
    .logo img { height: 28px; }
    .stat { flex: 1 1 130px; min-width: 0; padding: 14px 16px; }
    .stat b { font-size: 22px; }
    .btn { padding: 15px 22px; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .step__num { font-size: 64px; }
    .cta { border-radius: 28px; }
    .phero { padding: 150px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
