/* ---------- Tokens ---------- */
:root {
    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.14);
    --accent-text: #6aa8ff;
    --ink: #0b1220;
    --ink-deep: #070b16;
    --text: #e6ebf5;
    --muted: #9aa7bd;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --tint: #0a101f;
    --surface: #111a2e;
    --field: #0b1322;
    --white: #ffffff;
    --star: #f59e0b;
    --danger: #f87171;
    --success: #34d399;
    --on-dark: #e6ebf5;
    --on-dark-muted: #9aa7bd;
    --line-dark: rgba(255, 255, 255, 0.1);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --header-h: 72px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink-deep);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--white);
    color: var(--ink);
    border-radius: 8px;
    transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-text); }

.accent { color: var(--blue-bright); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1d4ed8; }

.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); }

.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 22, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    color: var(--white);
}
.wordmark-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}
.wordmark-mark { color: var(--blue-bright); margin-left: 1px; }
.wordmark-sub {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a, .nav-link-button {
    padding: 6px 0;
    background: none;
    border: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--on-dark-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active, .nav-link-button:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
}
.lang-switch button {
    padding: 5px 11px;
    background: none;
    border: 0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--on-dark-muted);
    cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

.menu-toggle {
    display: none;
    padding: 8px;
    background: none;
    border: 0;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(37, 99, 235, 0.28), transparent 70%),
        radial-gradient(40% 50% at 10% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
        var(--ink-deep);
    color: var(--on-dark);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero h1 {
    font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem);
    color: var(--white);
    margin-bottom: 22px;
}

.lede {
    font-size: 1.125rem;
    color: var(--on-dark-muted);
    max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 0.92rem;
    color: var(--on-dark-muted);
    text-decoration: none;
}
.hero-rating strong { color: var(--white); }
.hero-rating:hover { color: var(--white); }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
}
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points .icon { color: var(--blue-bright); font-size: 1.1rem; }
.hero-points li > span { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.35; color: var(--on-dark-muted); }
.hero-points strong { color: var(--white); font-weight: 600; }

.hero-visual { display: flex; justify-content: center; align-items: center; padding: 12px 0; }

/* ---------- Phone frames ---------- */
.phone {
    flex: none;
    width: 230px;
    margin: 0;
    padding: 7px;
    background: #05080f;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; border-radius: 27px; }

.phone-back { width: 215px; transform: rotate(-6deg) translateY(-14px); }
.phone-front { width: 235px; margin-left: -56px; transform: rotate(4deg) translateY(18px); z-index: 1; }
.hero-visual { filter: drop-shadow(0 0 80px rgba(37, 99, 235, 0.35)); }


/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Apps ---------- */
.app-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    padding: 44px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
}
.app-feature + .app-feature { margin-top: 28px; }
.app-feature-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.app-feature-flip .app-info { order: 2; }

.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-title img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-strong); }
.app-title h3 { font-size: 1.6rem; }
.app-title p { color: var(--muted); font-size: 0.92rem; }
.app-desc { color: var(--muted); font-size: 1.02rem; }

.check-list { display: grid; gap: 10px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check-list .icon { margin-top: 3px; color: var(--accent-text); font-size: 0.9rem; stroke-width: 3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips li {
    padding: 5px 12px;
    background: var(--blue-soft);
    border: 1px solid rgba(106, 168, 255, 0.22);
    border-radius: 999px;
    color: var(--accent-text);
    font-size: 0.8rem;
    font-weight: 500;
}
.chips-lg { justify-content: center; margin-bottom: 0; }
.chips-lg li { padding: 9px 18px; background: var(--surface); border-color: var(--line-strong); color: var(--text); font-size: 0.92rem; }

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.app-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--star); }

.app-screens { display: flex; justify-content: center; gap: 18px; }
.app-screens .phone { flex: 1 1 0; width: auto; max-width: 210px; min-width: 0; }
.app-screens .phone:nth-child(2) { transform: translateY(-18px); }

.stack { margin-top: 64px; text-align: center; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(106, 168, 255, 0.45); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    background: var(--blue-soft);
    color: var(--accent-text);
    border-radius: 12px;
    font-size: 1.05rem;
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding-top: 22px; border-top: 2px solid var(--blue-bright); }
.step-number {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-text);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.work-card:hover { border-color: rgba(106, 168, 255, 0.45); box-shadow: var(--shadow); transform: translateY(-3px); }

.work-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 20px;
    background: #f4f6fa;
    border-bottom: 1px solid var(--line);
}
.work-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.work-thumb-shot { padding: 0; }
.work-thumb-shot img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top; }
.work-thumb-mono .icon { font-size: 3rem; stroke-width: 1.5; }
.work-thumb-mono {
    background: linear-gradient(135deg, #0b1220, #1e3a8a);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.work-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 52px 22px 22px; }
.work-body strong { font-family: var(--font-display); font-size: 1.05rem; }
.work-body span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.work-arrow {
    position: absolute;
    right: 20px;
    bottom: 24px;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}
a.work-card:hover .work-arrow { color: var(--accent-text); transform: translate(2px, -2px); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; font-size: 0.95rem; color: #2c3a55; }
.stars .icon { fill: currentColor; stroke: none; }
.stars .on { color: var(--star); }
.stars-lg { font-size: 1.35rem; }
.stars-muted { color: #2c3a55; }

/* ---------- Reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }

.reviews-summary {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.summary-score { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.summary-count { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.summary-empty-title { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.summary-bars { margin-top: 22px; display: grid; gap: 8px; }
.summary-bars li { display: grid; grid-template-columns: 14px 1fr 28px; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.bar { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--star); border-radius: 99px; }
.summary-bars li > :last-child { text-align: right; font-variant-numeric: tabular-nums; }

.reviews-summary .btn { margin-top: 24px; }
.reviews-summary .btn .icon { fill: currentColor; stroke: none; font-size: 0.9rem; }

.reviews-status { padding: 40px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

.review-list { display: grid; gap: 16px; }

.review {
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--accent-text);
    font-family: var(--font-display);
    font-weight: 700;
}
.review-who { flex: 1; min-width: 0; line-height: 1.35; }
.review-who strong { display: block; }
.review-who span { color: var(--muted); font-size: 0.85rem; }
.review-date { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.review-body { margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.review-project { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.review-reply {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--tint);
    border-left: 3px solid var(--blue-bright);
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    white-space: pre-line;
}
.review-reply strong { display: block; margin-bottom: 2px; font-size: 0.82rem; color: var(--accent-text); }

#reviewsMore { margin-top: 20px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.about-inner h2 { margin-bottom: 20px; }
.about-inner p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.about-inner p + p { margin-top: 14px; }
.about-inner p strong { color: var(--text); }

.stats { display: grid; gap: 14px; }
.stats > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stats dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent-text); letter-spacing: -0.02em; }
.stats dd { display: flex; flex-direction: column; line-height: 1.4; }
.stats dd span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-inner h2 { margin-bottom: 16px; }

.contact-list { display: grid; gap: 22px; margin-top: 40px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--blue-bright); font-size: 1.05rem; }
.contact-list li > span { display: flex; flex-direction: column; color: var(--on-dark-muted); }
.contact-list strong { color: var(--white); font-weight: 600; font-size: 0.92rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--white); text-decoration: underline; }

.panel {
    padding: 36px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ---------- Forms ---------- */
.form h3 { font-size: 1.35rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label, .field legend {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
}
.field label small { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--field);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.field .invalid { border-color: var(--danger); }
.field-hint { margin-top: 4px; font-size: 0.78rem; color: var(--muted); text-align: right; }

/* Honeypot: off-screen for people, visible to bots. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.4em; margin-bottom: 12px; font-size: 0.9rem; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }

.rating-input { display: inline-flex; gap: 4px; }
.rating-input label { margin: 0; cursor: pointer; font-size: 2rem; line-height: 1; color: #2c3a55; transition: color 0.1s, transform 0.1s; }
.rating-input label:hover { transform: scale(1.1); }
.rating-input label.on { color: var(--star); }
.rating-input .icon { fill: currentColor; stroke: none; display: block; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label:has(input:focus-visible) { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Dialogs ---------- */
.dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.dialog-sm { width: min(420px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(7, 11, 22, 0.6); backdrop-filter: blur(4px); }
.dialog .form h3 { margin-bottom: 8px; padding-right: 36px; }
.dialog-lede { margin-bottom: 22px; color: var(--muted); font-size: 0.93rem; }

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
}
.dialog-close:hover { background: var(--tint); color: var(--text); }

.dialog-done { text-align: center; }
.dialog-done h3 { font-size: 1.35rem; margin-bottom: 8px; }
.dialog-done p { color: var(--muted); margin-bottom: 24px; }
.done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    background: var(--blue-soft);
    color: var(--accent-text);
    border-radius: 50%;
    font-size: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.footer-nav a { font-size: 0.92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    transition: background-color 0.15s, color 0.15s;
}
.social:hover { background: var(--blue); color: var(--white); }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }

/* ---------- Floating helper ---------- */
.helper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.helper-bubble {
    max-width: 230px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px 16px 4px 16px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.helper.is-talking .helper-bubble { opacity: 1; transform: none; }
.helper-button {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.3);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s;
}
.helper-button:hover { transform: scale(1.08); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav { gap: 20px; }
    .header-cta { display: none; }
}

@media (max-width: 920px) {
    .menu-toggle { display: inline-flex; }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
        background: var(--ink-deep);
        border-bottom: 1px solid var(--line-dark);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a, .nav-link-button { padding: 14px 0; font-size: 1.05rem; text-align: left; border-bottom: 1px solid var(--line-dark); }

    .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 24px; }
    .phone-back { width: 170px; }
    .phone-front { width: 185px; margin-left: -44px; }

    .section { padding: 72px 0; }
    .card-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
    .app-feature { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
    .app-feature-flip .app-info { order: 0; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .reviews-layout { grid-template-columns: 1fr; }
    .reviews-summary { position: static; }
    .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr auto; }
    .footer-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .helper { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .card-grid, .work-grid, .steps, .field-row { grid-template-columns: 1fr; }
    .field-row { gap: 0; }
    .section-head { margin-bottom: 40px; }
    .app-feature { padding: 24px 18px; border-radius: 18px; }
    /* three phones do not fit side by side on a phone: swipe through them instead */
    .app-screens { justify-content: flex-start; gap: 14px; margin: 0 -18px; padding: 0 18px 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .app-screens .phone { flex: none; width: 62%; max-width: none; scroll-snap-align: center; }
    .app-screens .phone:nth-child(2) { transform: none; }
    .stack { margin-top: 48px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .panel, .dialog { padding: 26px 20px; }
    .review { padding: 22px 20px; }
    .review-head { flex-wrap: wrap; }
    .stats > div { grid-template-columns: 1fr; gap: 4px; }
    .main-nav { padding-inline: 16px; }
}
