:root {

    --site-max-width: 1420px;
    --header-height: 74px;

    --header-logo-box-size: 48px;
    --header-logo-width: 42px;
    --header-logo-height: 42px;

    --hero-image-height: 430px;

    --bg: #03142b;
    --bg-2: #062246;
    --panel: #081b35cc;
    --panel-2: #0a264acc;

    --text: #edf7ff;
    --muted: #a4c6df;
    --soft: #76b8dd;

    --cyan: #16d9ff;
    --aqua: #3ecbff;
    --blue: #2d78ff;
    --green: #2de6b6;
    --gold: #ffd98a;
    --red: #ff6c91;

    --line: rgba(110, 199, 255, 0.18);
    --line-strong: rgba(110, 199, 255, 0.28);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(22, 217, 255, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);

    --card-radius: 24px;
    --small-radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

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

    color: var(--text);

    background:
        radial-gradient(circle at 10% 10%, rgba(39, 208, 255, 0.10), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(45, 120, 255, 0.16), transparent 25%),
        radial-gradient(circle at 60% 85%, rgba(22, 217, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #021223 0%, #041b35 44%, #031224 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 80%);
    opacity: 0.12;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.page-shell {
    position: relative;
}

.blob,
.blob.two {
    position: fixed;
    z-index: -1;
    pointer-events: none;

    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.3;
}

.blob {
    width: 18rem;
    height: 18rem;
    top: 7rem;
    left: -4rem;
    background: rgba(22, 217, 255, 0.26);
}

.blob.two {
    width: 24rem;
    height: 24rem;
    top: 24rem;
    right: -5rem;
    background: rgba(45, 120, 255, 0.28);
}

.container {
    width: min(calc(100% - 2rem), var(--site-max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;

    background: rgba(3, 20, 43, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-mark {
    width: var(--header-logo-box-size);
    height: var(--header-logo-box-size);
    flex: 0 0 var(--header-logo-box-size);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.brand-mark img {
    width: var(--header-logo-width);
    max-width: 100%;

    height: auto;
    max-height: var(--header-logo-height);

    display: block;
    object-fit: cover;
    object-position: center;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;

    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.brand-copy span {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--muted);
    font-size: 0.86rem;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.dot {
    width: 0.6rem;
    height: 0.6rem;

    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0.25rem rgba(45, 230, 182, 0.15);
}

.btn {
    min-height: 48px;
    padding: 0 1.1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;

    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
    color: var(--text);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
    border: none;

    background: linear-gradient(
        135deg,
        rgba(22, 217, 255, 0.95),
        rgba(45, 120, 255, 0.95)
    );

    color: #c8eeff;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.90);
    box-shadow: 0 18px 40px rgba(17, 148, 255, 0.26);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.hero-card,
.hero-side,
.overview,
.controls,


.sidebar-card,
.policy-section,
.cta-footer {
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    background: linear-gradient(
        180deg,
        rgba(9, 32, 59, 0.82),
        rgba(5, 20, 39, 0.88)
    );

    box-shadow: var(--shadow);
}

.hero {
    padding: clamp(2rem, 5vw, 4rem) 0 1.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.95fr);
    gap: 1.25rem;

        align-items: start;
}

.hero-card {
    position: relative;
    overflow: hidden;

    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -35%;

    width: 18rem;
    height: 18rem;

    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(22, 217, 255, 0.18),
        transparent 65%
    );

    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    padding: 0.55rem 0.9rem;

    border: 1px solid rgba(22, 217, 255, 0.18);
    border-radius: 999px;

    background: rgba(22, 217, 255, 0.10);
    color: #ccf6ff;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 12ch;
    margin: 0.9rem 0 0.85rem;

    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.accent {
    background: linear-gradient(
        90deg,
        #ffffff,
        #9beeff 45%,
        #39d4ff 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 65ch;
    margin: 0;

    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.78;
}

.hero-actions {
    margin-top: 1.4rem;

    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 1.5rem;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat {
    padding: 1rem 1rem 1.05rem;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.04);
}

.stat strong {
    display: block;

    margin-bottom: 0.3rem;
    font-size: 1.6rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-side {
    padding: 1.35rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-scene {
    width: 100%;
    height: var(--hero-image-height);

    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;

    background: none;
}

.brand-scene::before,
.brand-scene::after {
    content: none;
    display: none;
}

.brand-scene .bubbles,
.brand-scene .scene-title {
    display: none;
}

.hero-og-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.panel-list {
    display: grid;
    gap: 0.75rem;
}

.info-row {
    padding: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);
}

.info-row small {
    display: block;

    margin-bottom: 0.35rem;

    color: var(--soft);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-row span {
    color: var(--muted);
    line-height: 1.6;
}

.overview {
    margin-top: 1.1rem;
    padding: 1rem;

    display: grid;
    grid-template-columns: 1.35fr minmax(250px, 0.95fr);
    align-items: center;
    gap: 1rem;
}

.overview-copy strong {
    display: block;

    margin-bottom: 0.35rem;
    font-size: 1.18rem;
}

.overview-copy p {
    margin: 0;

    color: var(--muted);
    line-height: 1.7;
}

.overview-chips {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.55rem 0.85rem;

    border-radius: 999px;

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

.chip-soft {
    border: 1px solid rgba(22, 217, 255, 0.18);
    background: rgba(22, 217, 255, 0.10);
    color: #d6fbff;
}

.chip-outline {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.content-grid {
    padding: 1.1rem 0 3.5rem;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.content-grid > * {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 92px;
    align-self: start;

    width: 100%;
    min-width: 0;
    max-width: 360px;

    display: grid;
    gap: 1rem;

    overflow: visible;
}

.sidebar-card {
    width: 100%;
    min-width: 0;
    padding: 1rem;
    overflow: hidden;
}

.side-link {
    width: 100%;
    min-width: 0;
}

.side-links::-webkit-scrollbar {
    display: none;
}

.side-link-copy {
    min-width: 0;
    flex: 1;
}

.sidebar-card h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.search-box {
    min-height: 52px;
    padding: 0 1rem;

    display: flex;
    align-items: center;
    gap: 1.75rem;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);
}

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;
    background: transparent;

    color: var(--text);
}

.search-box input::placeholder {
    color: #8db1cf;
}

.kbd {
    padding: 0.2rem 0.45rem;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;

    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);

    font-size: 0.75rem;
}

.side-links {
    width: 100%;
    min-width: 0;
    padding-right: 0.2rem;

    display: grid;
    gap: 0.55rem;

    overflow: visible;
}

.side-link {
    padding: 0.8rem 0.85rem;

    display: flex;
    align-items: center;
    gap: 0.8rem;

    border: 1px solid transparent;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.03);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.side-link:hover,
.side-link.active {
    transform: translateX(2px);

    border-color: rgba(22, 217, 255, 0.18);
    background: rgba(22, 217, 255, 0.08);
}

.side-link-index {
    width: 2rem;
    height: 2rem;
    flex: none;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(22, 217, 255, 0.12);
    color: #d1fbff;

    font-size: 0.8rem;
    font-weight: 800;
}

.side-link-copy {
    min-width: 0;
}

.side-link-copy strong {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 0.92rem;
}

.side-link-copy small {
    color: var(--muted);
}

.controls {
    margin-bottom: 1rem;
    padding: 1rem;

    display: grid;
    gap: 1rem;
}

.controls-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls-top h2 {
    margin: 0;
    font-size: 1.2rem;
}

.controls-top p {
    margin: 0.35rem 0 0;

    color: var(--muted);
    line-height: 1.6;
}

.controls-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.filter-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.75rem 1rem;

    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);

    font-weight: 700;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.filter-chip.active {
    border-color: rgba(22, 217, 255, 0.20);

    background: linear-gradient(
        135deg,
        rgba(22, 217, 255, 0.16),
        rgba(45, 120, 255, 0.18)
    );

    color: #e9fbff;
}

.results-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.sections-stack {
    display: grid;
    gap: 1rem;
}

.policy-section {
    overflow: hidden;
}

.section-head {
    width: 100%;
    padding: 1.15rem 1.2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    cursor: pointer;

    border: 0;
    background: none;
    color: inherit;

    text-align: left;
}

.section-head-main {
    min-width: 0;
}

.section-kicker {
    display: inline-block;

    margin-bottom: 0.55rem;

    color: var(--soft);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.section-badges {
    margin-top: 0.75rem;

    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.section-chevron {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(22, 217, 255, 0.07);
    color: var(--soft);
    font-size: 1.85rem;
    line-height: 1;
    transform: rotate(0deg);
    transform-origin: center;
    transition:
        transform 0.34s cubic-bezier(.2,.8,.2,1),
        background 0.2s ease,
        color 0.2s ease;
}

.section-head:hover .section-chevron {
    background: rgba(22, 217, 255, 0.12);
    color: #d7f8ff;
}

.section-head[aria-expanded="true"] .section-chevron {
    transform: rotate(90deg);
}

.section-panel {
    display: none;
    overflow: hidden;
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-description {
    margin-top: 1rem;
    padding: 1rem 1.05rem;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);

    line-height: 1.8;
}

.section-description p {
    margin: 0.3rem 0 0.8rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

.rules-grid {
    margin-top: 1rem;

    display: grid;
    gap: 0.75rem;
}

.rule-card {
    padding: 1rem;

    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.025)
    );

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.rule-card:hover {
    transform: translateY(-1px);

    border-color: var(--card-border-hover);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
}

.rule-number {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        rgba(22, 217, 255, 0.16),
        rgba(45, 120, 255, 0.18)
    );

    color: #ecfbff;

    font-size: 1.05rem;
    font-weight: 900;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.rule-copy h3 {
    margin: 0;

    font-size: 1rem;
    line-height: 1.45;
}

.rule-copy p {
    margin: 0.45rem 0 0;

    color: var(--muted);
    line-height: 1.65;
}

.rule-tag {
    min-width: 160px;
    padding: 0.7rem 0.95rem;

    align-self: center;
    justify-self: end;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.05);
    color: #dcf6ff;

    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
}

.rule-tag.ban {
    border-color: rgba(45, 120, 255, 0.22);
    background: rgba(45, 120, 255, 0.12);
    color: #dff0ff;
}

.rule-tag.mute {
    border-color: rgba(255, 217, 138, 0.20);
    background: rgba(255, 217, 138, 0.12);
    color: #ffeac0;
}

.rule-tag.blacklist {
    border-color: rgba(255, 108, 145, 0.20);
    background: rgba(255, 108, 145, 0.12);
    color: #ffd2dd;
}

.empty-state {
    display: none;

    padding: 1.2rem;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);

    line-height: 1.7;
    text-align: center;
}

.cta-footer {
    margin-top: 1rem;
    padding: 1.1rem 1.2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-footer h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.cta-footer p {
    margin: 0;

    color: var(--muted);
    line-height: 1.65;
}

.footer {
    padding: 0 0 2.3rem;
}

.footer-bar {
    margin-top: 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;

    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .hero-grid,
    .overview,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: auto;
        max-width: none;
        overflow: visible;
    }

    .overview-chips {
        justify-content: flex-start;
    }

    .brand-scene {
        height: auto;
        aspect-ratio: 1200 / 630;
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        padding: 0.75rem 0;

        align-items: flex-start;
        flex-wrap: wrap;
    }

    .top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-copy span {
        max-width: 190px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .controls-top {
        align-items: flex-start;
    }

    .rule-card {
        grid-template-columns: 1fr;
    }

    .rule-tag {
        min-width: 0;
        justify-self: start;
    }

    .cta-footer,
    .footer-bar {
        align-items: flex-start;
    }

    .brand-scene {
        min-height: 220px;
    }
}

html {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

body {
    overflow-x: hidden;
}


@media (prefers-reduced-motion: reduce) {
    .ocean-scrollbar,
    .ocean-scrollbar-thumb {
        transition: none;
    }
}

.static-section-head {
    padding: 1.15rem 1.2rem 0;
}

.static-section-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.static-section-content {
    padding: 0 1.2rem 1.2rem;
}

#premessa {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(circle at 88% 10%, rgba(255, 108, 145, 0.12), transparent 34%),
        linear-gradient(270deg, rgba(138, 4, 21, 0.9), rgba(45, 8, 15, 0.95));

    border: 1px solid rgba(255, 96, 120, 0.28);
    border-radius: var(--card-radius);
    box-shadow:
        inset 0 0 0 1px rgba(255, 96, 120, 0.08),
        var(--shadow);
}

#premessa .static-section-head,
#premessa .static-section-content,
#premessa .section-description {
    position: relative;
    z-index: 1;
}

.allowed-clients {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.allowed-clients > span {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(110, 199, 255, 0.14);
    border-radius: 12px;
    background: rgba(22, 217, 255, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
}

.allowed-clients b {
    margin-left: 0.35rem;
    color: var(--green);
    font-size: 0.72rem;
    text-transform: uppercase;
}
/* ==========================================================
   OceanMC Public Release polish
   ========================================================== */

:root {
    --ease-ocean: cubic-bezier(.2,.8,.2,1);
    --header-scrolled-bg: rgba(2, 15, 32, 0.84);
}

html {
    scroll-padding-top: 96px;
}

body {
    position: relative;
}

::selection {
    background: rgba(22, 217, 255, 0.25);
    color: #fff;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(22, 217, 255, 0.9);
    outline-offset: 3px;
}

.topbar {
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.topbar.is-scrolled {
    background: var(--header-scrolled-bg);
    border-bottom-color: rgba(110, 199, 255, 0.12);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(22px) saturate(125%);
}

.hero-card,
.hero-side,
.overview,
.controls,
.sidebar-card,
.policy-section,
.cta-footer {
    isolation: isolate;
}

.hero-card,
.hero-side {
    will-change: transform;
}

.hero-card::before,
.policy-section::before,
.rule-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background:
        radial-gradient(
            420px circle at var(--mx, 50%) var(--my, 50%),
            rgba(22, 217, 255, 0.09),
            transparent 48%
        );
}

.hero-card:hover::before,
.policy-section:hover::before,
.rule-card:hover::before {
    opacity: 1;
}

.policy-section,
.rule-card {
    position: relative;
}

.policy-section > *,
.rule-card > * {
    position: relative;
    z-index: 1;
}

.hero-og-image {
    transform: scale(1.015);
    will-change: transform;
}

.search-box {
    position: relative;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.search-box:focus-within {
    transform: translateY(-1px);
    border-color: rgba(22, 217, 255, 0.34);
    background: rgba(22, 217, 255, 0.055);
    box-shadow: 0 0 0 4px rgba(22, 217, 255, 0.06);
}

.side-link {
    position: relative;
    overflow: hidden;
}

.side-link::after {
    content: "";
    position: absolute;
    inset: auto 12px 5px 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22,217,255,.65), transparent);
    transform: scaleX(0);
    opacity: 0;
    transition: transform .25s var(--ease-ocean), opacity .25s ease;
}

.side-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.filter-chip,
.allowed-clients > span {
    transition:
        transform .2s var(--ease-ocean),
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.filter-chip:hover,
.allowed-clients > span:hover {
    transform: translateY(-2px);
}

.allowed-clients > span:hover {
    border-color: rgba(22, 217, 255, 0.28);
    background: rgba(22, 217, 255, 0.10);
    color: #dffaff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.rule-card {
    overflow: hidden;
    transform: translateZ(0);
}

.rule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -45%;
    width: 30%;
    height: 340%;
    transform: rotate(24deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
    transition: left .6s var(--ease-ocean);
    pointer-events: none;
}

.btn:hover::after {
    left: 125%;
}

.reading-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 100;
    pointer-events: none;
}

.reading-progress__bar {
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--cyan), var(--aqua), var(--blue));
    box-shadow: 0 0 14px rgba(22, 217, 255, .45);
    will-change: transform;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 120;
    max-width: min(92vw, 440px);
    padding: .78rem 1rem;
    border: 1px solid rgba(110, 199, 255, .18);
    border-radius: 14px;
    background: rgba(4, 22, 43, .92);
    color: #e9faff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px) scale(.98);
    pointer-events: none;
}

.ocean-scrollbar {
    position: fixed;
    z-index: 90;
    top: 86px;
    right: 5px;
    bottom: 12px;
    width: 7px;
    opacity: .62;
    transition: opacity .22s ease;
    pointer-events: none;
}

.ocean-scrollbar:hover,
.ocean-scrollbar.is-dragging {
    opacity: 1;
}

.ocean-scrollbar.is-hidden {
    opacity: 0;
}

.ocean-scrollbar-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(7, 25, 45, .16);
    box-shadow: inset 0 0 0 1px rgba(110, 199, 255, .045);
}

.ocean-scrollbar-thumb {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22,217,255,.95), rgba(45,120,255,.92));
    box-shadow:
        0 0 12px rgba(22,217,255,.20),
        inset 0 1px 0 rgba(255,255,255,.28);
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    will-change: transform, height;
}

.ocean-scrollbar-thumb:active {
    cursor: grabbing;
}

.section-head {
    transition: background .2s ease;
}

.section-head:hover {
    background: rgba(255,255,255,.018);
}

.section-panel {
    will-change: height, opacity;
}

.hero-stats .stat {
    transition:
        transform .25s var(--ease-ocean),
        border-color .25s ease,
        background .25s ease;
}

.hero-stats .stat:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 217, 255, .16);
    background: rgba(255,255,255,.055);
}

@media (max-width: 760px) {
    .ocean-scrollbar {
        display: none;
    }

    .site-toast {
        bottom: 18px;
    }

    .hero-card::before,
    .policy-section::before,
    .rule-card::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .hero-og-image,
    .hero-card,
    .hero-side,
    .policy-section,
    .rule-card {
        transform: none !important;
    }
}




/* Glow rosso dedicato alla sezione "Validità delle regole" */
#premessa::before {
    background:
        radial-gradient(
            420px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 58, 88, 0.22),
            transparent 50%
        ) !important;
}

#premessa:hover::before {
    opacity: 1;
}
