/* Inter (latin-ext), self-hosted — SIL Open Font License */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter (latin), self-hosted — SIL Open Font License */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* XdosDev — design system */

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

:root {
    --ink: #0b1020;
    --ink-2: #161c2e;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #64748b;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --brand: #3b5bfd;
    --brand-2: #7c3aed;
    --brand-grad: linear-gradient(135deg, #3b5bfd 0%, #7c3aed 100%);
    --ok: #059669;
    --accent: var(--brand);
    --accent-soft: rgba(59, 91, 253, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding-inline: 24px; }

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 2000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 0.95rem/1 var(--font);
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px rgba(59, 91, 253, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(59, 91, 253, 0.38); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.arrow { transition: transform 0.2s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar--dark:not(.scrolled) { background: transparent; }
.navbar--dark:not(.scrolled) .nav-logo,
.navbar--dark:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.85); }
.navbar--dark:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.navbar--dark:not(.scrolled) .toggle-line { background: #fff; }
.navbar--dark:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.nav-container {
    max-width: 1180px; height: 100%; margin: 0 auto; padding-inline: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--text);
}
.nav-logo-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--brand-grad);
    display: grid; place-items: center; color: #fff; font-size: 0.95rem; font-weight: 800;
}
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
    display: block; text-decoration: none; color: var(--text-2);
    font-size: 0.92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(15, 23, 42, 0.05); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: 10px; }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-dropdown > .nav-link svg { transition: transform 0.2s var(--ease); }
.nav-dropdown-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
    width: min(640px, 92vw); padding: 12px; border-radius: var(--r-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav-dropdown-panel::before { content: ''; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover > .nav-link svg,
.nav-dropdown.open > .nav-link svg { transform: rotate(180deg); }
.nav-dropdown-item {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md);
    text-decoration: none; color: var(--text); transition: background 0.15s var(--ease);
}
.nav-dropdown-item:hover { background: var(--bg-soft); }
.nav-dropdown-item strong { display: block; font-size: 0.92rem; font-weight: 600; }
.nav-dropdown-item div span { display: block; font-size: 0.8rem; color: var(--text-3); line-height: 1.4; }
.nav-dropdown-all { grid-column: 1 / -1; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--brand); padding: 10px; text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }

.product-dot {
    flex: none; width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem;
    background: var(--dot, var(--brand));
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
.toggle-line { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-header--left { margin-inline: 0; text-align: left; }
.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.section-dark .eyebrow { color: #a5b4fc; }
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); line-height: 1.65; }
.section-dark .lead { color: rgba(255, 255, 255, 0.7); }
.section-header .lead { margin-top: 16px; }
.gradient-text { background: linear-gradient(90deg, #818cf8, #c084fc 55%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden; background: var(--ink); color: #fff;
    padding: calc(var(--nav-h) + 96px) 0 96px;
}
/* Soft brand glows */
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 8% 0%, rgba(59, 91, 253, 0.28), transparent 70%),
        radial-gradient(ellipse 45% 55% at 95% 15%, rgba(124, 58, 237, 0.22), transparent 70%),
        radial-gradient(ellipse 60% 40% at 60% 110%, rgba(56, 189, 248, 0.10), transparent 70%);
}
/* Faint grid, faded toward the edges */
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 20%, transparent 80%);
}
.hero-inner > * { min-width: 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 24px;
    font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero .lead { color: rgba(255, 255, 255, 0.72); margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.hero-product {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none; color: #fff;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-product:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); transform: translateX(4px); }
.hero-product-text { flex: 1; min-width: 0; }
.hero-product strong { display: block; font-weight: 600; font-size: 0.95rem; }
.hero-product-text span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-product .arrow { color: rgba(255, 255, 255, 0.5); }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--ink); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 32px 24px; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.fact:first-child { border-left: 0; }
.fact-value { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.fact-label { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

/* ---------- Solution cards ---------- */
.solution-group + .solution-group { margin-top: 64px; }
.solution-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.solution-group-head h3 { font-size: 1.1rem; font-weight: 700; }
.solution-group-head p { color: var(--text-3); font-size: 0.92rem; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.solution-card {
    --accent: var(--brand);
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; text-decoration: none; color: var(--text);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.solutions-grid--single { grid-template-columns: 1fr; }
.solutions-grid--single .solution-card { display: grid; grid-template-columns: 1.15fr 1fr; }
.solutions-grid--single .solution-thumb { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.solutions-grid--single .solution-body { padding: 36px; justify-content: center; }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.solution-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, #fff); border-bottom: 1px solid var(--line); position: relative; }
.solution-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s var(--ease); }
.solution-thumb--phone img { object-fit: contain; padding-top: 16px; }
.solution-card:hover .solution-thumb img { transform: scale(1.03); }
.solution-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.solution-meta { display: flex; align-items: center; gap: 10px; }
.solution-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.solution-card p { color: var(--text-2); font-size: 0.95rem; }
.solution-points { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.solution-points li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--text-2); }
.solution-points li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.solution-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.solution-foot small { font-weight: 500; color: var(--text-3); font-size: 0.82rem; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    background: var(--accent-soft); color: var(--accent);
}
.badge--live { background: rgba(5, 150, 105, 0.1); color: var(--ok); }
.badge--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--soon { background: rgba(217, 119, 6, 0.12); color: #b45309; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
}
.service-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(129, 140, 248, 0.14); color: #a5b4fc; margin-bottom: 18px; }
.service h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service p { color: rgba(255, 255, 255, 0.65); font-size: 0.93rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 0.74rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); }
.section-dark .tag { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.1); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; }
.process-step::before {
    counter-increment: step; content: '0' counter(step);
    display: block; font-size: 0.85rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; letter-spacing: 0.05em;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; color: var(--text-2); }

/* ---------- Client work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.work-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.work-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.work-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.work-card div { padding: 16px 18px 18px; }
.work-card strong { display: block; font-weight: 600; }
.work-card span { display: block; font-size: 0.86rem; color: var(--text-3); margin-top: 2px; }

/* ---------- About / locations ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--text-2); }
.locations { display: grid; gap: 16px; }
.location { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; display: flex; gap: 16px; }
.location-flag { font-size: 1.8rem; line-height: 1; }
.location h3 { font-size: 1rem; font-weight: 700; }
.location p { font-size: 0.9rem; color: var(--text-2); }
.location a { color: var(--brand); text-decoration: none; }
.location a:hover { text-decoration: underline; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-methods { display: grid; gap: 22px; margin-top: 32px; }
.contact-method h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.contact-method a, .contact-method p { color: #fff; text-decoration: none; font-size: 1.02rem; }
.contact-method a:hover { text-decoration: underline; }
.form-card { background: #fff; color: var(--text); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    font: 400 0.95rem/1.4 var(--font); color: var(--text);
    padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #fff;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 91, 253, 0.12); }
.form-note { font-size: 0.8rem; color: var(--text-3); margin-top: 12px; text-align: center; }
.form-message { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); font-size: 0.9rem; }
.form-message.success { background: rgba(5, 150, 105, 0.1); color: #047857; }
.form-message.error { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Solution page ---------- */
.sol-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + 72px) 0 80px;
    background:
        radial-gradient(ellipse 55% 60% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 50% at 100% 20%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
        var(--bg);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-3); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.sol-hero-grid > * { min-width: 0; }
.sol-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sol-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.sol-brand .product-dot { width: 42px; height: 42px; border-radius: 11px; font-size: 1rem; }
.sol-brand strong { font-size: 1.05rem; font-weight: 700; }
.sol-hero .lead { margin-top: 20px; }
.sol-hero .hero-actions { margin-top: 32px; }
.sol-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; list-style: none; }
.sol-checks li { font-size: 0.88rem; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.sol-checks svg { color: var(--accent); flex: none; }
.browser {
    border-radius: 14px; overflow: hidden; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--text-3); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; flex: 1; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone-frame { max-width: 300px; margin-inline: auto; border-radius: 40px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-lg); }
.phone-frame img { border-radius: 30px; width: 100%; }

.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.audience { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.audience h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.audience p { font-size: 0.9rem; color: var(--text-2); }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.module { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.module-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.module-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.module h3 { font-size: 1.02rem; font-weight: 700; }
.module ul { list-style: none; display: grid; gap: 8px; }
.module li { position: relative; padding-left: 18px; font-size: 0.9rem; color: var(--text-2); line-height: 1.5; }
.module li::before { content: ''; position: absolute; left: 3px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }

.highlight-list { display: grid; gap: 14px; }
.highlight { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.highlight svg { flex: none; color: #a5b4fc; margin-top: 3px; }
.highlight h3 { font-size: 1rem; font-weight: 700; }
.highlight p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.plan { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); position: relative; }
.plan--featured::before { content: 'Most popular'; position: absolute; top: -12px; left: 24px; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan h3 { font-size: 1rem; font-weight: 700; }
.plan-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan-alt { font-size: 0.82rem; color: var(--text-3); }
.plan ul { list-style: none; display: grid; gap: 8px; margin: 20px 0 24px; }
.plan li { font-size: 0.9rem; color: var(--text-2); padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; font-size: 0.85rem; color: var(--text-3); margin-top: 20px; }

.customer { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 32px; border-radius: var(--r-xl); background: var(--bg-soft); border: 1px solid var(--line); }
.customer-shot { display: block; text-decoration: none; transition: transform 0.25s var(--ease); }
.customer-shot:hover { transform: translateY(-3px); }
.customer-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-top: 14px; }
.customer-loc { font-size: 0.9rem; color: var(--text-3); margin-top: 4px; }
.customer-text { font-size: 1.05rem; color: var(--text-2); margin: 16px 0 18px; }
.customer-body .btn { margin-top: 22px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--text-3); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.95rem; }

.cta-band { border-radius: var(--r-xl); padding: 56px; background: var(--ink); color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .lead { color: rgba(255, 255, 255, 0.7); margin-top: 12px; }
.cta-band .form-card { padding: 28px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.related:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related strong { display: block; font-size: 0.95rem; }
.related div span { display: block; font-size: 0.82rem; color: var(--text-3); }

/* ---------- Page hero (solutions index, 404) ---------- */
.page-hero { padding: calc(var(--nav-h) + 80px) 0 56px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(59, 91, 253, 0.1), transparent 70%); }
.page-hero .lead { margin: 18px auto 0; max-width: 640px; }

.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose ul + p { margin-top: 14px; }
.prose a, .form-note a { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.footer .nav-logo { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.footer-socials a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Floating UI ---------- */
.scroll-top {
    position: fixed; right: 28px; bottom: 100px; z-index: 900; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s var(--ease);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1001; }
.chat-bubble {
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    background: var(--brand-grad); box-shadow: 0 10px 30px rgba(59, 91, 253, 0.4);
    display: grid; place-items: center; transition: transform 0.2s var(--ease);
}
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble svg { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.2s; }
.chat-icon-close { opacity: 0; transform: rotate(-90deg); }
.chat-widget.open .chat-icon-open { opacity: 0; transform: rotate(90deg); }
.chat-widget.open .chat-icon-close { opacity: 1; transform: rotate(0); }
.chat-window {
    position: absolute; right: 0; bottom: 74px; width: min(360px, calc(100vw - 32px)); height: 460px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.98); transform-origin: bottom right;
    transition: all 0.22s var(--ease);
}
.chat-widget.open .chat-window { opacity: 1; visibility: visible; transform: none; }
.chat-header { padding: 16px 18px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; font-weight: 800; }
.chat-header-name { font-weight: 600; font-size: 0.95rem; }
.chat-header-status { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); display: flex; align-items: center; gap: 6px; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg-bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-msg--user .chat-msg-bubble { background: var(--brand); color: #fff; border-color: transparent; }
.chat-form { padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input { flex: 1; min-width: 0; font: 400 0.9rem var(--font); padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.chat-input:focus { outline: none; border-color: var(--brand); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick button { font: 500 0.8rem var(--font); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--text); }
.chat-quick button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner, .sol-hero-grid, .split, .about-grid, .contact-grid, .cta-band, .customer { grid-template-columns: 1fr; gap: 40px; }
    .customer { padding: 20px; gap: 28px; }
    .process { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .solutions-grid--single .solution-card { grid-template-columns: 1fr; }
    .solutions-grid--single .solution-thumb { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        /* navbar's backdrop-filter makes it the containing block, so size against the viewport explicitly */
        position: absolute; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
        flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 32px; overflow-y: auto;
        background: #fff; border-top: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.22s var(--ease);
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: none; }
    .navbar--dark:not(.scrolled) .nav-menu .nav-link { color: var(--text-2); }
    .navbar--dark:not(.scrolled) .nav-menu .btn-ghost { color: var(--text); border-color: var(--line-2); }
    .nav-menu .nav-link { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav-dropdown > .nav-link { width: 100%; justify-content: space-between; }
    .nav-dropdown-panel {
        position: static; translate: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0;
        display: none; opacity: 1; visibility: visible; transform: none;
    }
    .nav-dropdown.open .nav-dropdown-panel { display: grid; }
    .nav-dropdown:hover .nav-dropdown-panel { display: none; }
    .nav-dropdown.open:hover .nav-dropdown-panel { display: grid; }
    .nav-cta { margin: 20px 0 0; }
    .nav-cta .btn { width: 100%; }
    .navbar--dark:not(.scrolled):has(.nav-menu.active) { background: #fff; }
    .navbar--dark:not(.scrolled):has(.nav-menu.active) .nav-logo { color: var(--text); }
    .navbar--dark:not(.scrolled):has(.nav-menu.active) .toggle-line { background: var(--text); }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 600px) {
    .section { padding-block: 72px; }
    .container, .container-narrow, .nav-container { padding-inline: 18px; }
    .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .solutions-grid, .module-grid, .work-grid { grid-template-columns: 1fr; }
    .process, .services-grid { grid-template-columns: 1fr; }
    .solutions-grid--single .solution-body { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .cta-band { padding: 32px 22px; border-radius: var(--r-lg); }
    .footer-grid { grid-template-columns: 1fr; }
    .fact-value { font-size: 1.6rem; }
    .fact { padding: 24px 12px; }
    .scroll-top { right: 18px; bottom: 92px; }
    .chat-widget { right: 16px; bottom: 16px; }
    .hero-product span { white-space: normal; }
}
