/* Homepage refresh — Saison IV */

:root {
    --home-gold: #f0ca52;
    --home-gold-soft: #ffe69a;
    --home-ink: #060812;
    --home-panel: rgba(11, 14, 27, 0.86);
    --home-line: rgba(240, 202, 82, 0.22);
    --home-arcane: #8f82ef;
    --home-arcane-soft: #c9c4ff;
    --home-azure: #62bfd8;
    --home-coral: #d7747e;
}

.section-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--home-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    min-height: 780px;
    isolation: isolate;
    justify-content: stretch;
}

.video-background video {
    filter: saturate(1.12) brightness(0.6) contrast(1.08) hue-rotate(-4deg);
}

.video-overlay {
    background:
        radial-gradient(circle at 78% 34%, rgba(57, 134, 178, 0.18), transparent 30%),
        radial-gradient(circle at 60% 72%, rgba(106, 73, 188, 0.12), transparent 34%),
        linear-gradient(90deg, rgba(3, 6, 18, 0.9) 0%, rgba(7, 10, 28, 0.62) 45%, rgba(4, 18, 32, 0.18) 78%, rgba(8, 9, 26, 0.38) 100%),
        linear-gradient(180deg, rgba(3, 5, 16, 0.36) 0%, transparent 34%, rgba(4, 6, 19, 0.78) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, rgba(111, 91, 210, 0.1), transparent 34%),
        radial-gradient(ellipse at 86% 12%, rgba(71, 163, 192, 0.13), transparent 31%);
    mix-blend-mode: screen;
}

.hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: auto;
    right: 8%;
    bottom: -12%;
    left: auto;
    width: 520px;
    height: 520px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(86, 176, 207, 0.14), rgba(115, 83, 202, 0.08) 42%, transparent 69%);
    mix-blend-mode: screen;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.55fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    width: min(90%, 1320px);
    max-width: 1320px;
    height: auto;
    margin: 0 auto;
    padding: 130px 0 100px;
    text-align: left;
}

.hero-main {
    max-width: 780px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    color: var(--home-arcane-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-kicker i {
    color: var(--home-azure);
    font-size: 0.55rem;
    transform: rotate(45deg);
}

.hero-title {
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: clamp(3.2rem, 5.3vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-transform: none;
    text-wrap: balance;
}

.hero-title span {
    color: transparent;
    background: linear-gradient(105deg, #f7f8ff 0%, #b9b7ff 38%, #6fc9df 72%, #d3c8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 32px rgba(101, 157, 218, 0.16);
}

.hero-content .hero-lead {
    max-width: 670px;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.75;
    text-shadow: none;
}

.hero-buttons {
    justify-content: flex-start;
    gap: 1rem;
    margin: 0;
}

.hero-buttons .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.85rem 1.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.hero-buttons .cta-button i {
    flex: 0 0 auto;
    width: 1em;
    margin: 0;
    line-height: 1;
    text-align: center;
}

.hero-buttons .cta-button.secondary {
    border-color: rgba(143, 130, 239, 0.56);
    color: var(--home-arcane-soft);
    background: linear-gradient(135deg, rgba(98, 191, 216, 0.08), rgba(143, 130, 239, 0.09));
    box-shadow: inset 0 0 24px rgba(143, 130, 239, 0.035);
}

.hero-buttons .cta-button.secondary:hover {
    border-color: var(--home-arcane-soft);
    color: #fff;
    background: linear-gradient(135deg, rgba(98, 191, 216, 0.17), rgba(143, 130, 239, 0.2));
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-facts i {
    color: var(--home-azure);
}

.hero-facts li:nth-child(2) i {
    color: var(--home-arcane-soft);
}

.hero-facts li:nth-child(3) i {
    color: var(--home-coral);
}

.hero-season-card {
    position: relative;
    align-self: center;
    padding: 2rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(98, 191, 216, 0.1), transparent 36%),
        linear-gradient(145deg, rgba(15, 18, 39, 0.93), rgba(8, 10, 24, 0.82));
    border: 1px solid rgba(143, 130, 239, 0.42);
    border-radius: 2px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(14px);
}

.hero-season-card::before,
.hero-season-card::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
}

.hero-season-card::before {
    top: 9px;
    left: 9px;
    border-top: 1px solid var(--home-azure);
    border-left: 1px solid var(--home-azure);
}

.hero-season-card::after {
    right: 9px;
    bottom: 9px;
    border-right: 1px solid var(--home-arcane-soft);
    border-bottom: 1px solid var(--home-arcane-soft);
}

.season-card-label {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.season-card-number {
    position: absolute;
    top: 0.65rem;
    right: 1.25rem;
    color: rgba(143, 130, 239, 0.13);
    font-family: 'Cinzel', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
}

.hero-season-card h2 {
    position: relative;
    margin: 2.3rem 0 1rem;
    color: #d9dcff;
    font-size: 1.65rem;
}

.hero-content .hero-season-card p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.7;
    text-shadow: none;
}

.hero-season-card > a {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-season-card > a i {
    margin-left: 0.5rem;
    color: var(--home-azure);
    transition: transform 0.25s ease;
}

.hero-season-card > a:hover i {
    transform: translateX(4px);
}

.season-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.scroll-down {
    bottom: 24px;
}

.scroll-down a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
}

/* Introduction */
.intro-section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: var(--home-ink);
    isolation: isolate;
}

.intro-section::before {
    z-index: -1;
    background:
        radial-gradient(circle at 82% 18%, rgba(69, 151, 190, 0.14), transparent 30%),
        radial-gradient(circle at 12% 72%, rgba(116, 81, 196, 0.1), transparent 34%),
        linear-gradient(90deg, rgba(6, 9, 20, 0.92) 0%, rgba(7, 10, 23, 0.76) 46%, rgba(6, 9, 18, 0.58) 100%),
        linear-gradient(180deg, rgba(8, 9, 20, 0.32), rgba(6, 8, 18, 0.82)),
        url('../images/illu/champs.jpg') center 44%/cover no-repeat;
}

.intro-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.13;
    background-image: linear-gradient(rgba(112, 153, 208, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 123, 222, 0.1) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.intro-shell {
    width: min(90%, 1240px);
    max-width: 1240px;
}

.intro-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.intro-text h2 {
    margin: 0 0 1.3rem;
    color: #fff;
    font-size: clamp(2.5rem, 4.3vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-transform: none;
}

.intro-section .section-eyebrow {
    color: var(--home-azure);
}

.intro-text .intro-lead {
    max-width: 700px;
    margin-bottom: 1.5rem;
    color: #c8c9f2;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.55;
}

.intro-text > p:not(.intro-lead) {
    max-width: 720px;
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 1rem;
    line-height: 1.8;
}

.intro-buttons {
    gap: 1.5rem;
    margin-top: 1.8rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--home-azure);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-link.muted {
    color: var(--home-arcane-soft);
}

.text-link:hover {
    color: #fff;
}

.server-info-card {
    min-width: 0;
    padding: 0;
    background:
        radial-gradient(circle at 90% 4%, rgba(98, 191, 216, 0.09), transparent 34%),
        rgba(10, 13, 29, 0.94);
    border: 1px solid rgba(143, 130, 239, 0.3);
    border-radius: 3px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.server-card-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.server-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(80, 73, 176, 0.08), rgba(44, 135, 168, 0.12)),
        linear-gradient(180deg, transparent 18%, rgba(10, 13, 29, 0.95) 100%);
}

.server-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.server-card-visual span {
    position: absolute;
    z-index: 1;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
}

.server-card-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem 1.4rem 0.75rem;
}

.server-card-heading .status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
}

.server-card-heading small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.server-card-heading h3 {
    margin: 0;
    color: var(--home-arcane-soft);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.server-details {
    gap: 0;
    padding: 0 1.4rem;
}

.detail-item {
    gap: 0.9rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.detail-item i {
    color: var(--home-azure);
    font-size: 0.88rem;
}

.detail-item:nth-child(even) i {
    color: var(--home-arcane-soft);
}

.detail-item span {
    display: grid;
    gap: 0.05rem;
}

.detail-item small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-item strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
}

.server-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.8rem 1.4rem 1.4rem;
    padding: 0.85rem;
    color: #080a14;
    background: var(--home-gold);
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.server-card-cta:hover {
    background: var(--home-gold-soft);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(4rem, 7vw, 6rem);
    border-top: 1px solid rgba(130, 135, 218, 0.24);
    border-bottom: 1px solid rgba(130, 135, 218, 0.24);
}

.experience-card {
    --experience-accent: var(--home-azure);
    position: relative;
    min-height: 290px;
    padding: 2rem 1.6rem 1.65rem;
    border-right: 1px solid rgba(130, 135, 218, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.experience-card:nth-child(2) {
    --experience-accent: var(--home-arcane-soft);
}

.experience-card:nth-child(3) {
    --experience-accent: var(--home-coral);
}

.experience-card:nth-child(4) {
    --experience-accent: #78c79d;
}

.experience-card:first-child {
    border-left: 1px solid rgba(130, 135, 218, 0.2);
}

.experience-card:hover {
    z-index: 1;
    background: linear-gradient(180deg, color-mix(in srgb, var(--experience-accent) 10%, transparent), color-mix(in srgb, var(--experience-accent) 2%, transparent));
}

.experience-card > i {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 1.5rem;
    place-items: center;
    color: var(--experience-accent);
    border: 1px solid color-mix(in srgb, var(--experience-accent) 38%, transparent);
    background: color-mix(in srgb, var(--experience-accent) 6%, transparent);
    border-radius: 50%;
}

.experience-index {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: rgba(255, 255, 255, 0.22);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
}

.experience-card h3 {
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 1.07rem;
}

.experience-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    line-height: 1.65;
}

.experience-more {
    position: absolute;
    bottom: 1.5rem;
    color: var(--experience-accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.experience-more i {
    margin-left: 0.35rem;
}

/* Features and classes now read as a single chapter */
.fonctionnalites-section {
    padding-bottom: clamp(4rem, 7vw, 6rem);
    background: #0a0c17;
}

.fonctionnalites-section::before {
    background:
        radial-gradient(circle at 82% 18%, rgba(85, 171, 201, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(8, 10, 20, 0.7), rgba(8, 10, 20, 0.86)),
        url('../images/illu/houses.jpg') center 42%/cover no-repeat;
}

.feature-section-heading,
.classes-heading,
.gallery-heading {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.feature-section-heading .section-title,
.classes-heading .section-title,
.gallery-heading .section-title {
    color: #fff;
    text-transform: none;
    letter-spacing: -0.015em;
}

.features-tabs {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.75rem;
}

.tab-button {
    border-radius: 3px;
}

.tab-content {
    border-radius: 3px;
}

/* Modern feature explorer */
.modern-features {
    display: block;
    margin-top: 2.5rem;
}

.modern-features .tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.modern-features .tab-button {
    position: relative;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 1rem;
    min-height: 96px;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    background: rgba(5, 7, 16, 0.66);
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    transform: none;
}

.modern-features .tab-button::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--home-gold), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modern-features .tab-button:hover,
.modern-features .tab-button.active {
    background: linear-gradient(135deg, rgba(240, 202, 82, 0.11), rgba(255, 255, 255, 0.025));
    border-color: rgba(240, 202, 82, 0.42);
    transform: none;
}

.modern-features .tab-button.active::after {
    opacity: 1;
}

.modern-features .tab-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.modern-features .tab-label strong {
    font-size: 0.95rem;
}

.modern-features .tab-label small {
    font-size: 0.76rem;
}

.feature-tab-index {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    color: rgba(255, 255, 255, 0.18);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
}

.modern-features .tabs-content {
    min-height: 0;
    margin-top: 1.1rem;
}

.modern-features .tab-content {
    display: none;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.45fr);
    grid-template-rows: none;
    min-height: 0;
    overflow: hidden;
    background: rgba(5, 7, 16, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.modern-features .tab-content.active {
    display: grid;
}

.modern-features .content-image {
    width: auto;
    height: auto;
    min-height: 760px;
}

.modern-features .content-image::after {
    background:
        linear-gradient(180deg, rgba(5, 7, 16, 0.06), rgba(5, 7, 16, 0.82)),
        linear-gradient(90deg, transparent 70%, rgba(5, 7, 16, 0.65));
}

.modern-features .content-image img {
    filter: saturate(0.88) contrast(1.03);
}

.feature-visual-caption {
    position: absolute;
    z-index: 2;
    right: 1.75rem;
    bottom: 1.75rem;
    left: 1.75rem;
    display: grid;
    gap: 0.55rem;
}

.feature-visual-caption span {
    color: var(--home-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.feature-visual-caption strong {
    max-width: 290px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.2;
}

.modern-features .content-text {
    padding: clamp(1.6rem, 3vw, 2.5rem);
}

.feature-panel-heading {
    max-width: 700px;
    margin-bottom: 1.7rem;
}

.feature-panel-heading .section-eyebrow {
    margin-bottom: 0.55rem;
}

.feature-panel-heading h3 {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
}

.feature-panel-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}

.feature-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.feature-bento-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    min-height: 128px;
    padding: 1.05rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.feature-bento-card:hover {
    background: rgba(240, 202, 82, 0.055);
    border-color: rgba(240, 202, 82, 0.3);
}

.feature-bento-card > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--home-gold);
    background: rgba(240, 202, 82, 0.08);
    border: 1px solid rgba(240, 202, 82, 0.22);
    border-radius: 50%;
}

.feature-bento-card > div {
    min-width: 0;
}

.feature-bento-card span {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(240, 202, 82, 0.66);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.feature-bento-card h4 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 0.9rem;
}

.feature-bento-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
    line-height: 1.5;
}

.feature-bento-wide {
    grid-column: span 2;
}

.feature-panel-more {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-panel-more > span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-panel-more ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feature-panel-more li {
    padding: 0.35rem 0.6rem;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.66rem;
}

.classes-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 7.5rem) 0;
    background: #070914;
}

.classes-section::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 8, 18, 0.92) 0%, rgba(7, 9, 19, 0.76) 52%, rgba(7, 9, 19, 0.58) 100%),
        linear-gradient(180deg, rgba(6, 8, 18, 0.18), rgba(6, 8, 18, 0.82)),
        url('../images/illu/combat_1.png') center 40%/cover no-repeat;
}

.classes-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 202, 82, 0.5), transparent);
}

.classes-section .container {
    position: relative;
    z-index: 1;
}

.classes-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.classes-heading {
    max-width: 760px;
    margin: 0;
    text-align: left;
}

.classes-heading .separator {
    margin-right: 0;
    margin-left: 0;
}

.classes-heading .section-subtitle {
    max-width: 690px;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.classes-summary {
    display: grid;
    gap: 1.25rem;
    padding: 0.4rem 0 0.4rem clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid rgba(240, 202, 82, 0.35);
}

.classes-summary-number {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.classes-summary-number strong {
    color: var(--home-gold);
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.4rem);
    font-weight: 700;
    line-height: 0.8;
}

.classes-summary-number span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.6;
    text-transform: uppercase;
}

.classes-summary-meta {
    display: grid;
    gap: 0.55rem;
}

.classes-summary-meta span {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.76rem;
}

.classes-summary-meta i {
    width: 16px;
    color: rgba(240, 202, 82, 0.7);
    text-align: center;
}

.class-type-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.classes-summary-meta .class-type-role {
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.15rem 0.6rem 0.15rem 0.2rem;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.class-type-role img {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.class-groups {
    display: grid;
    gap: 1rem;
}

.class-group {
    --affinity-color: var(--home-gold);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background:
        linear-gradient(105deg, color-mix(in srgb, var(--affinity-color) 5%, transparent), transparent 34%),
        rgba(8, 10, 18, 0.88);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.force-group {
    --affinity-color: #df6b57;
}

.intelligence-group {
    --affinity-color: #779cff;
}

.agility-group {
    --affinity-color: #67c98a;
}

.class-group-header {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--affinity-color) 13%, transparent), transparent 62%);
}

.affinity-heading {
    display: flex;
    align-items: center;
}

.affinity-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin-right: 0.9rem;
    color: color-mix(in srgb, var(--affinity-color) 82%, white);
    border-color: color-mix(in srgb, var(--affinity-color) 45%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--affinity-color) 10%, transparent);
    font-size: 1.05rem;
}

.affinity-label {
    color: color-mix(in srgb, var(--affinity-color) 72%, white);
    font-size: 0.61rem;
    letter-spacing: 0.15em;
}

.class-group-header h3 {
    color: #f3f4f7;
    font-size: 1.4rem;
    line-height: 1.1;
}

.class-group-header > p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: left;
}

.class-cards {
    display: grid;
    gap: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.07);
}

.force-group .class-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.intelligence-group .class-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agility-group .class-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-card {
    position: relative;
    min-width: 0;
    min-height: 195px;
    padding: 1.25rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(8, 10, 18, 0.86);
    transition: color 180ms ease, background-color 180ms ease;
}

.class-card:hover {
    transform: none;
    border-color: transparent;
    background: color-mix(in srgb, var(--affinity-color) 8%, rgba(8, 10, 18, 0.94));
    box-shadow: none;
}

.class-card-heading {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.class-icon {
    display: block;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0;
    object-fit: cover;
    border-color: color-mix(in srgb, var(--affinity-color) 48%, transparent);
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

.class-role {
    display: block;
    margin-bottom: 0.25rem;
    color: color-mix(in srgb, var(--affinity-color) 72%, white);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.class-card h4 {
    margin: 0;
    color: #f2f3f7;
    font-size: 0.96rem;
    line-height: 1.3;
}

.class-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.6;
}

.classes-note {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: none;
    margin: 1rem 0 0;
    padding: 1.2rem 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(240, 202, 82, 0.18);
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(240, 202, 82, 0.08), rgba(255, 255, 255, 0.015));
}

.classes-note-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--home-gold);
    border: 1px solid rgba(240, 202, 82, 0.28);
    border-radius: 50%;
}

.classes-note strong {
    display: block;
    margin-bottom: 0.22rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.classes-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* Playable peoples */
.races-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 7.5rem) 0;
    background: #090b16;
}

.races-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(240, 202, 82, 0.09), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(94, 118, 185, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(7, 9, 19, 0.72), rgba(7, 9, 19, 0.88)),
        url('../images/illu/loups.jpg') center 46%/cover no-repeat;
}

.races-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 202, 82, 0.5), transparent);
}

.races-section .container {
    position: relative;
    z-index: 1;
}

.races-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.races-heading {
    max-width: 780px;
    margin: 0;
    text-align: left;
}

.races-heading .separator,
.races-heading .section-subtitle {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.races-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.15rem;
    align-items: center;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid rgba(240, 202, 82, 0.35);
}

.races-summary > strong {
    color: var(--home-gold);
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.4rem);
    line-height: 0.8;
}

.races-summary span {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.races-summary p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    line-height: 1.55;
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.55rem, 1vw, 1rem);
}

.race-card {
    --race-accent: var(--home-gold);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background:
        radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--race-accent) 24%, transparent), transparent 48%),
        linear-gradient(180deg, #171a27 0%, #0a0c15 72%);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.race-human { --race-accent: #e1c36a; }
.race-orc { --race-accent: #8eaa63; }
.race-blood-elf { --race-accent: #d96c58; }
.race-night-elf { --race-accent: #8f87cf; }
.race-dwarf { --race-accent: #d19a53; }
.race-troll { --race-accent: #53b9bd; }

.race-card::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 32%),
        linear-gradient(90deg, color-mix(in srgb, var(--race-accent) 7%, transparent), transparent 52%);
}

.race-card::after {
    content: '';
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 0;
    left: 1rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--race-accent), transparent);
    opacity: 0.7;
}

.race-card:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--race-accent) 48%, transparent);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.race-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 8;
    margin-top: auto;
    padding: 0.35rem 0.1rem 0;
    object-fit: contain;
    object-position: center bottom;
    filter: saturate(0.94) contrast(1.02) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.38));
    transition: filter 180ms ease;
}

.race-card:hover img {
    filter: saturate(1.04) contrast(1.02) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.38));
}

.race-card-content {
    position: relative;
    z-index: 3;
    min-height: 122px;
    padding: clamp(0.9rem, 1.35vw, 1.2rem);
    border-top: 1px solid color-mix(in srgb, var(--race-accent) 24%, transparent);
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.94), rgba(6, 8, 15, 0.99));
}

.race-card-content > span {
    display: block;
    margin-bottom: 0.4rem;
    color: color-mix(in srgb, var(--race-accent) 82%, white);
    font-size: clamp(0.5rem, 0.55vw, 0.62rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.race-card h3 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(1.15rem, 1.55vw, 1.65rem);
    line-height: 1.05;
    text-wrap: balance;
}

.race-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.62rem, 0.68vw, 0.72rem);
    line-height: 1.45;
}

.races-footnote {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
}

.races-footnote p {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin: 0;
}

.races-footnote i {
    color: var(--home-gold);
    font-size: 0.48rem;
    transform: rotate(45deg);
}

/* Community now has its own place in the page journey. */
.home-community-section {
    position: relative;
    overflow: hidden;
    background: #080a14;
    isolation: isolate;
}

.home-community-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 18, 0.9) 0%, rgba(7, 9, 18, 0.74) 52%, rgba(7, 9, 18, 0.5) 100%),
        linear-gradient(180deg, rgba(7, 9, 18, 0.16), rgba(7, 9, 18, 0.68)),
        url('../images/illu/aventurier.jpg') center 45%/cover no-repeat;
}

.home-community-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 202, 82, 0.5), transparent);
}

.home-community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    width: min(90%, 1120px);
    max-width: 1120px;
}

.home-community-copy h2 {
    max-width: 680px;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.home-community-copy > p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 1.04rem;
    line-height: 1.8;
}

.community-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 2rem 0;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.community-benefits li {
    display: grid;
    gap: 0.7rem;
    min-height: 132px;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--home-line);
}

.community-benefits li:first-child {
    border-left: 1px solid var(--home-line);
}

.community-benefits i {
    color: var(--home-gold);
    font-size: 1rem;
}

.community-benefits span {
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.8rem;
    line-height: 1.5;
}

.community-benefits strong {
    display: block;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
}

.home-community-copy .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.home-community-layout .discord-widget {
    width: 100%;
    height: 500px;
    min-width: 0;
    align-self: center;
    overflow: hidden;
    background: #11121a;
    border: 1px solid rgba(114, 126, 255, 0.38);
    border-radius: 4px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 34px rgba(88, 101, 242, 0.1);
}

.home-community-layout .discord-widget-frame,
.home-community-layout .discord-widget iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

/* Final CTA: a focused conclusion, without the Discord iframe. */
.final-expedition-section {
    position: relative;
    padding: clamp(4.5rem, 7vw, 6rem) 0 clamp(3.5rem, 5.5vw, 4.75rem);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 6, 13, 0.86), rgba(4, 6, 13, 0.36)),
        url('../images/illu/chemin.jpg') center/cover no-repeat;
    text-align: left;
}

.final-expedition-section + .site-footer {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

.final-expedition-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 50%, rgba(240, 202, 82, 0.13), transparent 25%),
        linear-gradient(180deg, rgba(4, 6, 13, 0.08), rgba(4, 6, 13, 0.48));
}

.final-expedition-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, rgba(8, 10, 20, 0.93), rgba(8, 10, 20, 0.78));
    border: 1px solid rgba(240, 202, 82, 0.3);
    border-radius: 3px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
}

.final-expedition-cta::before,
.final-expedition-cta::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    pointer-events: none;
}

.final-expedition-cta::before {
    top: 10px;
    left: 10px;
    border-top: 1px solid var(--home-gold);
    border-left: 1px solid var(--home-gold);
}

.final-expedition-cta::after {
    right: 10px;
    bottom: 10px;
    border-right: 1px solid var(--home-gold);
    border-bottom: 1px solid var(--home-gold);
}

.final-cta-copy h2 {
    max-width: 720px;
    margin: 1rem 0 1.25rem;
    color: #fff;
    font-size: clamp(2.5rem, 4.4vw, 4.35rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.final-cta-copy > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.78;
}

.final-cta-copy .cta-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.final-expedition-route {
    padding-left: clamp(2rem, 4vw, 3.5rem);
    border-left: 1px solid var(--home-line);
}

.route-emblem {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    place-items: center;
    color: var(--home-gold);
    border: 1px solid rgba(240, 202, 82, 0.42);
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: inset 0 0 22px rgba(240, 202, 82, 0.08);
}

.final-expedition-route ol {
    display: grid;
}

.final-expedition-route li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.final-expedition-route li > span {
    color: var(--home-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
}

.final-expedition-route li div {
    display: grid;
    gap: 0.2rem;
}

.final-expedition-route strong {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.final-expedition-route small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.72rem;
    line-height: 1.45;
}

/* Large cinematic gallery */
.gallery-section {
    padding: clamp(5rem, 8vw, 7.5rem) 0;
    overflow: hidden;
    background: #080a14;
}

.gallery-section::before {
    background:
        radial-gradient(circle at 50% 10%, rgba(240, 202, 82, 0.07), transparent 35%),
        linear-gradient(180deg, rgba(8, 10, 20, 0.72), rgba(5, 7, 15, 0.88)),
        url('../images/illu/statue.jpg') center 38%/cover no-repeat;
    backdrop-filter: none;
}

.gallery-section .container {
    width: min(94%, 1480px);
    max-width: 1480px;
}

.gallery-container {
    margin-top: 3rem;
}

.gallery-carousel .owl-stage-outer {
    overflow: visible;
}

.gallery-carousel .owl-stage {
    gap: 0;
}

.gallery-carousel .owl-item {
    opacity: 0.42;
    transform: scale(0.94);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.gallery-carousel .owl-item.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-item {
    height: clamp(390px, 41vw, 590px);
    border: 1px solid rgba(240, 202, 82, 0.22);
    border-radius: 3px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 13, 0.9) 100%);
}

.gallery-item img {
    transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}

.gallery-overlay {
    z-index: 1;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 1;
    background: transparent;
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.overlay-content h3 {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.gallery-carousel .owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    right: -22px;
    left: -22px;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.gallery-carousel .owl-nav button.owl-prev,
.gallery-carousel .owl-nav button.owl-next {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0;
    place-items: center;
    color: #fff;
    background: rgba(7, 9, 18, 0.88);
    border: 1px solid rgba(240, 202, 82, 0.45);
    border-radius: 50%;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.gallery-carousel .owl-nav button:hover {
    color: #080a14;
    background: var(--home-gold);
}

.gallery-carousel .owl-dots {
    margin-top: 1.8rem;
}

.gallery-carousel .owl-dots .owl-dot span {
    width: 24px;
    height: 2px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.gallery-carousel .owl-dots .owl-dot.active span,
.gallery-carousel .owl-dots .owl-dot:hover span {
    background: var(--home-gold);
}

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 5vw, 4.25rem);
    }

    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experience-card:nth-child(2) {
        border-right: 1px solid var(--home-line);
    }

    .experience-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--home-line);
    }

    .races-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .features-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .features-tabs .tabs-content {
        min-width: 0;
    }

    .modern-features .tabs-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modern-features .tab-button {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 0.95rem;
    }

    .modern-features .tab-icon {
        width: 44px;
        height: 44px;
    }

    .modern-features .tab-content,
    .modern-features .tab-content.active {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 320px auto;
    }

    .modern-features .content-image {
        height: 320px;
        min-height: 0;
    }

    .modern-features .content-image::after {
        background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 16, 0.92));
    }

    .home-community-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
    }

    .home-community-layout .discord-widget {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .final-expedition-cta {
        grid-template-columns: minmax(0, 1fr);
    }

    .final-expedition-route {
        padding: 2rem 0 0;
        border-top: 1px solid var(--home-line);
        border-left: 0;
    }

    .final-expedition-route ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 2.25rem;
        padding: 110px 0 90px;
    }

    .hero-main {
        max-width: 760px;
    }

    .hero-season-card {
        max-width: 600px;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .server-info-card {
        display: grid;
        grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1fr);
    }

    .server-card-visual {
        grid-row: 1 / 4;
        height: 100%;
        min-height: 360px;
    }

    .server-card-heading,
    .server-details,
    .server-card-cta {
        grid-column: 2;
    }

    .gallery-carousel .owl-stage-outer {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 820px;
    }

    .hero-content {
        display: flex;
        justify-content: center;
        width: 88%;
        padding-top: 100px;
    }

    .hero-title {
        font-size: clamp(2.45rem, 11vw, 3.4rem);
    }

    .hero-content .hero-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-season-card {
        display: none;
    }

    .modern-features .tabs-nav {
        display: flex;
        gap: 0.65rem;
        padding-bottom: 0.65rem;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .modern-features .tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .modern-features .tab-button {
        flex: 0 0 250px;
        scroll-snap-align: start;
    }

    .modern-features .tab-content,
    .modern-features .tab-content.active {
        grid-template-rows: 250px auto;
    }

    .modern-features .content-image {
        height: 250px;
    }

    .modern-features .content-text {
        padding: 1.25rem;
    }

    .feature-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-bento-wide {
        grid-column: auto;
    }

    .feature-panel-more {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-facts {
        gap: 0.55rem 1rem;
    }

    .scroll-down {
        display: none;
    }

    .intro-content {
        gap: 2.5rem;
    }

    .server-info-card {
        display: block;
    }

    .server-card-visual {
        min-height: 0;
        height: 170px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card,
    .experience-card:first-child,
    .experience-card:nth-child(2) {
        min-height: 245px;
        border: 0;
        border-right: 1px solid var(--home-line);
        border-bottom: 1px solid var(--home-line);
        border-left: 1px solid var(--home-line);
    }

    .experience-card:last-child {
        border-bottom: 0;
    }

    .class-group-header {
        padding: 1.2rem;
    }

    .class-cards {
        grid-template-columns: 1fr 1fr;
    }

    .class-card {
        min-height: 185px;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .community-benefits {
        grid-template-columns: 1fr;
    }

    .community-benefits li,
    .community-benefits li:first-child {
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        min-height: 0;
        border: 0;
        border-right: 1px solid var(--home-line);
        border-bottom: 1px solid var(--home-line);
        border-left: 1px solid var(--home-line);
    }

    .community-benefits li:last-child {
        border-bottom: 0;
    }

    .final-expedition-cta {
        padding: 2rem 1.35rem;
    }

    .final-expedition-route ol {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gallery-section .container {
        width: 92%;
    }

    .gallery-item {
        height: 360px;
    }

    .gallery-carousel .owl-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 760px;
    }

    .hero-kicker {
        font-size: 0.66rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: none;
    }

    .hero-facts {
        display: grid;
    }

    .intro-text h2 {
        font-size: 2.35rem;
    }

    .intro-buttons {
        align-items: flex-start;
    }

    .class-cards {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-carousel .owl-item,
    .experience-card,
    .gallery-item img {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .force-group .class-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intelligence-group .class-cards,
    .agility-group .class-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .classes-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .classes-summary {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 1.25rem 0 0;
        border-top: 1px solid rgba(240, 202, 82, 0.28);
        border-left: 0;
    }

    .classes-summary-number strong {
        font-size: 3.75rem;
    }

    .class-group-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .class-group-header > p {
        grid-column: 1 / -1;
        max-width: none;
    }

    .races-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .races-summary {
        padding: 1.25rem 0 0;
        border-top: 1px solid rgba(240, 202, 82, 0.28);
        border-left: 0;
    }

    .force-group .class-cards,
    .intelligence-group .class-cards,
    .agility-group .class-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .classes-section {
        padding: 4.25rem 0;
    }

    .classes-heading .section-title {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .classes-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .classes-summary-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .class-group-header {
        padding: 1.15rem;
    }

    .affinity-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .force-group .class-cards,
    .intelligence-group .class-cards,
    .agility-group .class-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .class-card {
        min-height: 0;
        padding: 1.15rem;
    }

    .classes-note {
        grid-template-columns: minmax(0, 1fr);
    }

    .races-section {
        padding: 4.25rem 0;
    }

    .races-heading .section-title {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .races-summary > strong {
        font-size: 3.75rem;
    }

    .races-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .race-card-content {
        min-height: 88px;
        padding: 0.8rem;
    }

    .race-card h3 {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }

    .race-card p {
        display: none;
    }

    .races-footnote {
        align-items: flex-start;
    }

    .races-footnote p {
        align-items: flex-start;
        text-align: left;
    }

}
