/* =========================================================================
   ShanksGames — Landing Page ("/") only.
   Loaded in addition to theme.css. Never referenced by internal dashboard
   pages, so nothing here can affect /dashboard, /config, /admin, etc.
   ========================================================================= */

body.landing-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.landing-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* --- Nav --- */
.l-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.l-nav.scrolled {
    background-color: var(--acrylic);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--acrylic-border);
}
.l-nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.l-nav-brand img { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.l-nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: white; font-weight: 700; text-decoration: none;
    padding: 10px 22px; border-radius: var(--radius-pill);
    transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .l-nav-cta:hover { transform: translateY(-2px); }
}
.l-nav-cta:active { transform: scale(0.96); transition-duration: 100ms; }

/* --- Hero --- */
.l-hero { padding: 100px 0 70px; text-align: center; }
.l-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 28px;
}
.l-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: l-pulse 2.4s var(--ease-in-out) infinite; }
.l-hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--text);
}
.l-hero h1 .accent-line { color: var(--accent); }
.l-hero p.lead {
    font-size: 18px; line-height: 1.55; color: var(--text-muted);
    max-width: 600px; margin: 0 auto 40px;
}
.l-hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.l-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: white; font-weight: 700; font-size: 16px; text-decoration: none;
    padding: 17px 34px; border-radius: var(--radius-pill);
    transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .l-btn-primary:hover { transform: translateY(-2px); }
}
.l-btn-primary:active { transform: scale(0.96); transition-duration: 100ms; }
.l-btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none;
    padding: 17px 34px; border-radius: var(--radius-pill);
    transition: background-color 160ms var(--ease-out);
}
/* No transform here (even on hover/active) — this button also carries the
   Mica wallpaper reveal, and any transform breaks its ::before's fixed
   background the moment it's applied. The background-color swap alone is
   plenty of hover feedback, matching the other Acrylic cards (.l-stat,
   .l-server-card, .l-bento-tile), none of which lift on hover either. */
@media (hover: hover) and (pointer: fine) {
    .l-btn-secondary:hover { background-color: var(--mica-highlight); }
}
.l-btn-secondary:active { background-color: var(--mica-highlight); transition-duration: 100ms; }

/* --- Stats row --- */
.l-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.l-stat { min-width: 150px; padding: 22px 28px; border-radius: var(--radius-lg); text-align: center; }
.l-stat b { display: block; font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.l-stat span { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Section heading --- */
.l-section { padding: 70px 0; }
.l-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.l-section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; margin: 0 0 14px; color: var(--text); font-weight: 700; }
.l-section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.5; margin: 0; }

/* --- Showcase carousel --- */
.l-carousel-viewport {
    overflow: hidden;
    position: relative;
    margin: 0 -32px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
}
.l-carousel-track {
    display: flex;
    position: relative;
    left: 0;
    gap: 20px;
    width: max-content;
    padding: 4px 32px 20px;
    cursor: grab;
}
.l-carousel-track.dragging { cursor: grabbing; }
.l-server-card {
    flex: 0 0 auto;
    width: 220px;
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    user-select: none;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .l-server-card:hover { background-color: var(--surface-3); border-color: var(--mica-border-hover); }
}
.l-server-card .avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.l-server-card img { width: 64px; height: 64px; border-radius: var(--radius-sm); display: block; -webkit-user-drag: none; }
.l-server-card .crown { position: absolute; top: -10px; right: -10px; font-size: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); transform: rotate(28deg); transform-origin: bottom left; }
.l-server-card b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-server-card small { color: var(--text-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.l-server-card small .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.l-server-card.is-top { border-color: rgba(var(--accent-rgb), 0.5); }

/* --- Bento grid --- */
.l-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.l-bento-tile { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .l-bento-tile:hover { background-color: var(--surface-3); border-color: var(--mica-border-hover); }
}
.l-bento-tile.big { grid-column: span 2; grid-row: span 2; justify-content: center; }
.l-bento-tile .icon {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: rgba(var(--accent-rgb), 0.14);
}
.l-bento-tile h3 { margin: 6px 0 0; font-size: 18px; color: var(--text); font-weight: 700; }
.l-bento-tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* --- Reveal-on-scroll (progressive enhancement, JS toggles .in-view) ---
   Marketing surface only (per animate skill: scroll-reveal is fine here,
   never on functional daily-use UI). 30-80ms stagger via nth-child.
   Opacity-only on purpose — no transform: these elements (and the carousel
   viewport) host the Mica/Acrylic wallpaper reveal, and a `transform` on
   an element OR ANY ancestor silently breaks `background-attachment:
   fixed` on its descendants (turns it into `scroll`, tied to that element
   instead of the viewport) — which is exactly what made the wallpaper
   look "duplicated and stuck to each block" instead of one continuous
   image seen through them. */
.l-reveal { opacity: 0; }
.l-reveal.in-view {
    opacity: 1;
    transition: opacity 500ms var(--ease-out);
}
.l-stagger.in-view { transition-delay: calc(var(--stagger-i, 0) * 60ms); }
.l-bento-tile:nth-child(1) { --stagger-i: 0; }
.l-bento-tile:nth-child(2) { --stagger-i: 1; }
.l-bento-tile:nth-child(3) { --stagger-i: 2; }
.l-bento-tile:nth-child(4) { --stagger-i: 3; }
.l-bento-tile:nth-child(5) { --stagger-i: 4; }
.l-bento-tile:nth-child(6) { --stagger-i: 5; }
.l-bento-tile:nth-child(7) { --stagger-i: 6; }
.l-stats .l-stat:nth-child(1) { --stagger-i: 0; }
.l-stats .l-stat:nth-child(2) { --stagger-i: 1; }
.l-stats .l-stat:nth-child(3) { --stagger-i: 2; }
@media (prefers-reduced-motion: reduce) {
    .l-reveal { opacity: 0; }
    .l-reveal.in-view { opacity: 1; transition-delay: 0ms; }
}

/* --- Footer --- */
.l-footer { border-top: 1px solid var(--mica-border); padding: 56px 0 30px; margin-top: 40px; }
.l-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.l-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.l-footer-brand img { width: 32px; border-radius: var(--radius-sm); }
.l-footer p.desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; max-width: 280px; }
.l-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 14px; }
.l-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.l-footer a { color: var(--text); text-decoration: none; font-size: 14px; opacity: 0.85; transition: opacity 120ms var(--ease-out), color 120ms var(--ease-out); }
.l-footer a:hover { opacity: 1; color: var(--accent); }
.l-footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.l-footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: l-pulse 2.4s var(--ease-in-out) infinite; }
.l-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--mica-border); color: var(--text-muted); font-size: 13px; }

@keyframes l-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
    .l-footer-status .dot, .l-hero-badge .dot { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .l-bento { grid-template-columns: repeat(2, 1fr); }
    .l-bento-tile.big { grid-column: span 2; grid-row: span 1; }
    .l-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .l-nav-brand span.name { display: none; }
    .l-hero { padding: 70px 0 40px; }
    .l-hero-actions { flex-direction: column; }
    .l-btn-primary, .l-btn-secondary { width: 100%; justify-content: center; }
    .l-bento { grid-template-columns: 1fr; }
    .l-bento-tile.big { grid-column: span 1; }
    .l-footer-grid { grid-template-columns: 1fr; }
}
