:root {
    --az-blue: #5b8cff;
    --az-blue-hi: #73b1fe;
    --az-blue-deep: #1645db;
    --az-purple: #6c5ce7;
    --az-purple-deep: #3b2db8;
    --az-violet: #622ca6;
    --az-navy: #1a1a2e;
    --az-void: #151528;
    --az-sphere: #061266;
    --az-chrome-hi: #f8f9fc;
    --az-chrome: #c8cdd8;
    --az-chrome-mid: #9aa3b8;
    --az-chrome-lo: #6e778c;
    --az-bg: #eef1f8;
    --az-card: #ffffff;
    --az-muted: #4a5570;
    --az-faint: #8a93a8;
    --az-line: #d5dbe8;
    --az-grad: linear-gradient(135deg, #5b8cff 0%, #6c5ce7 50%, #3b2db8 100%);
    --az-grad-vert: linear-gradient(160deg, #5b8cff 0%, #6c5ce7 48%, #3b2db8 100%);
    --az-chrome-grad: linear-gradient(145deg, #f8f9fc 0%, #d4dae8 38%, #8e97ad 72%, #eef1f6 100%);
    --az-shadow: 0 10px 28px rgba(21, 21, 40, 0.10), 0 2px 6px rgba(21, 21, 40, 0.06);
    --az-shadow-lift: 0 14px 36px rgba(59, 45, 184, 0.18), 0 4px 10px rgba(21, 21, 40, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(91, 140, 255, 0.18), transparent 70%),
        radial-gradient(720px 380px at 110% 8%, rgba(108, 92, 231, 0.12), transparent 62%),
        var(--az-bg);
    color: var(--az-navy);
    padding: 16px 0 112px;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}
.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    min-width: 0;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--az-blue); outline-offset: 2px; }

/* Chrome hex / circle frames — match logo nodes */
.node-icon {
    --node-size: 56px;
    width: var(--node-size);
    height: var(--node-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: var(--az-chrome-grad);
    filter: drop-shadow(0 6px 12px rgba(21, 21, 40, 0.22));
    margin-bottom: 10px;
    vertical-align: middle;
}
.node-icon-inner {
    width: 76%;
    height: 76%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: var(--az-grad-vert);
    color: #fff;
    font-size: calc(var(--node-size) * 0.38);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}
.node-icon-sm { --node-size: 32px; margin-bottom: 0; margin-right: 6px; }
.node-icon-lg { --node-size: 72px; }
.node-icon.circle,
.node-icon-circle {
    clip-path: none;
    border-radius: 50%;
    filter: drop-shadow(0 4px 10px rgba(21, 21, 40, 0.18));
}
.node-icon.circle .node-icon-inner,
.node-icon-circle .node-icon-inner {
    clip-path: none;
    border-radius: 50%;
}

.ico-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.12);
    box-shadow: none;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}
.ico-badge i,
.ico-badge .fas,
.ico-badge .az-ico {
    width: 16px;
    height: 16px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #5340d4 !important;
    font-size: 0.62rem;
    box-shadow: none;
}
.az-ico {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 0;
}
.node-icon-inner .az-ico {
    width: 58%;
    height: 58%;
    color: #fff;
}
.az-ico-tile {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.16), rgba(108, 92, 231, 0.1));
    color: #5340d4;
    margin-bottom: 10px;
}
.az-ico-tile svg { width: 58%; height: 58%; }
.az-ico-lg {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 12px;
}
.az-ico-lg svg { width: 52%; height: 52%; }
.az-ico-sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin: 0;
}
.az-ico-sm svg { width: 54%; height: 54%; }
.page-title .az-ico-tile {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin-bottom: 0;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--az-line);
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
}
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.logo {
    font-size: 0.85rem;
    font-weight: 800;
    display: inline;
    letter-spacing: 0.04em;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.logo i, .logo span { color: inherit; }
.logo-mark {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    background: transparent;
    pointer-events: none;
    flex-shrink: 0;
}
.brand-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 10px;
    width: 100%;
    min-width: 0;
}
.brand-hero-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: min(360px, 100%);
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    filter: drop-shadow(0 18px 28px rgba(21, 21, 40, 0.14));
}
.logo-mark-hero {
    display: block;
    width: 112%;
    max-width: none;
    height: 112%;
    aspect-ratio: auto;
    margin: -5% 0 -9% -6%;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 0;
    background: var(--az-bg);
    box-shadow: none;
}
.tagline {
    color: var(--az-muted);
    font-size: 0.9rem;
    margin: 0 0 18px;
    text-align: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    flex-wrap: wrap;
    min-width: 0;
}
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #fff;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(21, 21, 40, 0.04);
}
.lang-switch a,
.lang-switch button {
    color: var(--az-muted);
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.lang-switch a.active,
.lang-switch a:hover,
.lang-switch button.active,
.lang-switch button:hover {
    color: var(--az-purple-deep);
    background: rgba(108, 92, 231, 0.12);
    box-shadow: none;
}
.lang-switch .az-ico {
    width: 14px;
    height: 14px;
    color: inherit;
}
.lang-switch .sep { display: none; }
.nav-icons { display: flex; gap: 10px; font-size: 1rem; color: var(--az-muted); }
.nav-icons button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f4f6fb);
    border: 1px solid var(--az-line);
    color: #5340d4;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(21, 21, 40, 0.08);
}
.nav-icons button .az-ico {
    width: 18px;
    height: 18px;
    color: inherit;
}
.nav-icons button i {
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    font-size: 0.72rem;
}
.nav-icons button:hover { transform: translateY(-1px); }
.desktop-nav { display: none; }

.page { display: none; animation: fadeUp 0.3s ease; }
.page.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

.page-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    overflow-wrap: anywhere;
}
.page-title[hidden] { display: none !important; }
.page-title .node-icon { margin-bottom: 0; }

.service-card {
    background: var(--az-card);
    border-radius: 24px;
    padding: 18px 16px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
    transition: 0.25s;
    cursor: pointer;
    text-align: left;
    width: 100%;
    min-width: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.service-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--az-purple);
    box-shadow: var(--az-shadow-lift);
}
.service-card .icon,
.service-card .node-icon,
.service-card .product-logo { margin-bottom: 10px; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--az-navy); }
.service-card p { font-size: 0.875rem; color: var(--az-muted); line-height: 1.45; }
.service-card .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: var(--az-purple-deep);
    padding: 0;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 12px;
    box-shadow: none;
    letter-spacing: 0.01em;
}
.service-card .tag::after {
    content: "→";
    font-weight: 800;
    transition: transform 0.2s;
}
.service-card:hover .tag::after { transform: translateX(3px); }
.big-card {
    background: var(--az-card);
    border-color: var(--az-line);
}
.service-card-glow {
    background: transparent;
    border: none;
    box-shadow: none;
    color: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    isolation: isolate;
    z-index: 0;
    padding: 22px 16px 18px;
    min-height: 188px;
    overflow: visible;
}
.service-card-glow::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 24px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    filter: blur(6px);
    animation: az-glowing 20s linear infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}
.service-card-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: #fff;
}
.service-card-glow:hover,
.service-card-glow:focus-visible {
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
    box-shadow: none;
}
.service-card-glow:hover::before,
.service-card-glow:focus-visible::before {
    opacity: 1;
}
.service-card-glow:active {
    color: #000;
    transform: translateY(0) scale(0.99);
}
.service-card-glow:active::after { background: transparent; }
.service-card-glow h3,
.service-card-glow p,
.service-card-glow .tag,
.service-card-glow .az-ico-tile {
    position: relative;
    z-index: 1;
}
.service-card-glow h3 { color: var(--az-navy); }
.service-card-glow p { color: var(--az-muted); }
.service-card-glow .tag { color: var(--az-purple-deep); }
.service-card-glow:active h3,
.service-card-glow:active p,
.service-card-glow:active .tag { color: inherit; }
.service-card-glow .az-ico-tile {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    color: #5340d4;
}
.service-card-glow .az-ico-tile svg { width: 58%; height: 58%; }
@media (prefers-reduced-motion: reduce) {
    .service-card-glow::before { animation: none; }
}
.partner-panel {
    text-align: center;
    padding: 22px 18px;
    cursor: default;
}
.partner-panel p { margin: 0 auto; max-width: 42ch; }
.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.partner-actions .cta-btn { margin-top: 0; }
.partner-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 4px;
}
.partner-links a,
.partner-links button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--az-purple-deep);
    cursor: pointer;
}
.partner-links a:hover,
.partner-links button:hover { text-decoration: underline; }
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    overflow: visible;
    padding: 6px 2px 10px;
}
.span-2 { grid-column: span 2; }

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    margin-top: 18px;
    background: #111;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    box-shadow: none;
    max-width: 100%;
    min-width: 0;
    position: relative;
    isolation: isolate;
    z-index: 0;
}
.cta-btn .az-ico {
    width: 18px;
    height: 18px;
    color: currentColor;
}
.cta-btn:not(.btn-outline)::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    filter: blur(5px);
    animation: az-glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.cta-btn:not(.btn-outline)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 12px;
    background: #111;
}
.cta-btn:not(.btn-outline):hover::before { opacity: 1; }
.cta-btn:not(.btn-outline):active { color: #000; }
.cta-btn:not(.btn-outline):active::after { background: transparent; }
@keyframes az-glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.btn-outline {
    background: linear-gradient(#fff, #f4f6fb) padding-box, var(--az-grad) border-box;
    border: 1.5px solid transparent;
    border-radius: 14px;
    color: var(--az-purple-deep);
    box-shadow: 0 4px 14px rgba(21, 21, 40, 0.08);
}
.btn-outline:hover {
    background: var(--az-grad);
    color: #fff;
    border-color: transparent;
}
a.cta-btn { color: #fff; }
a.cta-btn.btn-outline { color: var(--az-purple-deep); }
a.cta-btn.btn-outline:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .cta-btn:not(.btn-outline)::before { animation: none; }
}

.footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--az-line);
    text-align: center;
    font-size: 0.75rem;
    color: var(--az-faint);
    overflow-wrap: anywhere;
}
.footer a { color: var(--az-purple-deep); font-weight: 600; }

.sub-cards { display: flex; flex-direction: column; gap: 16px; }
.sub-card {
    background: var(--az-card);
    border-radius: 20px;
    padding: 16px 16px 16px 18px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
    position: relative;
    overflow: hidden;
}
.sub-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--az-grad-vert);
}
.sub-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    overflow-wrap: anywhere;
}
.sub-card p { color: var(--az-muted); font-size: 0.9rem; }
.ready-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.ready-main > div { min-width: 0; flex: 1; }
.ready-main h3 { margin-bottom: 2px; }
.ready-main p { margin: 0; }
.ready-main .product-site {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--az-faint);
    margin: 0 0 8px;
}
.ready-main .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--az-purple-deep);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 10px;
}
.ready-main .tag::after {
    content: "→";
    font-weight: 800;
}
.product-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #0b0f1c;
    flex-shrink: 0;
    display: block;
    border: 1px solid var(--az-line);
}
.ready-main .product-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}
.sub-card .link-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-card .link-list a {
    background: linear-gradient(#fff, #f4f6fb);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--az-navy);
    border: 1px solid var(--az-line);
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(21, 21, 40, 0.05);
}
.sub-card .link-list a:hover {
    background: var(--az-grad);
    color: #fff;
    border-color: transparent;
}

.brief-form input:not([type="checkbox"]):not([type="radio"]),
.brief-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid var(--az-line);
    background: var(--az-card);
    color: var(--az-navy);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    box-shadow: inset 0 1px 2px rgba(21, 21, 40, 0.04);
}
.brief-form input:not([type="checkbox"]):not([type="radio"]):focus,
.brief-form textarea:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
.brief-form textarea { min-height: 100px; resize: vertical; }
.brief-form { position: relative; }
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.form-note { font-size: 0.8rem; color: var(--az-faint); margin: 8px 0 0; }

.ref-link-box {
    background: linear-gradient(180deg, #f7f8fc, #eef1f8);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 0.8rem;
    word-break: break-all;
    border: 1px solid var(--az-line);
    gap: 12px;
    min-width: 0;
}
.ref-link-box span { color: var(--az-purple-deep); font-weight: 600; min-width: 0; }
.ref-link-box button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--az-grad);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(59, 45, 184, 0.28);
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}
.stat-item { text-align: center; min-width: 0; }
.stat-item .num {
    font-size: clamp(0.95rem, 4.4vw, 1.8rem);
    font-weight: 800;
    background: var(--az-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow-wrap: anywhere;
    line-height: 1.15;
}
.stat-item .label { font-size: 0.7rem; color: var(--az-faint); }
.preview-note {
    font-size: 0.8rem;
    color: var(--az-muted);
    background: linear-gradient(180deg, #fff, #f4f6fb);
    border: 1px dashed var(--az-chrome);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 12px 0;
}

.chat-widget {
    margin-top: 24px;
    background: var(--az-card);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
}
.chat-widget .chat-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.chat-head-copy {
    min-width: 0;
    flex: 1;
}
.chat-head-copy strong {
    display: block;
    font-weight: 700;
    color: var(--az-navy);
}
.chat-lead {
    margin: 4px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--az-muted);
    font-weight: 500;
}
.chat-widget .chat-header .node-icon { margin-bottom: 0; }
.chat-widget .chat-header .az-ico,
.sub-card h3 .az-ico {
    width: 20px;
    height: 20px;
    color: #5340d4;
    margin-right: 0;
    margin-top: 2px;
    flex-shrink: 0;
}
.chat-demo {
    font-size: 0.7rem;
    margin-left: auto;
    color: var(--az-purple-deep);
    font-weight: 700;
    background: linear-gradient(180deg, #f4f6fb, #e8ecf8);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--az-line);
}
.chat-demo[hidden] {
    display: none !important;
}
.chat-widget .chat-messages {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-widget .chat-messages .msg { padding: 8px 12px; border-radius: 16px; max-width: 85%; }
.chat-widget .chat-messages .msg.bot {
    background: linear-gradient(135deg, #eef3ff, #ece8ff);
    align-self: flex-start;
    color: var(--az-navy);
}
.chat-widget .chat-messages .msg.user {
    background: linear-gradient(135deg, #e9ecf2, #dfe4ee);
    align-self: flex-end;
}
.chat-widget .chat-messages .msg.typing {
    opacity: 0.55;
}
.chat-input-row { display: flex; gap: 8px; min-width: 0; }
.chat-input-row input {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 40px;
    border: 1px solid var(--az-line);
    background: var(--az-card);
    font-size: 0.9rem;
    outline: none;
}
.chat-input-row input:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.16);
}
.chat-input-row button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #111;
    border: none;
    border-radius: 12px;
    padding: 0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chat-input-row button .az-ico { width: 18px; height: 18px; color: #fff; }
.chat-input-row button:hover { transform: scale(1.05); }

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 456px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #ffffff, #f3f5fb);
    border-radius: 40px;
    padding: 6px 4px;
    border: 1px solid var(--az-line);
    box-shadow: 0 10px 28px rgba(21, 21, 40, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 20;
}
.bottom-nav .nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    color: var(--az-faint);
    cursor: pointer;
    transition: 0.2s;
    padding: 4px 4px;
    border-radius: 30px;
    background: none;
    border: none;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
    line-height: 1.15;
}
.bottom-nav a.nav-item {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}
.bottom-nav:has(.nav-item:nth-child(5)) .nav-item {
    font-size: 0.52rem;
    padding: 4px 2px;
}
.bottom-nav .nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bottom-nav .nav-item i,
.bottom-nav .nav-item .az-ico {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: none;
    color: inherit;
    box-shadow: none;
}
.bottom-nav .nav-item.active {
    color: var(--az-purple-deep);
    background: linear-gradient(180deg, #f4f6fb, #ece8ff);
}
.bottom-nav .nav-item.active i,
.bottom-nav .nav-item:hover i,
.bottom-nav .nav-item.active .az-ico,
.bottom-nav .nav-item:hover .az-ico {
    background: none;
    color: inherit;
    box-shadow: none;
}
.bottom-nav .nav-item:hover { color: var(--az-purple-deep); }

.dev-lead { margin-bottom: 16px; color: var(--az-muted); font-size: 0.95rem; }
.dev-lead ul { margin-top: 8px; list-style: none; }
.dev-lead li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dev-lead li .ico-badge { margin-right: 0; }
.levels-box {
    background: linear-gradient(180deg, #fff, #f4f6fb);
    border-radius: 16px;
    padding: 14px;
    margin-top: 12px;
    border: 1px solid var(--az-line);
    box-shadow: var(--az-shadow);
}
.levels-box h4 { font-size: 0.9rem; }
.levels-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}
.levels-box ul li .ico-badge { margin-top: 1px; }
.privacy-copy { color: var(--az-muted); font-size: 0.92rem; }
.privacy-copy p { margin-bottom: 10px; }

@media (max-width: 480px) {
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
    .stat-item .num { font-size: 1.45rem; }
}
@media (max-width: 400px) {
    .grid-2 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .lang-switch a,
    .lang-switch button { padding: 6px 8px; }
    .header-actions { gap: 6px; }
    .brand-hero-btn { filter: drop-shadow(0 12px 18px rgba(21, 21, 40, 0.12)); }
}
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .bottom-nav { width: calc(100% - 12px); padding: 6px 2px; }
    .bottom-nav .nav-item { font-size: 0.48rem; }
}
@media (min-width: 768px) {
    body { padding: 32px 0 48px; }
    .container { max-width: 720px; padding: 0 24px; }
    .page-title { font-size: 1.45rem; }
    .header { justify-content: space-between; }
    .desktop-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; flex: 1; justify-content: center; }
    .desktop-nav button,
    .desktop-nav a {
        background: none;
        border: none;
        box-shadow: none;
        color: var(--az-muted);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        padding: 6px 2px 8px;
        border-radius: 0;
        position: relative;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .desktop-nav .az-ico {
        width: 14px;
        height: 14px;
    }
    .desktop-nav button::after,
    .desktop-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        margin: 0 auto;
        background: var(--az-grad);
        border-radius: 2px;
        transition: width 0.22s ease;
    }
    .desktop-nav button.active,
    .desktop-nav button:hover,
    .desktop-nav a.active,
    .desktop-nav a:hover {
        color: var(--az-purple-deep);
        background: none;
        border: none;
        box-shadow: none;
    }
    .desktop-nav button.active::after,
    .desktop-nav button:hover::after,
    .desktop-nav a.active::after,
    .desktop-nav a:hover::after { width: 100%; }
    .nav-icons { display: none; }
    .bottom-nav { display: none; }
    .grid-2 { gap: 16px; }
    .lang-switch { font-size: 0.8rem; }
    .brand-hero { margin: 0 0 12px; }
}

/* Root language picker (no-JS fallback on /) */
.lang-gate {
    max-width: 420px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: Inter, system-ui, sans-serif;
    color: var(--az-navy);
    text-align: center;
}
.lang-gate a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--az-grad);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(59, 45, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.lang-gate a:hover { transform: translateY(-1px); }
.lang-gate .header-brand {
    display: inline-flex;
    margin: 0 auto 16px;
}
.lang-gate .header-logo {
    width: 64px;
    height: 64px;
}
