@font-face {
    font-family: universalSans;
    src: url(/fonts/UniversalSans_Text_400.woff2) format("woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: universalSans;
    src: url(https://x.ai/_next/static/media/UniversalSans_Text_550-s.p.0v0vvoupxwn1c.woff2) format("woff2");
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: universalSans;
    src: url(https://x.ai/_next/static/media/UniversalSans_Text_550-s.p.0v0vvoupxwn1c.woff2) format("woff2");
    font-display: swap;
    font-weight: 550;
    font-style: normal;
}

@font-face {
    font-family: "universalSans Fallback";
    src: local(Arial);
    ascent-override: 89.92%;
    descent-override: 22.73%;
    line-gap-override: 0%;
    size-adjust: 105.67%;
}

/*
 * Primary hero CTA — solid black pill, sibling to nav outline pills.
 * Same family as site-nav (Universal Sans · rounded-full); stronger fill
 * so hierarchy stays clear: nav outline = secondary, hero fill = primary.
 */
.hero-arrow-link,
.ame-hero-copy .hero-arrow-link {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    margin: 0;
    overflow-wrap: break-word;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: "universalSans", "universalSans Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.9375rem; /* 15px — between nav 14px and title scale */
    line-height: 1.25rem;
    width: fit-content;
    letter-spacing: normal;
    gap: 0.5rem;
    height: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 0;
    padding: 0.75rem 1.25rem; /* py-3 px-5 — roomy primary pill */
    color: #fff;
    background-color: #000;
    transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    font-synthesis: none;
    overflow-anchor: none;
}

.hero-arrow-link:hover,
.ame-hero-copy .hero-arrow-link:hover {
    color: #fff;
    background-color: #000;
    filter: brightness(0.9);
}

.hero-arrow-link:hover:not(:focus-visible),
.ame-hero-copy .hero-arrow-link:hover:not(:focus-visible) {
    border: 0;
}

/* Animated chevron — inherits button text color */
.hero-arrow-link .xai-arrow-icon,
.ame-hero-copy .hero-arrow-link .xai-arrow-icon {
    box-sizing: border-box;
    display: block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.hero-arrow-link .xai-arrow-icon--animated,
.ame-hero-copy .hero-arrow-link .xai-arrow-icon--animated {
    width: 1rem;
    height: 1rem;
}

.hero-arrow-link .xai-arrow-icon line,
.ame-hero-copy .hero-arrow-link .xai-arrow-icon line {
    stroke: currentColor;
}

.hero-arrow-link:focus,
.ame-hero-copy .hero-arrow-link:focus {
    outline: none;
}

.hero-arrow-link:focus-visible,
.hero-arrow-link[data-focus],
.ame-hero-copy .hero-arrow-link:focus-visible,
.ame-hero-copy .hero-arrow-link[data-focus] {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.hero-arrow-link__hit-area {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 2.75rem);
    height: max(100%, 2.75rem);
    transform: translate(-50%, -50%);
}

@media (pointer: fine) {
    .hero-arrow-link__hit-area {
        display: none;
    }
}

.hero-arrow-link[data-disabled],
.hero-arrow-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/*
 * Secondary hero CTA — outline pill (nav Contact Sales language).
 * Defers visual weight to the solid primary “Video Library” action.
 */
.hero-arrow-link--secondary,
.ame-hero-copy .hero-arrow-link--secondary {
    color: hsl(var(--primary, 0 0% 4%));
    background-color: transparent;
    border: 0;
    box-shadow: 0 0 0 1px hsl(var(--primary, 0 0% 4%) / 0.15);
    filter: none;
}

.hero-arrow-link--secondary:hover,
.ame-hero-copy .hero-arrow-link--secondary:hover {
    color: hsl(var(--primary, 0 0% 4%));
    background-color: hsl(var(--primary, 0 0% 4%) / 0.05);
    filter: none;
}

.hero-arrow-link--secondary:hover:not(:focus-visible),
.ame-hero-copy .hero-arrow-link--secondary:hover:not(:focus-visible) {
    box-shadow: 0 0 0 1px hsl(var(--primary, 0 0% 4%) / 0.15);
}

/* Reset button chrome when primary uses <button> */
button.hero-arrow-link {
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
