/* Landing page (/) — Skyhook
   Reuses tokens from base.html.twig (--bg-*, --accent, --text-*, --font-*).
   Mobile-first: 375px base, breakpoints at 768 / 1024. */

body { overflow-x: clip; }

.lp {
    --lp-section-y: 4rem;
    --lp-container: 1200px;
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.lp section {
    max-width: 100vw;
    overflow-x: clip;
}

.lp__container {
    width: 100%;
    max-width: var(--lp-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.lp section {
    padding: var(--lp-section-y) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.lp section:last-of-type {
    border-bottom: none;
}

.lp__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.lp__h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.lp__lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 0 2.5rem;
}

/* === HERO === */
.lp-hero {
    display: grid;
    place-items: center;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 136, 58, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.lp-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}

.lp-hero__stage {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.lp-hero__source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lp-hero__canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.lp-hero__title {
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.02em;
    max-width: 100%;
    overflow-wrap: break-word;
}

.lp-hero__subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.lp-hero__ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
    white-space: nowrap;
}

.lp-btn--primary {
    background: var(--accent);
    color: #1a0e04;
    border-color: var(--accent);
}

.lp-btn--primary:hover,
.lp-btn--primary:focus-visible {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.lp-btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.lp-btn--ghost:hover,
.lp-btn--ghost:focus-visible {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
    color: var(--text-heading);
}

.lp-btn--lg {
    min-height: 56px;
    padding: 0 2rem;
    font-size: 1.05rem;
}

.lp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.lp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--bg-surface);
}

.lp-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* === ABOUT (3 bento cards) === */
.lp-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.lp-bento__card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg, 12px);
    padding: 1.75rem;
    transition: border-color 200ms ease-out, transform 200ms ease-out;
}

.lp-bento__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.lp-bento__icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.lp-bento__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.lp-bento__body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* === HERO CLASSES grid === */
.lp-classes__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.lp-class {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.lp-class:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    border-left-color: var(--accent-hover);
}

.lp-class__name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.3rem;
    letter-spacing: 0.02em;
}

.lp-class__body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Role accent colors */
.lp-class--tank   { border-left-color: var(--info); }
.lp-class--tank:hover   { border-left-color: var(--info); }
.lp-class--dps    { border-left-color: var(--danger); }
.lp-class--dps:hover    { border-left-color: var(--danger); }
.lp-class--support{ border-left-color: var(--success); }
.lp-class--support:hover{ border-left-color: var(--success); }

/* === LOOP (4 steps) === */
.lp-loop {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    counter-reset: lp-step;
}

.lp-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    counter-increment: lp-step;
}

.lp-step::before {
    content: counter(lp-step, decimal-leading-zero);
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-muted);
}

.lp-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.4rem;
}

.lp-step__body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

/* === WORLD (biome strip) === */
.lp-biomes {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.lp-biome {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-primary);
}

.lp-biome__swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* === FINAL CTA === */
.lp-finalcta {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    border-top: 1px solid var(--border-default);
    text-align: center;
    padding: 4rem 1.25rem !important;
}

.lp-finalcta__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.lp-finalcta__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.75rem;
}

.lp-finalcta__login {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lp-finalcta__login a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.lp-finalcta__login a:hover,
.lp-finalcta__login a:focus-visible {
    text-decoration: underline;
}

/* === FOOTER === */
.lp-footer {
    text-align: center;
    padding: 1.5rem 1.25rem !important;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: none !important;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    .lp-btn,
    .lp-bento__card,
    .lp-class {
        transition: none;
    }
}

/* === Tablet (>=768px) === */
@media (min-width: 768px) {
    .lp {
        --lp-section-y: 5.5rem;
    }
    .lp-hero__stage {
        width: 280px;
        height: 280px;
    }
    .lp-bento {
        grid-template-columns: repeat(3, 1fr);
    }
    .lp-classes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lp-loop {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    .lp-biomes {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === Desktop (>=1024px) === */
@media (min-width: 1024px) {
    .lp {
        --lp-section-y: 7rem;
    }
    .lp-classes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lp-biomes {
        grid-template-columns: repeat(10, 1fr);
    }
    .lp-biome__label {
        font-size: 0.78rem;
    }
}
