/* ============================================================================
   SPURA HUB v3 — Public marketing landing page (GET /)
   Served by src/Views/public/landing.twig (extends layouts/public.twig).
   Loaded after spura-design-tokens.css / public-core.css, so it shares the
   same token structure (and admin-configurable brand-color overrides via
   partials/theme_colors_style.twig) as every other public page.
   ============================================================================ */

.landing-shell {
    min-height: 100vh;
    min-height: calc(100svh - var(--safe-area-top) - var(--safe-area-bottom));
    background:
        radial-gradient(900px 450px at 10% 0% 0%, transparent 60%),
        radial-gradient(800px 400px at 92% 5% 0%, transparent 60%),
        var(--bg-primary);
}

@supports (height: 100dvh) {
    .landing-shell {
        min-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom));
    }
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 2rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: var(--safe-area-top); z-index: 40;
}
.landing-nav-logo {
    display: flex; align-items: center; gap: .625rem;
    text-decoration: none;
}
.landing-nav-logo img {
    height: 24px;
    width: auto;
}
.landing-nav-logo span {
    font-size: var(--type-callout-size);
    font-weight: 700;
    color: var(--ink-950);
    letter-spacing: -.01em;
}
.landing-nav-actions {
    display: flex; align-items: center; gap: .5rem;
}
.landing-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height-sm);
    padding: .4375rem 1rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-surface);
    font-size: var(--type-subhead-size);
    font-weight: 600;
    text-decoration: none;
}
.landing-btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    text-decoration: none;
}
.landing-btn-solid {
    padding: .4375rem 1rem;
    font-size: var(--type-subhead-size); font-weight: 600;
    color: var(--bg-surface);
    background: var(--text-primary);
    border: none; border-radius: var(--radius-md);
    cursor: pointer; text-decoration: none;
    transition: background var(--transition-fast);
    box-shadow: 0 1px 2px var(--glass-navy-20);
}
.landing-btn-solid:hover {
    background: var(--gray-700);
    text-decoration: none;
}

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

/* Hero section */
.landing-hero {
    padding: 5rem 0 4rem;
    text-align: center;
}
.landing-hero-badge {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .3125rem .875rem;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-full);
    font-size: var(--type-caption-size); font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.landing-hero-badge svg { width: 12px; height: 12px; fill: currentColor; }
.landing-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    color: var(--ink-950);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.landing-hero-title span {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-desc {
    font-size: var(--type-title-4-size);
    color: var(--text-muted);
    max-width: 54ch;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}
.landing-hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; flex-wrap: wrap;
}
.landing-hero-cta-primary {
    padding: .75rem 1.625rem;
    font-size: var(--type-callout-size); font-weight: 600;
    color: var(--bg-surface);
    background: var(--text-primary);
    border: none; border-radius: var(--radius-md);
    cursor: pointer; text-decoration: none;
    box-shadow: 0 1px 3px var(--glass-navy-25), inset 0 1px 0 var(--glass-white-06);
    transition: background var(--transition-fast);
}
.landing-hero-cta-primary:hover {
    background: var(--gray-700);
    text-decoration: none;
}
.landing-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height-lg);
    padding: .75rem 1.625rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-surface);
    font-size: var(--type-callout-size);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.landing-hero-cta-secondary:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    text-decoration: none;
}

/* Modules grid */
.landing-section {
    padding: 3.5rem 0;
}
.landing-section-header {
    margin-bottom: 2.5rem;
}
.landing-section-label {
    font-size: var(--type-caption-size); font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: .5rem;
}
.landing-section-title {
    font-size: var(--type-title-1-size); font-weight: 700;
    color: var(--ink-950); letter-spacing: -.025em;
    margin-bottom: .5rem;
}
.landing-section-desc {
    font-size: var(--type-callout-size); color: var(--text-muted);
    max-width: 54ch; line-height: 1.6;
}

.landing-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.landing-module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    box-shadow: var(--shadow-xs);
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.landing-module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.landing-module-card-meta {
    display: flex; gap: .375rem; flex-wrap: wrap;
    margin-bottom: .75rem;
}
.landing-module-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    font-size: var(--type-caption-2-size); font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: .01em;
}
.landing-module-badge-internal { background: var(--ink-100); color: var(--ink-600); }
.landing-module-badge-public { background: var(--brand-50); color: var(--brand-700); }

.landing-module-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: var(--ink-50);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .875rem;
    flex-shrink: 0;
}
.landing-module-icon svg {
    width: 18px; height: 18px;
    stroke: var(--ink-600);
    fill: none; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.landing-module-card.is-public .landing-module-icon {
    background: var(--brand-50);
}
.landing-module-card.is-public .landing-module-icon svg {
    stroke: var(--brand-600);
}

.landing-module-title {
    font-size: var(--type-body-size); font-weight: 600;
    color: var(--ink-950); letter-spacing: -.01em;
    margin-bottom: .3125rem;
}
.landing-module-desc {
    font-size: var(--type-subhead-size); color: var(--text-muted);
    line-height: 1.55; margin-bottom: .875rem;
    flex: 1;
}
.landing-module-bullets {
    list-style: none;
    margin-bottom: 1rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.landing-module-bullets li {
    font-size: var(--type-footnote-size); color: var(--text-secondary);
    display: flex; align-items: center; gap: .5rem;
}
.landing-module-bullets li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--border-color-strong);
    flex-shrink: 0;
}
.landing-module-card.is-public .landing-module-bullets li::before {
    background: var(--brand-400);
}
.landing-module-action {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .4375rem .875rem;
    font-size: var(--type-footnote-size); font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none; transition: all var(--transition-fast);
    border: 1px solid var(--border-color-strong);
    background: var(--bg-surface); color: var(--ink-900);
    box-shadow: var(--shadow-xs);
    align-self: flex-start;
}
.landing-module-action:hover { background: var(--bg-secondary); text-decoration: none; }
.landing-module-action svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.landing-module-card.is-public .landing-module-action {
    background: var(--brand-500);
    color: var(--bg-surface); border-color: var(--brand-600);
    box-shadow: 0 1px 3px var(--glass-brand-25);
}
.landing-module-card.is-public .landing-module-action:hover {
    background: var(--brand-600);
}

/* Footer landing */
.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 0;
    text-align: center;
}
.landing-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .625rem;
}
.landing-footer-links a {
    font-size: var(--type-subhead-size);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.landing-footer-links a:hover {
    color: var(--brand-700);
    text-decoration: underline;
}
.landing-footer p {
    font-size: var(--type-footnote-size);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .landing-btn-solid,
    .landing-btn-ghost,
    .landing-hero-cta-primary,
    .landing-hero-cta-secondary,
    .landing-module-action {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .landing-hero { padding: 3rem 0 2.5rem; }
    .landing-hero-actions { flex-direction: column; }
    .landing-hero-cta-primary,
    .landing-hero-cta-secondary { width: 100%; text-align: center; }
    .landing-modules-grid { grid-template-columns: 1fr; }
    .landing-nav { padding: .875rem max(1rem, var(--safe-area-right)) .875rem max(1rem, var(--safe-area-left)); }
    .landing-nav-logo img { max-width: 132px; }
    .landing-btn-ghost { display: none; }
}
