:root {
    --analix-bg: #f5f7fb;
    --analix-surface: rgba(255, 255, 255, 0.88);
    --analix-surface-solid: #ffffff;
    --analix-text: #111827;
    --analix-muted: #64748b;
    --analix-border: rgba(15, 23, 42, 0.10);
    --analix-accent: #2563eb;
    --analix-accent-hover: #1d4ed8;
    --analix-radius: 18px;
    --analix-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--analix-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .10), transparent 34rem),
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, .08), transparent 30rem),
        var(--analix-bg);
}

main {
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
}

img {
    max-width: 100%;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    box-sizing: border-box;
    border: 1px solid var(--analix-border);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    color: var(--analix-text);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, .65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

button,
input[type="submit"] {
    cursor: pointer;
    border-radius: 12px;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
}

a {
    text-underline-offset: 3px;
}

/* Contact area */

.analix-contact {
    width: min(calc(100% - 32px), 1080px);
    box-sizing: border-box;
    margin: 48px auto 28px;
    padding: 24px;
    border: 1px solid var(--analix-border);
    border-radius: var(--analix-radius);
    background: var(--analix-surface);
    box-shadow: var(--analix-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.analix-contact__header {
    margin-bottom: 18px;
}

.analix-contact__title {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    letter-spacing: -0.02em;
}

.analix-contact__subtitle {
    margin: 0;
    color: var(--analix-muted);
    line-height: 1.6;
}

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

.analix-contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--analix-border);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.analix-contact__item:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .30);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.analix-contact__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .09);
    font-size: 20px;
}

.analix-contact__content {
    min-width: 0;
}

.analix-contact__label {
    display: block;
    margin-bottom: 2px;
    color: var(--analix-muted);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.analix-contact__value {
    display: block;
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analix-language-switcher {
    position: fixed;
    z-index: 5000;
    inset-block-start: 16px;
    inset-inline-end: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--analix-border);
    border-radius: 12px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 8px 30px rgba(15,23,42,.10);
    backdrop-filter: blur(14px);
}

.analix-language-switcher select {
    max-width: 180px;
    padding: 7px 30px 7px 10px;
    border: 0;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
}

@media (max-width: 640px) {
    .analix-contact {
        margin-top: 32px;
        padding: 18px;
    }

    .analix-contact__grid {
        grid-template-columns: 1fr;
    }

    .analix-language-switcher {
        inset-block-start: 10px;
        inset-inline-end: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================
   ANALIX BUSINESS PLATFORM — primary brand line
   ========================================================== */

.analix-platform-title {
    display: block !important;

    margin:
        clamp(1.25rem, 3vw, 2rem)
        auto
        clamp(1.5rem, 4vw, 2.75rem) !important;

    max-width: 1100px;

    font-size:
        clamp(3rem, 7vw, 5.5rem) !important;

    font-weight: 800 !important;
    line-height: 1.02 !important;

    letter-spacing:
        -0.045em !important;

    text-align: center !important;

    text-transform: uppercase;
}

/* Persian page: keep Latin brand typography clean */
html[lang="fa"] .analix-platform-title {
    font-family:
        Inter,
        Arial,
        sans-serif !important;

    direction: ltr;
    letter-spacing:
        -0.04em !important;
}

/* Still very prominent on phones */
@media (max-width: 640px) {
    .analix-platform-title {
        font-size:
            clamp(2.6rem, 13vw, 4rem) !important;

        line-height: 1.02 !important;
    }
}

/* ANALIX-BRAND-TUNING-BEGIN */

html body .analix-platform-title {
    display: block !important;
    width: 100% !important;
    margin: 1.3rem auto 2.2rem !important;
    text-align: center !important;

    font-family:
        Inter,
        Arial,
        sans-serif !important;

    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: .94 !important;
    letter-spacing: -0.045em !important;
}

.analix-platform-title__analix,
.analix-platform-title__platform {
    display: block !important;
}

.analix-platform-title__analix {
    margin-bottom: .08em;
}

.analix-platform-title__platform {
    font-size: .72em;
    letter-spacing: -0.035em;
}

@media (max-width: 640px) {
    html body .analix-platform-title {
        font-size: clamp(2.6rem, 13vw, 4rem) !important;
    }
}

/* ANALIX-BRAND-TUNING-END */

/* ANALIX-ARCHITECTURE-BG-BEGIN */

/*
 * Analix architecture background
 *
 * Matte level: 76%
 * Image visibility: approximately 24%
 *
 * The white matte layer keeps existing dark typography,
 * countdown values and form controls readable.
 */

html body {
    background-color: #f5f7fb !important;

    background-image:
        linear-gradient(
            rgba(245, 247, 251, 0.85),
            rgba(245, 247, 251, 0.85)
        ),
        url("/assets/analix-architecture-bg.webp") !important;

    background-repeat:
        no-repeat,
        no-repeat !important;

    background-position:
        center center,
        center center !important;

    background-size:
        cover,
        cover !important;

    background-attachment:
        fixed,
        fixed !important;
}

/*
 * Keep cards/forms visually separated from the architecture.
 */

main,
.analix-contact {
    position: relative;
}

/*
 * Mobile browsers handle fixed backgrounds inconsistently.
 * Use a normal scrolling background there.
 */

@media (max-width: 768px) {
    html body {
        background-attachment:
            scroll,
            scroll !important;

        background-position:
            center top,
            center top !important;
    }
}

/* ANALIX-ARCHITECTURE-BG-END */
