/* AIBALL muted cinematic palette: soft blue #6ad9ff -> lavender #a98aff.
   All surface, gradient, hover and glow accents are deliberately low-saturation. */

:root {
    --color-primary: #6ad9ff;
    --color-primary-rgb: 106,217,255;
    --aiball-indigo: #6ad9ff;
    --aiball-accent: linear-gradient(90deg, #6ad9ff 0%, #a98aff 100%);
    --bs-primary: #6ad9ff;
    --bs-primary-rgb: 106,217,255;
}

/* Cinematic-tech wordmark: violet-to-indigo AI and white BALL without underline. */
.aiball-wordmark {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    text-decoration: none;
    font-family: "Switzer", "Roboto", Arial, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    vertical-align: middle;
}
.aiball-wordmark__ai {
    color: #bba5ff;
    background-image: linear-gradient(100deg, #bba5ff, #6ad9ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.aiball-wordmark__ball {
    color: #FFFFFF;
}
.header__wrapper .header__logo .aiball-wordmark {
    font-size: 38px;
}
.flyoutMenu .flyout__inner .menu__header-top .brand__logo {
    max-width: none;
}
.flyoutMenu .brand__logo .aiball-wordmark {
    font-size: 30px;
}
.footer__widget .logo .aiball-wordmark {
    font-size: 40px;
}
@media (max-width: 1440px) {
    .header__wrapper .header__logo .aiball-wordmark { font-size: 33px; }
}
@media (max-width: 479px) {
    .header__wrapper .header__logo .aiball-wordmark { font-size: 27px; }
    .flyoutMenu .brand__logo .aiball-wordmark { font-size: 27px; }
}
@media (max-width: 767px) {
    .footer__widget .logo { text-align: center; }
}

/* Only important CTAs get the gradient. All other accents stay solid violet. */
.btn-primary,
.btn-white.active,
.btn-outline:hover,
.btn-outline:focus {
    background-color: #a98aff;
    background-image:none;
    border-color: #a98aff;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary.active {
    background-image: none;
    background-color: #fff;
    border-color: #fff;
    color: #111;
}

.btn-white.active:hover,
.btn-white.active:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: #a98aff;
}

.marked {
    background-color: #a98aff !important;
}

/* Keyboard focus remains readable independently of the gradient. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid #bba5ff;
    outline-offset: 3px;
}


/* Next-gen-tech: luminous cyan detail, restrained dark glass surfaces. */
:root {
    --aiball-cyan: #6ad9ff;
    --aiball-glass: rgba(12, 16, 31, 0.65);
    --aiball-glass-border: rgba(173, 197, 255, 0.15);
}
.header {
    background: rgba(6, 9, 19, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    border-bottom: 1px solid rgba(149, 154, 248, 0.13);
}
.header__wrapper .header__menu .main__menu li .sub__menu {
    background: rgba(12, 16, 31, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--aiball-glass-border);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}
.flyoutMenu .flyout__flip {
    background: rgba(9, 13, 26, 0.94);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--aiball-glass-border);
}
.aiball-home {
    background: #050711;
    color: #fff;
    overflow: hidden;
}
.aiball-home__hero {
    position: relative;
    min-height: clamp(590px, 82vh, 820px);
    display: flex;
    align-items: flex-end;
    background: #070d1b;
    isolation: isolate;
}
.aiball-home__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--aiball-hero-image);
    background-position: center 38%;
    background-size: cover;
}
.aiball-home__hero--empty {
    background: radial-gradient(ellipse at 80% 30%, rgba(106,217,255, 0.17), transparent 36%),
                radial-gradient(ellipse at 35% 45%, rgba(169,138,255, 0.28), transparent 52%),
                #080b16;
}
.aiball-home__hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(3, 5, 15, .86) 0%, rgba(5, 7, 18, .6) 46%, rgba(5, 7, 18, .2) 88%),
                linear-gradient(0deg, #050711 0%, transparent 37%, rgba(5, 7, 18, .1) 100%);
}
.aiball-home__hero-inner {
    width: 100%;
    padding-top: 120px;
    padding-bottom: 78px;
}
.aiball-home__hero-content {
    max-width: 735px;
    padding: clamp(24px, 3vw, 44px);
    background: rgba(5, 9, 21, 0.48);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(177, 182, 255, .18);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.aiball-home__eyebrow,
.aiball-home__section-kicker,
.aiball-home__path-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #A8B3DB;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .18em;
}
.aiball-home__signal {
    height: 7px;
    width: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--aiball-cyan);
    box-shadow: 0 0 13px rgba(106,217,255, .56);
}
.aiball-home__hero-category {
    display: block;
    margin: 27px 0 9px;
    color: var(--aiball-cyan);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: 13px;
}
.aiball-home__hero h1 {
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    font-size: clamp(46px, 5.4vw, 86px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin: 0 0 19px;
    color: #fff;
    overflow-wrap: break-word;
}
.aiball-home__hero-description {
    color: #C4CDDE;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
    max-width: 565px;
    margin: 0 0 22px;
}
.aiball-home__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #D9DDF1;
    font-size: 13px;
    margin-bottom: 22px;
}
.aiball-home__meta span {
    padding: 5px 11px;
    border: 1px solid rgba(218, 222, 255, .16);
    border-radius: 30px;
    background: rgba(25, 31, 51, .52);
}
.aiball-home__hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.aiball-home__hero-actions > .btn {
    white-space: nowrap;
}
.aiball-home__detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #E9EBFF;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.aiball-home__detail-link:hover,
.aiball-home__section-heading > a:hover,
.aiball-home__series-empty > a:hover {
    color: var(--aiball-cyan);
}
.aiball-home__content {
    padding-bottom: 58px;
}
.aiball-home__paths {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: -28px;
    margin-bottom: 75px;
    z-index: 1;
}
.aiball-home__path {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 218px;
    border: 1px solid rgba(168, 184, 255, .2);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
    background: linear-gradient(125deg, rgba(32, 25, 70, .82), rgba(10, 17, 39, .8));
    -webkit-backdrop-filter: blur(17px) saturate(130%);
    backdrop-filter: blur(17px) saturate(130%);
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.aiball-home__path--series {
    background: linear-gradient(125deg, rgba(13, 46, 67, .75), rgba(16, 14, 48, .84));
}
.aiball-home__path::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 225px;
    height: 225px;
    border-radius: 50%;
    background: rgba(169,138,255, .18);
    filter: blur(55px);
    right: -40px;
    bottom: -100px;
}
.aiball-home__path--series::after {
    background: rgba(106,217,255, .17);
}
.aiball-home__path:hover {
    color: #fff;
    border-color: rgba(113, 219, 247, .65);
    transform: translateY(-3px);
}
.aiball-home__path-icon {
    position: absolute;
    right: clamp(22px, 3vw, 35px);
    top: 40px;
    color: rgba(167, 139, 250, .83);
    font-size: 54px;
}
.aiball-home__path--series .aiball-home__path-icon {
    color: rgba(106,217,255, .8);
}
.aiball-home__path strong {
    position: relative;
    z-index: 1;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 4vw, 53px);
    letter-spacing: .055em;
    line-height: 1;
}
.aiball-home__path-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #CDD6E7;
    font-size: 13px;
}
.aiball-home__path-bottom i { color: var(--aiball-cyan); font-size: 20px; }
.aiball-home__catalog {
    margin-bottom: 72px;
}
.aiball-home__section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 25px;
}
.aiball-home__section-heading h2 {
    margin: 4px 0 0;
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(29px, 3.4vw, 43px);
    letter-spacing: -.02em;
    color: #fff;
}
.aiball-home__dot { color: var(--aiball-cyan); }
.aiball-home__section-heading > a {
    color: #CCD4EB;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.aiball-home__cards {
    display: grid;
    grid-auto-columns: minmax(185px, 205px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 15px;
    scrollbar-color: rgba(169,138,255, .5) transparent;
    scrollbar-width: thin;
}
.aiball-home__card {
    scroll-snap-align: start;
    display: block;
    border: 1px solid rgba(171, 190, 249, .15);
    background: rgba(15, 20, 38, .85);
    border-radius: 13px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.aiball-home__card:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: rgba(106,217,255, .55);
    box-shadow: 0 9px 35px rgba(60, 77, 215, .17);
}
.aiball-home__card-image {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0E162A;
}
.aiball-home__card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.aiball-home__card-type {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 6px 9px;
    border: 1px solid rgba(175, 201, 255, .32);
    background: rgba(9, 15, 31, .63);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #F4F5FF;
    font-size: 10px;
    letter-spacing: .13em;
    border-radius: 6px;
    font-weight: 700;
}
.aiball-home__card-info {
    min-height: 92px;
    padding: 14px;
    border-top: 1px solid rgba(171, 190, 249, .1);
}
.aiball-home__card-info h3 {
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-size: 19px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aiball-home__card-sub {
    color: #9FAFCB;
    font-size: 12px;
}
.aiball-home__series-empty {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 29px 33px;
    border: 1px solid var(--aiball-glass-border);
    border-radius: 17px;
    background: linear-gradient(110deg, rgba(17, 35, 57, .6), rgba(22, 17, 47, .58));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.aiball-home__series-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 61px;
    height: 61px;
    color: var(--aiball-cyan);
    background: rgba(106,217,255, .09);
    border-radius: 12px;
    font-size: 31px;
}
.aiball-home__series-empty strong { color: #fff; font-size: 19px; }
.aiball-home__series-empty p { color: #9FAFCB; margin: 6px 0 0; font-size: 14px; }
.aiball-home__series-empty > a { margin-left: auto; flex: 0 0 auto; color: #D8E1F1; font-weight: 700; font-size: 13px; }
.aiball-home__manifesto {
    padding: 52px 20px 28px;
    text-align: center;
    border-top: 1px solid rgba(153, 164, 226, .13);
}
.aiball-home__manifesto > span:first-child {
    color: var(--aiball-cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
}
.aiball-home__manifesto p {
    color: #DDE1F1;
    margin: 12px 0 15px;
    font-size: clamp(23px, 3vw, 37px);
    font-weight: 300;
}
.aiball-home__manifesto strong { color: #fff; font-weight: 800; }
.aiball-home__manifesto-line {
    display: block;
    height: 2px;
    width: 95px;
    margin: auto;
    background: linear-gradient(90deg, #6ad9ff 0%, #a98aff 100%);
}
@media (max-width: 767px) {
    .aiball-home__hero { min-height: 660px; }
    .aiball-home__hero-inner { padding-top: 115px; padding-bottom: 60px; }
    .aiball-home__hero-content { padding: 23px; }
    .aiball-home__paths { gap: 12px; margin-top: -25px; margin-bottom: 48px; }
    .aiball-home__path { min-height: 190px; padding: 21px; }
    .aiball-home__path-icon { font-size: 35px; top: 39px; right: 20px; }
    .aiball-home__path-bottom { font-size: 11px; }
    .aiball-home__catalog { margin-bottom: 48px; }
    .aiball-home__cards { grid-auto-columns: minmax(150px, 175px); gap: 12px; }
    .aiball-home__series-empty { gap: 15px; flex-wrap: wrap; padding: 22px; }
    .aiball-home__series-empty > a { width: 100%; margin-left: 0; }
}
@media (max-width: 500px) {
    .aiball-home__hero { min-height: 665px; }
    .aiball-home__hero h1 { font-size: 47px; }
    .aiball-home__paths { grid-template-columns: 1fr; }
    .aiball-home__path { min-height: 160px; }
    .aiball-home__hero-content { background: rgba(7, 11, 24, .65); }
}
@media (prefers-reduced-motion: reduce) {
    .aiball-home__path, .aiball-home__card { transition: none; }
    .aiball-home__path:hover, .aiball-home__card:hover { transform: none; }
}


/* Single luminous accent: Electric Cyan. No flashing or continuous animations. */
.aiball-home__signal {
    box-shadow: 0 0 12px rgba(106,217,255, .8),
                0 0 27px rgba(106,217,255, .27);
}
.aiball-home__hero-category,
.aiball-home__dot {
    text-shadow: 0 0 15px rgba(106,217,255, .38);
}
.aiball-home__path--series {
    border-color: rgba(106,217,255, .32);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3),
                0 0 25px rgba(106,217,255, .13);
}
.aiball-home__path--series .aiball-home__path-icon,
.aiball-home__series-icon {
    text-shadow: 0 0 20px rgba(106,217,255, .34);
}
.aiball-home__path--series:hover,
.aiball-home__path--series:focus-visible {
    border-color: rgba(106,217,255, .82);
    box-shadow: 0 0 0 1px rgba(106,217,255, .27),
                0 0 32px rgba(106,217,255, .25),
                0 18px 42px rgba(0, 0, 0, .34);
}
.aiball-home__card:hover,
.aiball-home__card:focus-visible {
    border-color: rgba(106,217,255, .82);
    box-shadow: 0 0 0 1px rgba(106,217,255, .22),
                0 0 25px rgba(106,217,255, .19),
                0 16px 37px rgba(0, 0, 0, .29);
}
.aiball-home__series-empty {
    box-shadow: inset 0 0 30px rgba(106,217,255, .04);
}
.aiball-home__manifesto-line {
    box-shadow: 0 0 16px rgba(106,217,255, .26);
}
