/* ============================================================
   Landing Page Styles
   Used exclusively by web/views/index.ejs
   ============================================================ */

/* ========= FIXED NAVBAR ======================================= */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
}

.landing-nav-brand img {
    height: 72px;
    width: auto;
    mix-blend-mode: screen;
}

.landing-nav-brand:hover {
    color: white;
    text-decoration: none;
}

.landing-nav-manager-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #111827;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #374151;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.landing-nav-manager-btn img {
    height: 36px;
    width: auto;
    mix-blend-mode: screen;
}

.landing-nav-manager-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.landing-nav-manager-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.landing-nav-manager-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2;
}

.landing-nav-manager-btn:hover {
    color: white;
    background: #1f2937;
    border-color: #4b5563;
    text-decoration: none;
    transform: translateY(-1px);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
}

.landing-nav-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.landing-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #5865f2;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.landing-nav-link:hover {
    color: white;
    background: transparent;
    text-decoration: none;
    border-bottom: none;
    border-radius: 0;
}

.landing-nav-link:hover::after {
    transform: scaleX(1);
}

.landing-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.landing-nav-login:hover {
    background: #4752c4;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ========= HERO BANNER ======================================== */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 6rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 101, 242, 0.22) 0%, transparent 70%),
        linear-gradient(180deg, #0d1117 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 60%, rgba(88, 101, 242, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.07) 0%, transparent 45%);
    pointer-events: none;
}

.landing-hero-content {
    max-width: 1140px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 101, 242, 0.14);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: #818cf8;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.landing-hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.landing-hero-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 28px rgba(88, 101, 242, 0.45));
}

.landing-hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin: 0 0 1.25rem;
    letter-spacing: -0.025em;
}

.landing-hero-title .hero-accent {
    background: linear-gradient(135deg, #5865f2 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-desc {
    font-size: 1.15rem;
    color: #9ca3af;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 2.75rem;
}

.landing-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.hero-btn-primary:hover {
    background: #4752c4;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.55);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ========= FEATURE CARDS (inside hero) ======================== */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.landing-feature-card {
    background: #1a2030;
    border: 1px solid #1f2937;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.landing-feature-card:hover {
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.12);
}

.landing-feature-icon-wrap {
    width: 54px;
    height: 54px;
    background: rgba(88, 101, 242, 0.13);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
    color: #818cf8;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.landing-feature-card:nth-child(2) .landing-feature-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.landing-feature-card:nth-child(3) .landing-feature-icon-wrap {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.landing-feature-card:nth-child(4) .landing-feature-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.landing-feature-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.6rem;
}

.landing-feature-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ========= FOOTER ============================================= */
#section-cta,
#section-builds,
#section-parties,
#section-compositions {
    scroll-margin-top: 96px;
}


.landing-footer {
    background: #0d1117;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    padding: 2rem 2rem;
}

.landing-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.landing-footer-brand img {
    height: 36px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: block;
}

.landing-footer-brand:hover img {
    opacity: 1;
}

.landing-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #4b5563;
}

/* ========= RESPONSIVE ============================================= */
@media (max-width: 900px) {
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-hero-title {
        font-size: 2.75rem;
    }
    .landing-nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .landing-features-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero-title {
        font-size: 2rem;
    }
    .landing-hero {
        padding: 8rem 1.25rem 4rem;
    }
}

/* ---- Feature Sections ----------------------------------------- */
.landing-section {
    padding: 6rem 0;
}

.landing-section-alt {
    background-color: var(--gray-800);
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Two-column layout: text + mockup */
.landing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.landing-row.reverse {
    direction: rtl;
}

.landing-row.reverse > * {
    direction: ltr;
}

/* ---- Text side ------------------------------------------------- */
.landing-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}

.landing-section-label.blue {
    background: rgba(88, 101, 242, 0.15);
    color: #818cf8;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.landing-section-label.green {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.landing-section-label.purple {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.landing-heading {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin: 0;
}

.landing-heading span {
    background: linear-gradient(135deg, #5865f2, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-heading span.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-heading span.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-desc {
    font-size: 1.05rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin: 0;
}

.landing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
    font-size: 0.95rem;
}

.landing-features li i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---- Mockup wrapper ------------------------------------------- */
.landing-mockup {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* Scale down large modals to fit the column */
.mockup-scale-wrapper {
    transform-origin: top center;
    width: 100%;
}

/* ---- Section 1: Build Preview — mirrors .build-modal exactly ---------- */

/* Character template: same as .build-modal .character-template */
.mockup-build .character-template {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    position: relative;
    margin: 0 auto;
}

/* Background image: same as .build-modal .character-bg */
.mockup-build .character-bg {
    width: 320px;
    height: auto;
}

/* Slot size: same as .build-modal .equipment-slot */
.mockup-build .equipment-slot {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    z-index: 1;
}

.mockup-build .equipment-slot::before {
    font-size: 23px;
}

.mockup-build .equipment-slot .item-icon {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    z-index: 1;
    position: relative;
}

.mockup-build .equipment-slot.has-item .item-icon {
    width: 70px;
    height: 70px;
}

/* Slot positions: same as .build-modal .xxx-slot */
.mockup-build .head-slot {
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
}

.mockup-build .chest-slot {
    top: 111px;
    left: 50%;
    transform: translateX(-50%);
}

.mockup-build .foot-slot {
    top: 177px;
    left: 50%;
    transform: translateX(-50%);
}

.mockup-build .weapon-slot {
    top: 110px;
    left: 51px;
}

.mockup-build .offhand-slot {
    top: 110px;
    left: calc(50% + 40px);
}

.mockup-build .cape-slot {
    top: 39px;
    right: 35px;
}

.mockup-build .food-slot {
    bottom: 89px;
    left: 37px;
}

.mockup-build .potion-slot {
    bottom: 89px;
    right: 35px;
}

.mockup-build .mount-slot {
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid var(--gray-600);
}

.mockup-build .mount-slot.has-item {
    border: none;
}

/* ---- CTA image ------------------------------------------------ */
.landing-cta-image-wrap {
    width: 100%;
    height: 520px;
    aspect-ratio: unset;
    background: #1a1a1e;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-cta-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- Section 1: Build Preview mockup card -------------------- */
.mockup-build .role-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mockup-build {
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-build-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-700);
}

.mockup-build-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 0.35rem 0;
}

/* ---- Section 2: Party Builder mockup -------------------------- */
.mockup-party-outer {
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-modal-header {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mockup-modal-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mockup-modal-close-btn {
    width: 24px;
    height: 24px;
    background: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.mockup-party-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 320px;
    flex: 1;
}

.mockup-builds-col {
    border-right: 1px solid #374151;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.mockup-builds-col-title {
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mockup-build-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.mockup-build-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-build-card-name {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-party-col {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-party-col-title {
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-slot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.mockup-slot {
    background: #1f2937;
    border: 1px dashed #4b5563;
    border-radius: 0.25rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #6b7280;
}

.mockup-slot.filled-dps {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #f87171;
    font-size: 0.6rem;
    font-weight: 600;
}

.mockup-slot.filled-tank {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 0.6rem;
    font-weight: 600;
}

.mockup-slot.filled-healer {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #4ade80;
    font-size: 0.6rem;
    font-weight: 600;
}

.mockup-slot.filled-support {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
    font-size: 0.6rem;
    font-weight: 600;
}

.mockup-slot.filled-bmount {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.4);
    color: #9ca3af;
    font-size: 0.6rem;
    font-weight: 600;
}

.mockup-comp-summary {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.mockup-comp-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
}

.mockup-comp-badge.dps   { background: rgba(220, 38, 38, 0.2);  color: #f87171; }
.mockup-comp-badge.tank  { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.mockup-comp-badge.heal  { background: rgba(22, 163, 74, 0.2);  color: #4ade80; }
.mockup-comp-badge.sup   { background: rgba(234, 179, 8, 0.2);  color: #facc15; }

/* ---- Section 3: Composition Builder mockup -------------------- */
.mockup-comp-outer {
    background: #111827;
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-comp-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 340px;
    flex: 1;
}

.mockup-parties-col {
    border-right: 1px solid #374151;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-parties-col-title {
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mockup-party-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 0.6rem;
    cursor: default;
}

.mockup-party-card-name {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.mockup-party-card-slots {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.mockup-party-role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-composition-col {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-composition-col-title {
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-comp-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mockup-comp-slot {
    background: #1f2937;
    border: 1px dashed #4b5563;
    border-radius: 0.375rem;
    padding: 0.5rem 0.6rem;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mockup-comp-slot.filled {
    border: 1px solid #6d28d9;
    background: rgba(109, 40, 217, 0.1);
}

.mockup-comp-slot-num {
    color: #6b7280;
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
}

.mockup-comp-slot-pname {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.mockup-comp-slot-dots {
    display: flex;
    gap: 2px;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

/* ---- CTA Section ---------------------------------------------- */
.landing-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #111827 50%, #1e1b4b 100%);
    text-align: center;
    border-top: 1px solid var(--gray-700);
}

.landing-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
}

.landing-cta-subtitle {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin: 0 auto 2.5rem auto;
    max-width: 520px;
}

.landing-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Section 1: Mockup view switcher tabs --------------------- */
.mockup-view-tabs {
    display: flex;
    background: #111827;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    align-self: center;
    flex-shrink: 0;
}

.mockup-tab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.mockup-tab.active {
    background: #5865f2;
    color: white;
}

.mockup-tab:hover:not(.active) {
    background: var(--gray-700);
    color: white;
}

/* ---- Section 1: Create Build form embedded view --------------- */
#build-mockup-preview {
    flex: 1;
    overflow: hidden;
}

#build-mockup-create {
    margin: 0 -1.5rem -1.5rem -1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 0 1rem 1rem;
    flex: 1;
}

#build-mockup-create .build-edit-form {
    padding: 14px 1.5rem;
}

#build-mockup-create .build-edit-basic-info {
    gap: 10px;
    margin-bottom: 16px;
}

#build-mockup-create .build-edit-basic-info h3,
#build-mockup-create .build-edit-equipment h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

#build-mockup-create .form-group input,
#build-mockup-create .form-group select,
#build-mockup-create .form-group textarea {
    font-size: 12px;
    padding: 7px 10px;
}

#build-mockup-create .form-group label,
#build-mockup-create .equipment-select-group label {
    font-size: 11px;
    margin-bottom: 4px;
}

#build-mockup-create .equipment-selects {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#build-mockup-create .custom-select-trigger {
    padding: 7px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    pointer-events: none;
}

#build-mockup-create .custom-select-trigger img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

#build-mockup-create .build-edit-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #40444b;
}

/* ---- Responsive ----------------------------------------------- */
@media (max-width: 900px) {
    .landing-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .landing-row.reverse {
        direction: ltr;
    }
    .landing-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .landing-section {
        padding: 3.5rem 0;
    }
    .landing-container {
        padding: 0 1rem;
    }
    .mockup-party-body {
        grid-template-columns: 1fr;
    }
    .mockup-builds-col {
        border-right: none;
        border-bottom: 1px solid #374151;
    }
    .mockup-comp-body {
        grid-template-columns: 1fr;
    }
    .mockup-parties-col {
        border-right: none;
        border-bottom: 1px solid #374151;
    }
}

/* ========= SERVER SELECT MODAL ================================= */
.ss-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
}

.ss-modal {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: ssModalIn 0.2s ease;
}

@keyframes ssModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ss-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid #1f2937;
}

.ss-modal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ss-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ss-modal-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0.15rem 0 0;
}

.ss-modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.4rem;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.ss-modal-close:hover {
    color: white;
    background: #1f2937;
}

.ss-modal-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* States */
.ss-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 160px;
    color: #9ca3af;
    text-align: center;
}

.ss-state-icon {
    font-size: 2.5rem;
}

.ss-state-hint {
    font-size: 0.82rem;
    color: #4b5563;
    max-width: 340px;
}

.ss-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #374151;
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: ssSpin 0.7s linear infinite;
}

@keyframes ssSpin {
    to { transform: rotate(360deg); }
}

.ss-retry-btn,
.ss-add-bot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ss-retry-btn {
    background: #374151;
    color: white;
}

.ss-add-bot-btn {
    background: #5865f2;
    color: white;
}

.ss-retry-btn:hover,
.ss-add-bot-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    color: white;
}

/* Server list */
#ssServerList {
    flex-direction: column;
    gap: 0.6rem;
}

.ss-server-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.875rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.ss-server-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #5865f2, #7c3aed);
    opacity: 0;
    transition: opacity 0.2s;
}

.ss-server-card:hover {
    border-color: #5865f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.ss-server-card:hover::before {
    opacity: 1;
}

.ss-server-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ss-server-info {
    flex: 1;
    min-width: 0;
}

.ss-server-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.ss-server-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.ss-online-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.25rem;
}

.ss-admin-badge {
    background: rgba(88,101,242,0.15);
    color: #818cf8;
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 1rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ss-arrow {
    color: #4b5563;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.ss-server-card:hover .ss-arrow {
    color: #5865f2;
    transform: translateX(3px);
}
