/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--alkula-text);
    background: var(--alkula-page-bg);
}

.page {
    width: 100%;
    max-width: 65rem;

    margin: 0 auto;

    padding:
        clamp(4.375rem, 11vh, 7.5rem)
        1.75rem
        2.25rem;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    max-width: 47.5rem;
    margin: 0 auto;

    text-align: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    width: fit-content;
    margin-inline: auto;

    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-mark {
    display: block;
    width: 3rem;
    height: auto;
}

.alkula-brand {
    padding-top: 0.1rem;
}

h1 {
    margin: 0;

    font-size: clamp(2.625rem, 8vw, 4.625rem);
    font-weight: 650;

    line-height: 1.02;
    letter-spacing: -0.045em;
}

h1 span {
    color: #9dabbc;
}

.intro {
    max-width: 35rem;

    margin: 1.625rem auto 1.875rem;

    color: var(--alkula-muted);

    font-size: 1.0625rem;
    line-height: 1.7;
}

/* =========================================================
   STATUS
   ========================================================= */

.status-pill {
    display: inline-flex;
    align-items: center;

    gap: 0.625rem;

    padding: 0.625rem 0.9375rem;

    color: var(--alkula-muted-light);
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--alkula-border);
    border-radius: 999px;

    font-size: 0.8125rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--alkula-unknown);
}

.status-pill.operational {
    border-color: rgba(67, 209, 139, 0.22);
    background: rgba(67, 209, 139, 0.045);

    box-shadow:
        0 0 24px var(--alkula-green-glow);
}

.status-pill.operational .status-dot {
    background: var(--alkula-green);

    box-shadow:
        0 0 9px var(--alkula-green);

    animation: pulse 2s ease-in-out infinite;
}

.status-pill.down {
    border-color: rgba(255, 104, 104, 0.25);
    background: rgba(255, 104, 104, 0.05);

    box-shadow:
        0 0 24px var(--alkula-red-glow);
}

.status-pill.down .status-dot {
    background: var(--alkula-red);

    box-shadow:
        0 0 9px var(--alkula-red);
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.92);
    }
}

/* =========================================================
   PRIMARY ACTION
   ========================================================= */

.actions {
    margin-top: 1.625rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 1.125rem;

    padding: 0.8125rem 1.25rem;

    border-radius: 0.6875rem;

    font-size: 0.875rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.button.primary {
    color: #e9f1fb;

    background:
        linear-gradient(
            145deg,
            rgba(82, 139, 202, 0.16),
            rgba(54, 93, 138, 0.08)
        );

    border: 1px solid rgba(105, 163, 225, 0.25);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        0 0 24px var(--alkula-blue-glow);
}

.button.primary:hover {
    transform: translateY(-2px);

    border-color: rgba(119, 177, 239, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(91, 153, 221, 0.22),
            rgba(54, 93, 138, 0.12)
        );

    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.25),
        0 0 30px var(--alkula-blue-glow);
}

.arrow {
    color: #91b9e6;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    max-width: 51.25rem;

    margin: 6.25rem auto 0;
}

.section-label {
    margin-bottom: 0.875rem;

    color: #667383;

    font-size: 0.6875rem;
    font-weight: 700;

    letter-spacing: 0.2em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 0.875rem;
}

.service-card {
    min-height: 11.875rem;

    padding: 1.5625rem;

    color: inherit;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            transparent
        ),
        var(--alkula-surface);

    border: 1px solid var(--alkula-border);
    border-radius: 1.0625rem;

    text-decoration: none;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.16);
}

.service-card.clickable {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.service-card.clickable:hover {
    transform: translateY(-3px);

    border-color: var(--alkula-border-hover);
    background: var(--alkula-surface-hover);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.24);
}

.service-header {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    margin-bottom: 1.125rem;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 1.875rem;
    height: 1.875rem;

    color: #9bbce0;
    background: rgba(94, 144, 199, 0.08);

    border: 1px solid rgba(105, 157, 214, 0.13);
    border-radius: 0.5rem;

    font-size: 0.75rem;
    font-weight: 700;
}

.service-title {
    font-size: 0.9375rem;
    font-weight: 650;
}

.service-card p {
    margin: 0;

    color: var(--alkula-muted);

    font-size: 0.875rem;
    line-height: 1.6;
}

.service-domain,
.service-link {
    display: block;

    margin-top: 1.4375rem;

    color: #697789;

    font-size: 0.75rem;
}

.service-link {
    color: #86a9d0;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;

    text-align: center;
}

.copyright {
    color: var(--alkula-muted);
    opacity: 0.7;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.alkula-pronunciation {
    font-size: 0.8125rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 53.125rem) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 40.625rem) {
    .page {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    h1 {
        font-size: clamp(2.5rem, 13vw, 3.625rem);
    }

    .intro {
        font-size: 1rem;
    }

    .services {
        margin-top: 4.6875rem;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .status-dot {
        animation: none !important;
    }
}
