/* Forge - Landing Page v1.0
   Public landing poster for unauthenticated visitors.
   Full-bleed hero, restrained feature rhythm, and conversion CTA flow. */

.landing-body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.28), transparent 32%),
        radial-gradient(circle at 84% 16%, rgba(6, 182, 212, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
        var(--bg-primary);
}

.landing-shell {
    min-height: 100vh;
    position: relative;
    overflow: clip;
}

.landing-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
}

.landing-topbar,
.landing-main,
.landing-footer {
    position: relative;
    z-index: 1;
}
/* Topbar must own a higher stacking context than the hero so the language
   switcher dropdown is clickable when its menu overlaps the dashboard
   preview. Without this, the menu z-index 100 stays trapped inside the
   topbar's z-index-1 stacking context, sitting visually beneath the next
   sibling's content even though it renders on top of the page. */
.landing-topbar {
    z-index: 50;
}

.landing-topbar {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 1.2rem clamp(1rem, 2.8vw, 2.5rem) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
}

.landing-brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-amber);
    border-radius: 18px;
    border: 1px solid rgba(244, 201, 107, 0.25);
    background:
        radial-gradient(circle at 50% 50%, rgba(244, 201, 107, 0.18), transparent 65%),
        rgba(9, 10, 17, 0.82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.landing-brand-mark svg {
    width: 24px;
    height: 24px;
}

/* Square brand mark variant for the topbar (replaces the amber chip). The
   inline SVG inside .landing-brand-mark-square already paints its own dark
   ink panel via <rect rx=56>, so we strip the amber background + border
   that .landing-brand-mark applies by default and just keep the chip
   sized + add a violet drop-shadow that matches the brand palette. */
.landing-brand-mark.landing-brand-mark-square {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    padding: 0;
    filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.45));
    transition: filter var(--dur-fast, 160ms) var(--ease-out, ease-out), transform var(--dur-fast, 160ms) var(--ease-out, ease-out);
}
.landing-brand-mark.landing-brand-mark-square svg,
.landing-brand-mark.landing-brand-mark-square img {
    width: 100%;
    height: 100%;
    display: block;
    /* High-quality downsampling for the artist-supplied PNG with the 4px
       40%-opacity white stroke. Without explicit image-rendering: auto the
       stroke aliases into pixel mush at 56x56. -ms-interpolation-mode is the
       legacy IE / Edge equivalent. */
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    object-fit: contain;
}
.landing-brand:hover .landing-brand-mark.landing-brand-mark-square {
    filter: drop-shadow(0 8px 22px rgba(124, 58, 237, 0.75));
    transform: translateY(-1px);
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.landing-brand-text strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    line-height: 1;
}

.landing-brand-text span {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Nav-link panel: visible ink slab with hairline border so the row reads
   as a deliberate menu, not three floating words. Items inside get a
   subtle divider between them so each link is its own visual unit. */
.landing-nav-links {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.4rem;
}
.landing-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.78));
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease-out, background 0.15s ease-out;
}
.landing-nav-link:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.05);
}
.landing-nav-link + .landing-nav-link::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Topbar Arise link - violet-to-amber sigil gradient so the premium tab
   reads as the awaken-your-hunter signal, not just another nav text link.
   The up-arrow glyph keeps its own amber tint via -webkit-text-fill-color
   override so the gradient text-clip doesn't swallow it. */
.landing-nav-arise {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #a78bfa 0%, #f4c96b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: filter 0.15s var(--ease-out, ease-out), transform 0.15s var(--ease-out, ease-out);
}
.landing-nav-arise:hover {
    filter: brightness(1.18) drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
    transform: translateY(-1px);
}
.landing-nav-arise-glyph {
    -webkit-text-fill-color: var(--accent-amber, #f4c96b);
    color: var(--accent-amber, #f4c96b);
    font-size: 1.05em;
    line-height: 0.9;
}

.landing-nav a:not(.btn) {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.landing-main {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.8vw, 2.5rem) 4rem;
}

.landing-hero {
    min-height: calc(100svh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 5vh, 4rem) 0 3rem;
}

.landing-kicker {
    margin-bottom: 1.1rem;
    color: var(--accent-amber);
}

.landing-hero-copy {
    max-width: 38rem;
    animation: landing-rise 700ms var(--ease-out) both;
}

.landing-hero-copy h1 {
    margin: 0;
    font-size: clamp(3.25rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.landing-lead {
    margin: 1.35rem 0 0;
    max-width: 34rem;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.7;
}

.landing-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.landing-guest-link {
    color: var(--accent-amber);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.landing-stat-strip {
    margin: 2.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-stat-strip li {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-stat-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1;
    color: var(--text-primary);
}

.landing-stat-strip span {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-hero-visual {
    display: flex;
    justify-content: center;
    animation: landing-rise 850ms 120ms var(--ease-out) both;
}

.landing-visual-frame {
    position: relative;
    width: min(100%, 620px);
    aspect-ratio: 0.86;
    border-radius: 36px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 11, 20, 0.78), rgba(7, 8, 14, 0.96)),
        rgba(8, 9, 15, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-visual-grid,
.landing-signal,
.landing-visual-orb {
    position: absolute;
}

.landing-visual-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.landing-visual-orb {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.8;
    animation: landing-pulse 6s ease-in-out infinite;
}

.orb-a {
    top: 10%;
    left: -5%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.44), transparent 70%);
}

.orb-b {
    right: -3%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(244, 201, 107, 0.28), transparent 68%);
    animation-delay: 1.2s;
}

.landing-visual-body {
    /* Body silhouette fills more of the frame so the empty border around
       it doesn't dominate. inset 4% (was 7% top + 10% sides) keeps the
       wireframe legible while letting the orbs + grid still breathe at
       the edges. width 92% pairs with the smaller inset to actually use
       the frame's vertical real estate instead of floating in empty space. */
    position: absolute;
    inset: 4% 4% 4%;
    width: 92%;
    height: 92%;
    object-fit: contain;
    opacity: 0.92;
    filter:
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.06))
        drop-shadow(0 0 24px rgba(124, 58, 237, 0.22))
        saturate(0.8);
}

.landing-signal {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 201, 107, 0.75), transparent);
    opacity: 0.78;
}

.signal-a {
    top: 22%;
    left: 6%;
    width: 56%;
}

.signal-b {
    top: 54%;
    right: 4%;
    width: 48%;
}

.signal-c {
    bottom: 16%;
    left: 12%;
    width: 34%;
}

.landing-support,
.landing-detail,
.landing-cta {
    padding: 2.5rem 0;
}

.landing-section-heading {
    max-width: 42rem;
}

.landing-section-heading h2,
.landing-detail-copy h2,
.landing-cta h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
}

.landing-feature-columns {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.landing-feature {
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: landing-rise 700ms var(--ease-out) both;
}

.landing-feature:nth-child(2) {
    animation-delay: 100ms;
}

.landing-feature:nth-child(3) {
    animation-delay: 200ms;
}

.landing-feature-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent-amber);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.landing-feature h3,
.landing-rail-step h3 {
    margin: 0;
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
    line-height: 1.05;
}

.landing-feature p,
.landing-detail-copy p,
.landing-rail-step p,
.landing-cta p,
.landing-footer p {
    margin: 0.85rem 0 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.landing-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.landing-detail-rail {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(244, 201, 107, 0.22);
    display: grid;
    gap: 1.25rem;
}

.landing-rail-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.landing-rail-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-amber);
    border: 1px solid rgba(244, 201, 107, 0.28);
    background: rgba(244, 201, 107, 0.06);
}

.landing-cta {
    margin-top: 1rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
}

.landing-cta-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-footer {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 1rem clamp(1rem, 2.8vw, 2.5rem) 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.landing-footer-links a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* --- Footer v2 (rich, multi-column) --- */
.landing-footer-v2 {
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    width: 100%;
}
@media (max-width: 880px) {
    .landing-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
}
.landing-footer-brand {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.landing-footer-brand img {
    /* 72x72 forge-icon. Bigger than the previous 40x40 so the brand mark
       reads as a deliberate signature, not an afterthought beside the
       legal columns. drop-shadow keeps it floating against the slightly
       lighter footer background. */
    width: 72px;
    height: 72px;
    border-radius: 12px;
    filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.45));
}
.landing-footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    display: block;
}
.landing-footer-brand p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.landing-footer-col h4 {
    margin: 0 0 0.8rem;
    color: var(--text-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}
.landing-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.landing-footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease-out;
}
.landing-footer-col a:hover {
    color: var(--text-primary);
}
.landing-footer-contact p {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.landing-footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.landing-footer-bottom {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

@keyframes landing-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.68;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 1080px) {
    .landing-hero,
    .landing-detail,
    .landing-cta,
    .landing-feature-columns {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .landing-hero-copy {
        max-width: none;
    }

    .landing-hero-visual {
        order: -1;
    }

    .landing-visual-frame {
        width: min(100%, 700px);
        aspect-ratio: 1.05;
    }

    .landing-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .landing-topbar {
        padding-top: 0.85rem;
    }

    .landing-nav {
        width: 100%;
        justify-content: space-between;
    }

    .landing-nav a:not(.btn) {
        display: none;
    }

    .landing-actions {
        align-items: stretch;
    }

    .landing-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .landing-guest-link {
        width: 100%;
        text-align: center;
        padding-top: 0.15rem;
    }

    .landing-stat-strip {
        grid-template-columns: 1fr;
    }

    .landing-detail-rail {
        padding-left: 0;
        border-left: 0;
    }

    .landing-rail-step {
        grid-template-columns: 1fr;
    }

    .landing-rail-step span {
        margin-bottom: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-feature,
    .landing-hero-copy,
    .landing-hero-visual,
    .landing-visual-orb {
        animation: none !important;
    }
}
