/*
 * AIGate landing product theme.
 *
 * The tokens and component language mirror Admin Gate:
 * Inter + Share Tech Mono, slate control-plane surfaces, terminal green,
 * teal secondary accents, compact radii and restrained glass effects.
 * This stylesheet is loaded only by /aigate.
 */

.aigate-page {
    --aigate-bg: #020617;
    --aigate-bg-2: #0f172a;
    --aigate-surface: rgba(17, 24, 39, 0.9);
    --aigate-surface-solid: #111827;
    --aigate-surface-section: rgba(15, 23, 42, 0.82);
    --aigate-surface-elevated: rgba(31, 41, 55, 0.72);
    --aigate-border: #334155;
    --aigate-border-light: #475569;
    --aigate-text: #e5e7eb;
    --aigate-text-muted: #94a3b8;
    --aigate-text-dim: #64748b;
    --aigate-primary: #10b981;
    --aigate-primary-hover: #34d399;
    --aigate-primary-glow: rgba(16, 185, 129, 0.25);
    --aigate-primary-dim: rgba(16, 185, 129, 0.08);
    --aigate-teal: #2dd4bf;
    --aigate-teal-glow: rgba(45, 212, 191, 0.15);
    --aigate-warning: #f59e0b;
    --aigate-danger: #ef4444;
    --aigate-radius-sm: 6px;
    --aigate-radius-md: 8px;
    --aigate-radius-lg: 10px;
    --aigate-radius-xl: 14px;
    --aigate-shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.26);
    --aigate-shadow-md: 0 10px 28px rgba(2, 6, 23, 0.32);
    --aigate-shadow-lg: 0 18px 44px rgba(2, 6, 23, 0.38);
    --ait-font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ait-font-display: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ait-font-mono: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin: 0;
    background: var(--aigate-bg) !important;
    color: var(--aigate-text);
    font-family: var(--ait-font-body) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content refinement: open header, clearer feature hierarchy and quieter task cards. */
.aigate-page .server-page > header,
.aigate-page.theme-light .server-page > header {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.aigate-page .aigate-hero-feature {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: 13.5rem;
    padding: 1.35rem 1.4rem 1.2rem;
}

.aigate-page .aigate-hero-feature-head {
    align-items: flex-start;
}

.aigate-page .aigate-hero-feature h2 {
    max-width: 18rem;
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.18;
    letter-spacing: 0.025em;
    text-wrap: balance;
}

.aigate-page .aigate-hero-feature p {
    margin: 0.8rem 0 1rem 2.1rem;
    font-size: 0.86rem;
    line-height: 1.58;
}

.aigate-page .aigate-hero-feature-visual {
    position: relative;
    display: flex;
    align-items: end;
    gap: 0.3rem;
    height: 1.8rem;
    margin: 0 0 0.85rem 2.1rem;
    padding: 0.3rem 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.035);
}

.aigate-page .aigate-hero-feature-visual span {
    width: 0.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--aigate-teal), var(--aigate-primary));
    opacity: 0.8;
}

.aigate-page .aigate-hero-feature-visual span:nth-child(1) { height: 42%; }
.aigate-page .aigate-hero-feature-visual span:nth-child(2) { height: 72%; }
.aigate-page .aigate-hero-feature-visual span:nth-child(3) { height: 100%; }

.aigate-page .aigate-hero-feature-visual i {
    height: 1px;
    flex: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), transparent);
}

.aigate-page .aigate-hero-feature--2 .aigate-hero-feature-visual {
    align-items: center;
}

.aigate-page .aigate-hero-feature--2 .aigate-hero-feature-visual span {
    width: 0.52rem;
    height: 0.52rem;
    border: 2px solid var(--aigate-primary);
    background: transparent;
}

.aigate-page .aigate-hero-feature--2 .aigate-hero-feature-visual span:nth-child(2) {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.09);
}

.aigate-page .aigate-hero-feature--3 .aigate-hero-feature-visual {
    align-items: center;
}

.aigate-page .aigate-hero-feature--3 .aigate-hero-feature-visual span {
    width: 0.42rem;
    height: 0.42rem;
}

.aigate-page .aigate-hero-feature--3 .aigate-hero-feature-visual i {
    height: 2px;
    margin-bottom: 0;
    background: repeating-linear-gradient(90deg, var(--aigate-primary) 0 1rem, transparent 1rem 1.35rem);
}

.aigate-page .aigate-tasks-intro {
    display: grid;
    grid-template-columns: minmax(13rem, auto) 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--aigate-border);
}

.aigate-page .aigate-tasks-intro p {
    max-width: 40rem;
    margin: 0;
    color: var(--aigate-text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.aigate-page .aigate-tasks-grid {
    gap: 0.85rem;
}

.aigate-page .aigate-task-card {
    gap: 0.85rem;
    padding: 1.35rem !important;
}

.aigate-page .aigate-task-copy {
    display: grid;
    gap: 0.55rem;
}

.aigate-page .aigate-task-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.aigate-page .aigate-task-title-row .server-card-title {
    color: var(--aigate-text);
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    font-weight: 680;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-transform: none;
}

.aigate-page .aigate-task-title-row > span {
    color: color-mix(in srgb, var(--aigate-primary) 65%, var(--aigate-text-muted));
    font-family: var(--ait-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.aigate-page .aigate-task-copy .server-copy {
    font-size: 0.92rem;
    line-height: 1.58;
}

.aigate-page .aigate-task-artifact {
    min-height: 4.25rem;
    padding: 0.65rem 0.78rem;
    opacity: 0.78;
    box-shadow: 0 1px 0 var(--aigate-premium-highlight) inset;
}

.aigate-page .aigate-task-card:hover .aigate-task-artifact {
    opacity: 1;
}

.aigate-page .aigate-task-meta {
    justify-content: flex-start;
}

.aigate-page .aigate-task-meta .aigate-code-tags code {
    min-height: 1.25rem;
    padding-inline: 0.42rem;
    border-color: color-mix(in srgb, var(--aigate-border) 76%, var(--aigate-primary));
    background: transparent;
    color: var(--aigate-text-muted);
    font-size: 0.52rem;
}

@media (max-width: 767px) {
    .aigate-page .aigate-hero-feature {
        min-height: 0;
    }

    .aigate-page .aigate-hero-feature p,
    .aigate-page .aigate-hero-feature-visual,
    .aigate-page .aigate-hero-feature .aigate-code-tags {
        margin-left: 0;
    }

    .aigate-page .aigate-tasks-intro {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .aigate-page .aigate-task-card {
        padding: 1.1rem !important;
    }
}

/* Dedicated AIGate footer. */
.aigate-page .aigate-site-footer {
    box-sizing: border-box;
    max-width: 74rem;
}

.aigate-page .aigate-footer-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--aigate-premium-rim);
    border-radius: 26px;
    background:
        radial-gradient(circle at 4% 0, rgba(16, 185, 129, 0.1), transparent 19rem),
        radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.07), transparent 22rem),
        linear-gradient(145deg, var(--aigate-premium-highlight), transparent 30%),
        color-mix(in srgb, var(--aigate-surface-solid) 91%, transparent);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 24px 60px rgba(2, 6, 23, 0.12);
    backdrop-filter: blur(20px);
}

.aigate-page .aigate-footer-shell::before {
    content: "";
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 2rem rgba(16, 185, 129, 0.018),
        0 0 0 4rem rgba(45, 212, 191, 0.012);
    pointer-events: none;
}

.aigate-page .aigate-footer-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(13rem, 0.85fr) minmax(11rem, 0.65fr) minmax(22rem, 1.5fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(1.7rem, 3vw, 2.5rem);
}

.aigate-page .aigate-footer-brand,
.aigate-page .aigate-footer-products,
.aigate-page .aigate-footer-company {
    min-width: 0;
}

.aigate-page .aigate-footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.aigate-page .aigate-footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(45, 212, 191, 0.04));
    color: var(--aigate-primary);
    font-family: var(--ait-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 10px 24px rgba(16, 185, 129, 0.09);
}

.aigate-page .aigate-footer-eyebrow,
.aigate-page .aigate-footer-title {
    display: block;
    margin: 0 0 0.7rem;
    color: var(--aigate-text-dim);
    font-family: var(--ait-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aigate-page .aigate-footer-eyebrow {
    margin-bottom: 0.16rem;
    font-size: 0.58rem;
}

.aigate-page .aigate-footer-brand h2,
.aigate-page .aigate-footer-company h2 {
    margin: 0;
    color: var(--aigate-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.aigate-page .aigate-footer-brand > p {
    max-width: 17rem;
    margin: 1rem 0;
    color: var(--aigate-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.aigate-page .aigate-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--aigate-text-muted);
    font-family: var(--ait-font-mono);
    font-size: 0.62rem;
}

.aigate-page .aigate-footer-status i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--aigate-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 0 12px var(--aigate-primary-glow);
}

.aigate-page .aigate-footer-product-list {
    display: grid;
    gap: 0.32rem;
}

.aigate-page .aigate-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.15rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--aigate-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.aigate-page .aigate-footer-link > :last-child {
    opacity: 0;
    color: var(--aigate-primary);
    transition: opacity 180ms ease, transform 180ms ease;
}

.aigate-page .aigate-footer-link:hover,
.aigate-page .aigate-footer-link.is-current {
    border-color: rgba(16, 185, 129, 0.18);
    background: rgba(16, 185, 129, 0.055);
    color: var(--aigate-text);
}

.aigate-page .aigate-footer-link:hover > :last-child,
.aigate-page .aigate-footer-link.is-current > :last-child {
    opacity: 1;
}

.aigate-page .aigate-footer-link:hover > :last-child {
    transform: translate(1px, -1px);
}

.aigate-page .aigate-footer-company address {
    max-width: 34rem;
    margin: 0.7rem 0 0;
    color: var(--aigate-text-muted);
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1.55;
}

.aigate-page .aigate-footer-registration {
    width: fit-content;
    margin: 0.7rem 0 0;
    padding: 0.38rem 0.55rem;
    border: 1px solid var(--aigate-border);
    border-radius: 8px;
    color: var(--aigate-text-muted);
    font-family: var(--ait-font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.035em;
}

.aigate-page .aigate-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.aigate-page .aigate-footer-contact,
.aigate-page .aigate-footer-experts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border-radius: 11px;
    text-decoration: none;
}

.aigate-page .aigate-footer-contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--aigate-border);
    background: color-mix(in srgb, var(--aigate-surface-section) 82%, transparent);
}

.aigate-page .aigate-footer-contact span {
    color: var(--aigate-text-dim);
    font-size: 0.58rem;
}

.aigate-page .aigate-footer-contact strong {
    color: var(--aigate-text);
    font-size: 0.76rem;
}

.aigate-page .aigate-footer-experts {
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.07);
    color: var(--aigate-primary);
    font-size: 0.75rem;
    font-weight: 650;
}

.aigate-page .aigate-footer-contact:hover,
.aigate-page .aigate-footer-experts:hover {
    border-color: rgba(16, 185, 129, 0.42);
}

.aigate-page .aigate-footer-meta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 0.9rem clamp(1.7rem, 3vw, 2.5rem);
    border-top: 1px solid var(--aigate-border);
    color: var(--aigate-text-dim);
    font-size: 0.68rem;
}

.aigate-page .aigate-footer-meta nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1.2rem;
}

.aigate-page .aigate-footer-meta a {
    color: var(--aigate-text-muted);
    text-decoration: none;
}

.aigate-page .aigate-footer-meta a:hover {
    color: var(--aigate-primary);
}

@media (max-width: 900px) {
    .aigate-page .aigate-footer-main {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .aigate-page .aigate-footer-company {
        grid-column: 1 / -1;
        padding-top: 1.35rem;
        border-top: 1px solid var(--aigate-border);
    }
}

@media (max-width: 600px) {
    .aigate-page .aigate-footer-shell {
        border-radius: 20px;
    }

    .aigate-page .aigate-footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.35rem;
    }

    .aigate-page .aigate-footer-products,
    .aigate-page .aigate-footer-company {
        grid-column: auto;
        padding-top: 1.25rem;
        border-top: 1px solid var(--aigate-border);
    }

    .aigate-page .aigate-footer-product-list {
        grid-template-columns: 1fr 1fr;
    }

    .aigate-page .aigate-footer-meta {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 1.35rem 1.2rem;
    }

    .aigate-page .aigate-footer-meta nav {
        justify-content: flex-start;
    }
}

.aigate-page.theme-light {
    --aigate-bg: #f4f7fb;
    --aigate-bg-2: #ffffff;
    --aigate-surface: rgba(255, 255, 255, 0.96);
    --aigate-surface-solid: #ffffff;
    --aigate-surface-section: rgba(249, 250, 251, 0.96);
    --aigate-surface-elevated: rgba(249, 250, 251, 0.92);
    --aigate-border: #e5e7eb;
    --aigate-border-light: #d1d5db;
    --aigate-text: #111827;
    --aigate-text-muted: #4b5563;
    --aigate-text-dim: #6b7280;
    --aigate-primary-hover: #059669;
    --aigate-primary-glow: rgba(16, 185, 129, 0.15);
    --aigate-primary-dim: rgba(16, 185, 129, 0.05);
    --aigate-teal: #0f766e;
    --aigate-teal-glow: rgba(15, 118, 110, 0.1);
    --aigate-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --aigate-shadow-md: 0 10px 26px rgba(15, 23, 42, 0.1);
    --aigate-shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.12);
    background: var(--aigate-bg) !important;
    color: var(--aigate-text);
}

.aigate-page .server-page,
.aigate-page .server-page button,
.aigate-page .server-page input,
.aigate-page .server-page select,
.aigate-page .server-page textarea {
    font-family: var(--ait-font-body);
}

.aigate-page .server-muted {
    color: var(--aigate-text-muted) !important;
}

.aigate-page .server-starfield {
    opacity: 0.54;
}

/* Product-shell header and radar brand. */
.aigate-page .server-page > header {
    margin: 0;
    padding: 0.85rem clamp(1rem, 2.5vw, 2rem) !important;
    border-bottom: 1px solid var(--aigate-border);
    background: color-mix(in srgb, var(--aigate-surface-solid) 88%, transparent);
    box-shadow: var(--aigate-shadow-sm);
    backdrop-filter: blur(18px);
}

[data-aigate-product-brand] {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.aigate-product-radar {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
}

.aigate-product-radar > i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--aigate-primary-glow);
    filter: blur(8px);
}

.aigate-product-radar svg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: aigate-radar-spin 8s linear infinite;
}

.aigate-product-radar svg > circle:not(.aigate-product-radar-core, .aigate-product-radar-point),
.aigate-product-radar svg > line,
.aigate-product-radar svg > path {
    fill: none;
    stroke: var(--aigate-primary);
    stroke-width: 2;
}

.aigate-product-radar svg > circle:nth-child(2) {
    opacity: 0.55;
    stroke-width: 1.5;
}

.aigate-product-radar svg > path {
    opacity: 0.45;
    stroke-linecap: round;
}

.aigate-product-radar-core,
.aigate-product-radar-point {
    fill: var(--aigate-primary);
}

.aigate-product-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    line-height: 1.1;
    text-align: left;
}

[data-aigate-brand-eyebrow] {
    color: var(--aigate-text-muted);
    font-size: 0.52rem !important;
    letter-spacing: 0.18em !important;
}

[data-aigate-brand-name] {
    color: var(--aigate-text);
    font-size: 1.02rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
}

@keyframes aigate-radar-spin {
    to { transform: rotate(360deg); }
}

.aigate-page .server-header-btn,
.aigate-page .server-icon-btn,
.aigate-page .server-material-btn {
    min-height: 44px;
    border: 1px solid var(--aigate-border-light) !important;
    border-radius: var(--aigate-radius-md) !important;
    background: transparent !important;
    color: var(--aigate-text) !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

.aigate-page .server-header-btn:hover,
.aigate-page .server-icon-btn:hover,
.aigate-page .server-material-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--aigate-border-light) 58%, var(--aigate-primary) 42%) !important;
    background: var(--aigate-primary-dim) !important;
    color: var(--aigate-primary) !important;
}

.aigate-page .server-header-breadcrumbs .server-header-btn {
    min-height: 44px;
    border-color: transparent !important;
    background: transparent !important;
    color: var(--aigate-text-muted) !important;
}

.aigate-page .server-blog-btn {
    border-color: color-mix(in srgb, var(--aigate-border-light) 58%, var(--aigate-primary) 42%) !important;
    background: var(--aigate-primary-dim) !important;
    color: var(--aigate-primary) !important;
}

/* Hero follows the product's page-header hierarchy. */
.aigate-page .server-page > section:first-of-type {
    padding-top: clamp(3rem, 7vw, 6rem) !important;
    padding-bottom: clamp(2rem, 4vw, 3.75rem) !important;
}

.aigate-page .server-hero-heading {
    gap: clamp(0.7rem, 1.25vw, 1rem) !important;
    color: var(--aigate-text) !important;
    font-family: var(--ait-font-body) !important;
    text-shadow: none !important;
}

.aigate-page .server-hero-heading-main {
    color: var(--aigate-primary);
    font-size: clamp(3.3rem, 6.5vw, 6rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.065em !important;
    text-shadow: 0 0 30px var(--aigate-primary-glow);
}

.aigate-page .server-hero-heading-sub {
    color: var(--aigate-text);
    font-size: clamp(1.1rem, 2.12vw, 2.15rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.04em !important;
}

.aigate-page .aigate-hero-features {
    gap: 0.75rem;
    width: min(100%, 70rem);
}

.aigate-page .aigate-hero-feature {
    padding: 1rem;
    border: 1px solid var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background:
        radial-gradient(circle at 100% 0, var(--aigate-teal-glow), transparent 12rem),
        var(--aigate-surface);
    box-shadow: var(--aigate-shadow-sm);
    backdrop-filter: blur(10px);
}

.aigate-page .aigate-hero-feature::before {
    width: 2px;
    background: linear-gradient(180deg, var(--aigate-primary), var(--aigate-teal));
}

.aigate-page .aigate-hero-feature:hover {
    border-color: color-mix(in srgb, var(--aigate-border-light) 72%, var(--aigate-primary) 28%);
}

.aigate-page .aigate-hero-feature-index {
    color: var(--aigate-primary);
}

.aigate-page .aigate-hero-feature h2 {
    color: var(--aigate-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aigate-page .aigate-hero-feature p {
    color: var(--aigate-text-muted);
}

.aigate-page .aigate-code-tags code {
    border-color: color-mix(in srgb, var(--aigate-border) 64%, var(--aigate-primary) 36%);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
}

.aigate-page .server-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aigate-primary), transparent) !important;
    box-shadow: 0 0 12px var(--aigate-primary-glow);
}

/* Product sidebar links translated into horizontal section navigation. */
.aigate-page .server-page > nav {
    max-width: 70rem !important;
}

.aigate-page .server-nav-chip {
    min-height: 3.25rem;
    border: 1px solid transparent !important;
    border-radius: var(--aigate-radius-md) !important;
    background: transparent !important;
    color: var(--aigate-text-muted) !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

.aigate-page .server-nav-chip:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--aigate-border) 72%, var(--aigate-primary) 28%) !important;
    background: var(--aigate-surface-section) !important;
    color: var(--aigate-text) !important;
}

.aigate-page .server-nav-chip.active {
    border-color: rgba(16, 185, 129, 0.42) !important;
    background: var(--aigate-primary-dim) !important;
    color: var(--aigate-text) !important;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
}

.aigate-page .server-nav-chip.active > span > span:first-child {
    color: var(--aigate-primary);
}

/* Admin Gate cards and surfaces. */
.aigate-page .server-page main {
    max-width: 70rem !important;
}

.aigate-page .server-panel {
    border: 1px solid var(--aigate-border) !important;
    border-radius: var(--aigate-radius-lg) !important;
    background: var(--aigate-surface) !important;
    box-shadow: var(--aigate-shadow-md) !important;
    backdrop-filter: blur(10px) !important;
}

.aigate-page .server-soft,
.aigate-page .server-stat,
.aigate-page .server-panel-soft,
.aigate-page .server-metric-card,
.aigate-page .server-stat-card {
    border: 1px solid var(--aigate-border) !important;
    border-radius: var(--aigate-radius-md) !important;
    background: var(--aigate-surface-section) !important;
    box-shadow: var(--aigate-shadow-sm) !important;
}

.aigate-page .server-soft:hover,
.aigate-page .server-stat:hover {
    border-color: color-mix(in srgb, var(--aigate-border-light) 72%, var(--aigate-primary) 28%) !important;
}

.aigate-page .server-kicker {
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(16, 185, 129, 0.42);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
    font-family: var(--ait-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
}

.aigate-page .server-card-title {
    color: var(--aigate-text);
    letter-spacing: -0.02em !important;
}

.aigate-page .server-card-title::after {
    background: var(--aigate-primary);
    opacity: 0.36;
}

.aigate-page .server-copy {
    color: var(--aigate-text-muted) !important;
}

.aigate-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2rem;
    height: 2rem;
    padding-inline: 0.45rem;
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
    font-family: var(--ait-font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.aigate-page .server-level {
    border: 1px solid transparent;
    border-radius: var(--aigate-radius-sm);
    font-family: var(--ait-font-mono);
}

.aigate-page .server-level.critical {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.aigate-page .server-level.high,
.aigate-page .server-level.medium {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: var(--aigate-warning);
}

.aigate-page .server-level.control {
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
}

/* Task telemetry uses product status colors instead of landing orange. */
.aigate-page .aigate-task-meta > span,
.aigate-page .aigate-token-head strong,
.aigate-page .aigate-vault-key strong,
.aigate-page .aigate-task-artifact--mask > code {
    color: var(--aigate-primary);
}

.aigate-page .aigate-task-artifact {
    border-color: var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        color-mix(in srgb, var(--aigate-surface-solid) 88%, transparent);
    background-size: 12px 12px;
    color: var(--aigate-text-muted);
}

.aigate-page .aigate-token-scale i {
    background: color-mix(in srgb, var(--aigate-primary) 14%, transparent);
}

.aigate-page .aigate-token-scale i:nth-child(-n+7) {
    background: linear-gradient(180deg, var(--aigate-primary-hover), var(--aigate-primary));
    box-shadow: 0 0 10px var(--aigate-primary-glow);
}

.aigate-page .aigate-mask-rule strong,
.aigate-page .aigate-log-row strong,
.aigate-page .aigate-siem-badge,
.aigate-page .aigate-policy-rule strong,
.aigate-page .aigate-gateway-routes span:last-child,
.aigate-page .aigate-vault-lock code {
    color: var(--aigate-primary);
}

.aigate-page .aigate-log-row code {
    color: var(--aigate-text);
}

.aigate-page .aigate-gateway-flow > span,
.aigate-page .aigate-gateway-flow > strong {
    border-color: color-mix(in srgb, var(--aigate-border) 64%, var(--aigate-primary) 36%);
    border-radius: var(--aigate-radius-sm);
}

.aigate-page .aigate-gateway-flow > strong {
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
}

.aigate-page .aigate-gateway-flow i {
    background: linear-gradient(90deg, var(--aigate-border), var(--aigate-primary));
}

.aigate-page .aigate-vault-key {
    border-color: color-mix(in srgb, var(--aigate-border) 62%, var(--aigate-primary) 38%);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
}

/* Management dashboard mirrors the product dashboard widgets. */
.aigate-page .server-management-console {
    border-color: var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background:
        radial-gradient(circle at 100% 0, var(--aigate-teal-glow), transparent 15rem),
        var(--aigate-surface-section);
    box-shadow: var(--aigate-shadow-sm);
}

.aigate-page .server-management-console::before {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}

.aigate-page .server-management-console-head {
    border-bottom-color: var(--aigate-border);
}

.aigate-page .server-management-console-title,
.aigate-page .server-management-capability-icon {
    color: var(--aigate-primary) !important;
}

.aigate-page .server-management-capability-icon {
    border-color: rgba(16, 185, 129, 0.32);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
}

.aigate-page .server-management-capability-mark,
.aigate-page .server-management-live i {
    background: var(--aigate-primary);
    box-shadow: 0 0 10px var(--aigate-primary-glow);
}

.aigate-page .server-management-signal {
    border-color: var(--aigate-border);
    background: var(--aigate-surface-section);
}

.aigate-page .server-management-signal i {
    background: var(--aigate-primary);
}

.aigate-page .server-management-metric {
    border-color: var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background: color-mix(in srgb, var(--aigate-surface-solid) 82%, transparent);
}

/* Primary product action. */
.aigate-page .server-cta {
    min-height: 2.75rem;
    border: 1px solid var(--aigate-primary);
    border-radius: var(--aigate-radius-md);
    background: var(--aigate-primary);
    color: #02150f;
    font-size: 0.875rem;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.16);
}

.aigate-page .server-cta:hover {
    transform: translateY(-1px);
    border-color: var(--aigate-primary-hover);
    background: var(--aigate-primary-hover);
    box-shadow: 0 8px 18px var(--aigate-primary-glow);
}

.aigate-page .server-cta:focus-visible {
    box-shadow: 0 0 0 3px var(--aigate-primary-glow);
}

.aigate-page .server-cta > :last-child {
    border-color: rgba(2, 21, 15, 0.14);
    border-radius: var(--aigate-radius-sm);
    background: rgba(2, 21, 15, 0.08);
}

/* FAQ, footer, media and overlays use the same quiet product surfaces. */
.aigate-page .server-faq-shell,
.aigate-page .server-footer-shell {
    border: 1px solid var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background: var(--aigate-surface);
    box-shadow: var(--aigate-shadow-sm);
}

.aigate-page .server-faq-title,
.aigate-page .server-faq-trigger {
    color: var(--aigate-text);
}

.aigate-page .server-faq-item + .server-faq-item {
    border-top-color: var(--aigate-border);
}

.aigate-page .server-faq-item[open] {
    background: var(--aigate-primary-dim);
}

.aigate-page .server-faq-icon {
    border-color: rgba(16, 185, 129, 0.3);
    border-radius: var(--aigate-radius-sm);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
}

.aigate-page .server-faq-item[open] .server-faq-icon {
    border-color: rgba(16, 185, 129, 0.48);
    background: color-mix(in srgb, var(--aigate-primary) 14%, transparent);
}

.aigate-page .aigate-architecture-trigger {
    border-color: var(--aigate-border);
    border-radius: var(--aigate-radius-md);
    background: var(--aigate-surface-section);
    box-shadow: var(--aigate-shadow-sm);
}

.aigate-page .aigate-architecture-trigger:hover {
    border-color: color-mix(in srgb, var(--aigate-border-light) 64%, var(--aigate-primary) 36%);
    box-shadow: var(--aigate-shadow-md);
}

.aigate-page .aigate-architecture-zoom {
    border-color: rgba(16, 185, 129, 0.35);
    border-radius: var(--aigate-radius-md);
    background: color-mix(in srgb, var(--aigate-surface-solid) 88%, transparent);
    color: var(--aigate-primary);
}

.aigate-page .server-overlay-frame-shell {
    border-color: var(--aigate-border);
    border-radius: var(--aigate-radius-xl);
    background: var(--aigate-bg);
    box-shadow: var(--aigate-shadow-lg);
}

.aigate-page .server-overlay-close {
    border-color: var(--aigate-border-light);
    border-radius: var(--aigate-radius-md);
    background: var(--aigate-surface-section);
    color: var(--aigate-text);
}

.aigate-page .server-overlay-close:hover {
    border-color: var(--aigate-primary);
    color: var(--aigate-primary);
}

.aigate-page .server-footer-link:hover {
    color: var(--aigate-primary);
}

@media (max-width: 900px) {
    .aigate-page .aigate-hero-features {
        gap: 0.6rem;
    }
}

@media (max-width: 767px) {
    .aigate-page .server-page > header {
        padding: 0.75rem 1rem !important;
    }

    .aigate-page .server-page > section:first-of-type {
        padding-top: 2.75rem !important;
    }

    .aigate-page .server-hero-heading-main {
        font-size: clamp(2.8rem, 14vw, 4.2rem) !important;
    }

    .aigate-page .server-hero-heading-sub {
        font-size: clamp(0.98rem, 4.8vw, 1.25rem) !important;
    }

    .aigate-page .server-panel {
        border-radius: var(--aigate-radius-lg) !important;
    }

    .aigate-page .server-nav-chip {
        min-height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aigate-product-radar svg {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
 * Premium refinement layer
 * --------------------------------------------------------------------------
 * Softer geometry, layered glass and restrained luminous edges make the
 * landing feel more considered without turning the product UI into neon.
 */

.aigate-page {
    --aigate-premium-radius-control: 12px;
    --aigate-premium-radius-card: 18px;
    --aigate-premium-radius-panel: 24px;
    --aigate-premium-radius-shell: 28px;
    --aigate-premium-rim: rgba(148, 163, 184, 0.17);
    --aigate-premium-highlight: rgba(255, 255, 255, 0.055);
    --aigate-premium-panel:
        radial-gradient(circle at 88% -12%, rgba(45, 212, 191, 0.095), transparent 23rem),
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(9, 15, 27, 0.9));
    --aigate-premium-card:
        radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.075), transparent 12rem),
        linear-gradient(145deg, rgba(31, 41, 55, 0.56), rgba(15, 23, 42, 0.7));
    --aigate-premium-shadow:
        0 1px 0 rgba(255, 255, 255, 0.045) inset,
        0 24px 64px rgba(2, 6, 23, 0.2);
}

.aigate-page.theme-light {
    --aigate-premium-rim: rgba(100, 116, 139, 0.16);
    --aigate-premium-highlight: rgba(255, 255, 255, 0.94);
    --aigate-premium-panel:
        radial-gradient(circle at 88% -12%, rgba(45, 212, 191, 0.09), transparent 23rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 251, 0.93));
    --aigate-premium-card:
        radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.075), transparent 12rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.9));
    --aigate-premium-shadow:
        0 1px 0 rgba(255, 255, 255, 0.96) inset,
        0 24px 64px rgba(15, 23, 42, 0.085);
}

.aigate-page .server-page::before {
    content: "";
    position: absolute;
    inset: 4.75rem 0 auto;
    z-index: -1;
    width: 100%;
    height: 38rem;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 28%, rgba(16, 185, 129, 0.105), transparent 24rem),
        radial-gradient(circle at 62% 38%, rgba(45, 212, 191, 0.075), transparent 18rem);
    filter: blur(2px);
}

/* Floating product bar: horizontal brand, quieter chrome, richer controls. */
.aigate-page .server-page > header {
    width: calc(100% - 1.5rem);
    margin: 0.75rem;
    padding: 0.68rem clamp(0.8rem, 2vw, 1.25rem) !important;
    border: 1px solid var(--aigate-premium-rim);
    border-radius: 20px;
    background:
        linear-gradient(180deg, var(--aigate-premium-highlight), transparent 46%),
        color-mix(in srgb, var(--aigate-surface-solid) 82%, transparent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 14px 36px rgba(2, 6, 23, 0.12);
    backdrop-filter: blur(24px) saturate(125%);
}

.aigate-page.theme-light .server-page > header {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.94) inset,
        0 14px 36px rgba(15, 23, 42, 0.075);
}

.aigate-page [data-aigate-product-brand] {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.72rem !important;
    width: auto;
    min-height: 2.65rem;
}

.aigate-page .aigate-product-radar {
    width: 2.55rem;
    height: 2.55rem;
    padding: 0.25rem;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 14px;
    background:
        radial-gradient(circle, rgba(16, 185, 129, 0.11), transparent 70%),
        var(--aigate-primary-dim);
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.025),
        0 8px 22px rgba(16, 185, 129, 0.09);
}

.aigate-page .aigate-product-brand-copy {
    gap: 0.13rem;
}

.aigate-page [data-aigate-brand-name] {
    font-size: 1.06rem !important;
    letter-spacing: 0.055em !important;
}

.aigate-page .server-header-breadcrumbs {
    padding-left: 0.9rem;
    border-left: 1px solid var(--aigate-border);
}

.aigate-page .server-header-btn,
.aigate-page .server-icon-btn,
.aigate-page .server-material-btn {
    border-radius: var(--aigate-premium-radius-control) !important;
    background:
        linear-gradient(180deg, var(--aigate-premium-highlight), transparent 58%),
        color-mix(in srgb, var(--aigate-surface-section) 82%, transparent) !important;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.aigate-page .server-header-btn:hover,
.aigate-page .server-icon-btn:hover,
.aigate-page .server-material-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.09) !important;
}

.aigate-page .server-blog-btn {
    background:
        linear-gradient(180deg, rgba(52, 211, 153, 0.08), transparent),
        var(--aigate-primary-dim) !important;
}

/* Hero typography and feature anchors. */
.aigate-page .server-page > section:first-of-type {
    padding-top: clamp(3.4rem, 7.5vw, 6.6rem) !important;
}

.aigate-page .server-hero-heading-main {
    background: linear-gradient(135deg, var(--aigate-primary-hover), var(--aigate-primary) 52%, var(--aigate-teal));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 16px 34px rgba(16, 185, 129, 0.13));
}

.aigate-page .server-hero-heading-sub {
    max-width: min(100%, 74rem) !important;
    font-weight: 650 !important;
}

.aigate-page .aigate-hero-features {
    gap: 0.9rem;
    margin-top: clamp(2rem, 3.4vw, 2.8rem);
}

.aigate-page .aigate-hero-feature {
    min-height: 9.9rem;
    padding: 1.2rem 1.25rem 1.1rem;
    border-color: var(--aigate-premium-rim);
    border-radius: var(--aigate-premium-radius-card);
    background: var(--aigate-premium-card);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 16px 38px rgba(2, 6, 23, 0.075);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.aigate-page .aigate-hero-feature::before {
    inset: 1rem auto 1rem 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
}

.aigate-page .aigate-hero-feature::after {
    content: "";
    position: absolute;
    top: -3.5rem;
    right: -3.5rem;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 1.15rem rgba(16, 185, 129, 0.018),
        0 0 0 2.3rem rgba(45, 212, 191, 0.012);
}

.aigate-page .aigate-hero-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 22px 48px rgba(2, 6, 23, 0.13);
}

.aigate-page .aigate-hero-feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 8px;
    background: var(--aigate-primary-dim);
}

.aigate-page .aigate-hero-feature h2 {
    letter-spacing: 0.055em;
}

.aigate-page .aigate-hero-feature p {
    margin-left: 2.1rem;
}

.aigate-page .aigate-hero-feature .aigate-code-tags {
    margin-left: 2.1rem;
}

.aigate-page .aigate-code-tags code {
    min-height: 1.45rem;
    padding-inline: 0.52rem;
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--aigate-premium-highlight) inset;
}

/* Segmented product navigation. */
.aigate-page .server-page > nav > div {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.38rem;
    border: 1px solid var(--aigate-premium-rim);
    border-radius: 18px;
    background:
        linear-gradient(180deg, var(--aigate-premium-highlight), transparent 54%),
        color-mix(in srgb, var(--aigate-surface-solid) 78%, transparent);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 16px 36px rgba(2, 6, 23, 0.09);
    backdrop-filter: blur(18px);
}

.aigate-page .server-nav-chip {
    min-height: 3.5rem;
    border-radius: 13px !important;
}

.aigate-page .server-nav-chip.active {
    border-color: rgba(16, 185, 129, 0.32) !important;
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(45, 212, 191, 0.055)) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.075) inset,
        0 8px 20px rgba(16, 185, 129, 0.1) !important;
}

/* Panels and cards share one premium geometry system. */
.aigate-page .server-panel {
    position: relative;
    overflow: hidden;
    border-color: var(--aigate-premium-rim) !important;
    border-radius: var(--aigate-premium-radius-panel) !important;
    background: var(--aigate-premium-panel) !important;
    box-shadow: var(--aigate-premium-shadow) !important;
}

.aigate-page .server-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 22%),
        radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.055), transparent 18rem);
}

.aigate-page .server-panel > * {
    position: relative;
    z-index: 1;
}

.aigate-page .server-soft,
.aigate-page .server-stat,
.aigate-page .server-panel-soft,
.aigate-page .server-metric-card,
.aigate-page .server-stat-card {
    border-color: var(--aigate-premium-rim) !important;
    border-radius: var(--aigate-premium-radius-card) !important;
    background: var(--aigate-premium-card) !important;
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 12px 28px rgba(2, 6, 23, 0.06) !important;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.aigate-page .server-soft:hover,
.aigate-page .server-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.27) !important;
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 18px 38px rgba(2, 6, 23, 0.11) !important;
}

.aigate-page .server-kicker {
    min-height: 1.85rem;
    padding-inline: 0.72rem;
    border-radius: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 20px rgba(16, 185, 129, 0.065);
}

.aigate-page .aigate-module-icon,
.aigate-page .server-management-capability-icon {
    border-radius: 11px;
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.13), rgba(45, 212, 191, 0.045));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 18px rgba(16, 185, 129, 0.07);
}

.aigate-page .aigate-task-card {
    gap: 0.95rem;
    padding: 1.05rem !important;
}

.aigate-page .aigate-task-artifact {
    min-height: 6.15rem;
    padding: 0.88rem;
    border-radius: 14px;
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 12px 26px rgba(2, 6, 23, 0.055);
}

.aigate-page .server-management-console {
    border-radius: var(--aigate-premium-radius-card);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 16px 36px rgba(2, 6, 23, 0.08);
}

.aigate-page .server-management-metric {
    border-radius: 14px;
    box-shadow: 0 1px 0 var(--aigate-premium-highlight) inset;
}

.aigate-page .aigate-architecture-trigger {
    border-radius: var(--aigate-premium-radius-card);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 18px 42px rgba(2, 6, 23, 0.1);
}

/* Primary action and lower-page shells. */
.aigate-page .server-cta {
    min-height: 3.35rem;
    padding: 0.62rem 0.72rem 0.62rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--aigate-primary-hover), var(--aigate-primary) 58%, #0ba978);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 16px 34px rgba(16, 185, 129, 0.22);
}

.aigate-page .server-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.32) inset,
        0 22px 42px rgba(16, 185, 129, 0.28);
}

.aigate-page .server-cta > :last-child {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
}

.aigate-page .server-faq-shell,
.aigate-page .server-footer-shell,
.aigate-page .shared-site-footer__shell {
    border-radius: var(--aigate-premium-radius-panel);
    box-shadow: var(--aigate-premium-shadow);
}

.aigate-page .server-faq-item {
    margin-inline: 0.65rem;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.aigate-page .server-faq-item + .server-faq-item {
    border-top-color: transparent;
}

.aigate-page .server-faq-item[open] {
    border-color: rgba(16, 185, 129, 0.2);
}

.aigate-page .server-faq-icon {
    border-radius: 10px;
}

@media (max-width: 900px) {
    .aigate-page .aigate-hero-feature {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .aigate-page {
        --aigate-premium-radius-card: 16px;
        --aigate-premium-radius-panel: 20px;
    }

    .aigate-page .server-page > header {
        box-sizing: border-box;
        width: calc(100% - 1rem);
        margin: 0.5rem;
        padding: 0.7rem !important;
        border-radius: 18px;
    }

    .aigate-page .server-header-brand {
        align-items: center !important;
    }

    .aigate-page [data-aigate-product-brand] {
        min-height: 2.45rem;
    }

    .aigate-page .aigate-product-radar {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 12px;
    }

    .aigate-page .server-header-breadcrumbs {
        padding-left: 0.65rem;
    }

    .aigate-page .server-header-actions {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.45rem !important;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .aigate-page .server-header-actions > * {
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 44px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-self: stretch;
    }

    .aigate-page .server-header-breadcrumbs a.server-header-btn {
        min-height: 44px !important;
    }

    .aigate-page .server-header-actions > :nth-child(1),
    .aigate-page .server-header-actions > :nth-child(2),
    .aigate-page .server-header-actions > :nth-child(3) {
        grid-column: span 2;
    }

    .aigate-page .server-header-actions > .server-material-btn {
        grid-column: span 3;
        justify-content: center;
    }

    .aigate-page .server-page > section:first-of-type {
        padding-top: 3rem !important;
    }

    .aigate-page .aigate-hero-features {
        gap: 0.72rem;
    }

    .aigate-page .aigate-hero-feature {
        padding: 1rem;
    }

    .aigate-page .aigate-hero-feature p,
    .aigate-page .aigate-hero-feature .aigate-code-tags {
        margin-left: 0;
    }

    .aigate-page .server-page > nav > div {
        width: 100%;
        padding: 0.32rem;
        border-radius: 16px;
    }

    .aigate-page .server-nav-chip {
        min-height: 3.25rem;
        border-radius: 12px !important;
    }

    .aigate-page .server-panel {
        border-radius: var(--aigate-premium-radius-panel) !important;
    }

    .aigate-page .aigate-footer-meta a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* Final cascade for the content refinement layer. */
.aigate-page .server-page > header,
.aigate-page.theme-light .server-page > header {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.aigate-page .aigate-hero-feature {
    min-height: 13.5rem;
    padding: 1.35rem 1.4rem 1.2rem;
}

.aigate-page .aigate-hero-feature h2 {
    letter-spacing: 0.025em;
}

.aigate-page .aigate-task-card {
    gap: 0.85rem;
    padding: 1.35rem !important;
}

.aigate-page .aigate-task-artifact {
    min-height: 4.25rem;
    padding: 0.65rem 0.78rem;
}

@media (max-width: 767px) {
    .aigate-page .aigate-hero-feature {
        min-height: 0;
        padding: 1.1rem;
    }

    .aigate-page .aigate-hero-feature p,
    .aigate-page .aigate-hero-feature-visual,
    .aigate-page .aigate-hero-feature .aigate-code-tags {
        margin-left: 0;
    }

    .aigate-page .aigate-task-card {
        padding: 1.1rem !important;
    }
}

@media (max-width: 600px) {
    .aigate-page .aigate-site-footer {
        padding-bottom: 7rem !important;
    }
}

/* AIGate control-plane modules in the hero. */
.aigate-page .aigate-control-module {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-width: 0;
    min-height: 22rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--aigate-border) 76%, var(--aigate-primary));
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.035), transparent 34%),
        color-mix(in srgb, var(--aigate-surface-solid) 94%, transparent);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 18px 44px rgba(2, 6, 23, 0.09);
    color: var(--aigate-text);
    text-align: left;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.aigate-page .aigate-control-module::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--aigate-teal), var(--aigate-primary) 62%, transparent);
}

.aigate-page .aigate-control-module:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow:
        0 1px 0 var(--aigate-premium-highlight) inset,
        0 24px 52px rgba(2, 6, 23, 0.14);
}

.aigate-page .aigate-control-module__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.65rem;
    padding: 0.72rem 1rem 0.68rem 1.2rem;
    border-bottom: 1px solid var(--aigate-border);
    background:
        linear-gradient(180deg, var(--aigate-premium-highlight), transparent),
        color-mix(in srgb, var(--aigate-surface-section) 88%, transparent);
    color: var(--aigate-text-dim);
    font-family: var(--ait-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.13em;
}

.aigate-page .aigate-control-module__state {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--aigate-primary);
    letter-spacing: 0.08em;
}

.aigate-page .aigate-control-module__state i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.07), 0 0 10px var(--aigate-primary-glow);
}

.aigate-page .aigate-control-module__copy {
    padding: 1.2rem 1.2rem 0.95rem;
}

.aigate-page .aigate-control-module__copy h2 {
    max-width: 20rem;
    margin: 0;
    color: var(--aigate-text);
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.aigate-page .aigate-control-module__copy p {
    margin: 0.72rem 0 0;
    color: var(--aigate-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.aigate-page .aigate-control-module__screen {
    align-self: end;
    min-width: 0;
    margin: 0 1.2rem 1rem;
    padding: 0.8rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--aigate-border) 76%, var(--aigate-primary));
    border-radius: 12px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        color-mix(in srgb, var(--aigate-bg) 76%, var(--aigate-surface-section));
    background-size: 12px 12px;
    box-shadow: 0 1px 0 var(--aigate-premium-highlight) inset;
    font-family: var(--ait-font-mono);
}

.aigate-page.theme-light .aigate-control-module__screen {
    background:
        linear-gradient(rgba(71, 85, 105, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.045) 1px, transparent 1px),
        rgba(248, 250, 252, 0.88);
    background-size: 12px 12px;
}

.aigate-page .aigate-mask-console {
    display: grid;
    gap: 0.5rem;
}

.aigate-page .aigate-mask-console__row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.aigate-page .aigate-mask-console__row span {
    color: var(--aigate-text-dim);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.aigate-page .aigate-mask-console__row code {
    min-width: 0;
    overflow: hidden;
    color: var(--aigate-text-muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aigate-page .aigate-mask-console__row.is-safe code {
    color: var(--aigate-primary);
}

.aigate-page .aigate-mask-console__flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.45rem;
}

.aigate-page .aigate-mask-console__flow i {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aigate-primary));
}

.aigate-page .aigate-mask-console__flow i:last-child {
    background: linear-gradient(90deg, var(--aigate-primary), transparent);
}

.aigate-page .aigate-mask-console__flow strong {
    padding: 0.22rem 0.4rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 6px;
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.aigate-page .aigate-agent-console {
    display: grid;
    gap: 0.85rem;
}

.aigate-page .aigate-agent-console__route {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.38rem;
}

.aigate-page .aigate-agent-console__route span,
.aigate-page .aigate-agent-console__route strong {
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--aigate-border);
    border-radius: 7px;
    color: var(--aigate-text-muted);
    font-size: 0.52rem;
    letter-spacing: 0.05em;
}

.aigate-page .aigate-agent-console__route strong {
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--aigate-primary-dim);
    color: var(--aigate-primary);
}

.aigate-page .aigate-agent-console__route i {
    height: 1px;
    background: linear-gradient(90deg, var(--aigate-border), var(--aigate-primary));
}

.aigate-page .aigate-agent-console__decision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.aigate-page .aigate-agent-console__decision span {
    padding: 0.34rem 0.25rem;
    border: 1px solid var(--aigate-border);
    border-radius: 7px;
    color: var(--aigate-text-dim);
    font-size: 0.5rem;
    text-align: center;
}

.aigate-page .aigate-agent-console__decision .is-current {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.08);
    color: var(--aigate-warning);
}

.aigate-page .aigate-audit-console {
    display: grid;
    gap: 0.45rem;
}

.aigate-page .aigate-audit-console > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    padding-bottom: 0.42rem;
    border-bottom: 1px solid color-mix(in srgb, var(--aigate-border) 64%, transparent);
    font-size: 0.57rem;
}

.aigate-page .aigate-audit-console > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.aigate-page .aigate-audit-console time {
    color: var(--aigate-text-dim);
}

.aigate-page .aigate-audit-console code {
    min-width: 0;
    overflow: hidden;
    color: var(--aigate-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aigate-page .aigate-audit-console strong {
    color: var(--aigate-primary);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
}

.aigate-page .aigate-control-module__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.7rem;
    padding: 0.65rem 1.2rem;
    border-top: 1px solid var(--aigate-border);
    background: color-mix(in srgb, var(--aigate-surface-section) 78%, transparent);
}

.aigate-page .aigate-control-module__footer .aigate-code-tags {
    margin: 0;
}

.aigate-page .aigate-control-module__footer .aigate-code-tags code {
    min-height: 1.28rem;
    padding-inline: 0.42rem;
    border-radius: 6px;
    font-size: 0.52rem;
}

.aigate-page .aigate-control-module__footer > span {
    color: var(--aigate-text-dim);
    font-family: var(--ait-font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .aigate-page .aigate-control-module {
        min-height: 0;
    }

    .aigate-page .aigate-control-module__screen {
        width: auto;
    }
}

@media (max-width: 480px) {
    .aigate-page .aigate-control-module {
        border-radius: 16px;
    }

    .aigate-page .aigate-control-module__bar,
    .aigate-page .aigate-control-module__copy,
    .aigate-page .aigate-control-module__footer {
        padding-inline: 1rem;
    }

    .aigate-page .aigate-control-module__screen {
        margin-inline: 1rem;
    }

    .aigate-page .aigate-control-module__footer > span {
        display: none;
    }
}

.aigate-page .server-page > header {
    box-sizing: border-box;
}
