/* ═══════════════════════════════════════════════════════════
   AiVerdict Landing — "Council Chamber" redesign
   Syne display + Inter body · gold verdict + violet AI
   ═══════════════════════════════════════════════════════════ */

.page-landing {
    --ink: #050508;
    --ink-2: #0c0c14;
    --ink-3: #14141f;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.07);
    --border-2: rgba(255, 255, 255, 0.12);
    --text: #f0f0f3;
    --muted: #9494a8;
    --dim: #5c5c6e;
    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --indigo: #6366f1;
    --gold: #e8c468;
    --gold-dim: #c9a84c;
    --glow-v: rgba(124, 58, 237, 0.4);
    --glow-g: rgba(232, 196, 104, 0.25);
    --font-display: 'Syne', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 20px;
    --radius-sm: 12px;
}

.page-landing {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
}

.page-landing .main-content {
    padding: 0;
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

.page-landing .container {
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
}

.lp-keep {
    white-space: nowrap;
    hyphens: none;
}

/* ── Atmosphere ── */
.neural-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.lp-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.lp-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: auroraDrift 22s ease-in-out infinite;
}

.lp-aurora--1 {
    width: 55vw;
    height: 55vw;
    max-width: 700px;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 65%);
}

.lp-aurora--2 {
    width: 45vw;
    height: 45vw;
    max-width: 560px;
    top: 30%;
    right: -15%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 65%);
    animation-delay: -8s;
}

.lp-aurora--3 {
    width: 35vw;
    height: 35vw;
    max-width: 420px;
    bottom: 5%;
    left: 25%;
    background: radial-gradient(circle, rgba(232, 196, 104, 0.12), transparent 65%);
    animation-delay: -14s;
}

.lp-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

.lp-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 30%, var(--ink) 100%);
}

@keyframes auroraDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, -2%) scale(1.04); }
}

/* ── Navbar override ── */
.page-landing .navbar {
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.page-landing .logo { color: var(--text); }
.page-landing .logo-icon { color: var(--gold); animation: none; }
.page-landing .nav-link { color: var(--muted); }
.page-landing .nav-link:hover { color: var(--text); background: var(--surface); }
.page-landing .nav-toggle { color: var(--text); }

.page-landing .btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
    border: none;
    box-shadow: 0 4px 24px var(--glow-v);
}

.page-landing .btn-primary:hover {
    box-shadow: 0 6px 32px var(--glow-v);
    color: #fff;
}

.page-landing .btn-outline {
    color: #fff;
    border: 1px solid var(--border-2);
    background: transparent;
}

.page-landing .btn-outline:hover {
    border-color: var(--violet-light);
    background: rgba(124, 58, 237, 0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .page-landing .nav-links {
        background: rgba(5, 5, 8, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }
}

/* ── Footer ── */
.page-landing .footer {
    background: var(--ink-2);
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.page-landing .footer-logo { color: var(--text); }
.page-landing .footer-logo .ti { color: var(--gold); }
.page-landing .footer-links h4 { color: var(--text); }
.page-landing .footer-links a { color: var(--muted); }
.page-landing .footer-links a:hover { color: var(--gold); }
.page-landing .footer-bottom { border-color: var(--border); color: var(--dim); }

/* ── Shared typography ── */
.lp-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 12px;
}

.lp-section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.lp-section__lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto;
}

.lp-section__head {
    text-align: center;
    margin-bottom: 48px;
}

.lp-section {
    padding: 100px 0;
    position: relative;
}

.lp-section__wrap {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
}

/* ── Buttons ── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: none;
    vertical-align: middle;
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
}

.lp-btn > span {
    display: inline-block;
    line-height: 1.2;
}

.lp-btn--primary {
    background: linear-gradient(135deg, var(--violet) 0%, #5b21b6 50%, var(--indigo) 100%);
    color: #fff;
    box-shadow: 0 4px 28px var(--glow-v), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--glow-v), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lp-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-2);
    padding: 13px 26px;
}

.lp-btn--ghost:hover {
    border-color: var(--violet-light);
    background: rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
    color: #fff;
}

.lp-btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.lp-btn .ti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lp-btn:hover .ti { transform: translateX(3px); }

/* ── HERO ── */
.lp-hero {
    position: relative;
    padding: 48px 0 80px;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
}

.lp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    margin-bottom: 28px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    max-width: 100%;
    text-align: center;
}

.lp-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--glow-g);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.85); }
}

.lp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    text-wrap: balance;
}

.lp-highlight {
    font-style: normal;
    background: linear-gradient(120deg, var(--gold) 0%, #f5e6b8 40%, var(--violet-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 36px;
}

.lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.lp-stat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.lp-stat__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 10px;
    color: var(--violet-light);
    font-size: 1.1rem;
}

.lp-stat__text {
    font-size: 0.9rem;
    color: var(--muted);
}

.lp-stat__text strong {
    color: var(--gold);
    font-weight: 700;
}

/* ── Hero consensus visualization (Canvas) ── */
.lp-hero__viz {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.consensus-viz {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, rgba(124, 58, 237, 0.12), transparent 65%),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(34, 211, 238, 0.06), transparent 55%),
        rgba(8, 6, 18, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(124, 58, 237, 0.12);
}

.consensus-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.consensus-hud {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    z-index: 2;
}

.consensus-hud__tag {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(167, 139, 250, 0.7);
}

.consensus-hud__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(148, 148, 168, 0.85);
    letter-spacing: 0.02em;
}

.consensus-hud__pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
    animation: hudPulse 2s ease-in-out infinite;
}

@keyframes hudPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── PROCESS STEPS (2×2) ── */
.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bento__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    height: 100%;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.bento__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 196, 104, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento__card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(124, 58, 237, 0.08);
}

.bento__card:hover::after { opacity: 1; }

.bento__step {
    display: block;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(107, 70, 193, 0.4);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.bento__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: var(--violet-light);
}

.bento__card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.bento__card p {
    flex: 1;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── MODES ── */
.modes-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.mode-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 90px;
    padding: 24px 28px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: default;
    transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mode-chip > .ti {
    font-size: 1.5rem;
    color: var(--violet-light);
    flex-shrink: 0;
}

.mode-chip__name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.mode-chip__desc {
    display: block;
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.4;
}

.mode-chip:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.08);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.mode-chip--active {
    border: 1px solid rgba(107, 70, 193, 0.6);
    background: rgba(107, 70, 193, 0.15);
    box-shadow: 0 8px 32px rgba(107, 70, 193, 0.18);
    transform: translateY(-2px);
}

.mode-chip--active > .ti { color: var(--gold); }

/* ── EXPERTS ── */
.expert-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: stretch;
    width: 100%;
}

.expert-tile {
    display: flex;
    gap: 16px;
    min-height: 100%;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.expert-tile:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ec) 40%, transparent);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--ec) 15%, transparent);
}

.expert-tile__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-3);
    border: 1px solid color-mix(in srgb, var(--ec) 35%, transparent);
    border-radius: 14px;
    box-shadow: 0 0 24px color-mix(in srgb, var(--ec) 20%, transparent);
}

.expert-tile__avatar img {
    border-radius: 8px;
}

.expert-tile__body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.expert-tile__body code {
    display: block;
    font-size: 0.8rem;
    color: var(--dim);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.expert-tile__body p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── CTA ── */
.lp-cta {
    padding: 40px 0 120px;
}

.lp-cta__panel {
    position: relative;
    overflow: hidden;
    padding: 64px 40px;
    text-align: center;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.12) 0%, var(--ink-2) 50%, rgba(232, 196, 104, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 28px;
}

.lp-cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow-v), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.lp-cta__content {
    position: relative;
    z-index: 1;
}

.lp-cta__icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 16px var(--glow-g));
}

.lp-cta__panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.lp-cta__panel p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.lp-cta__content .lp-btn {
    margin-inline: auto;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 0.8s var(--ease-out) forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s + 0.2s);
}

.reveal[data-delay="0"] { --delay: 0; }
.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }
.reveal[data-delay="4"] { --delay: 4; }

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger bento */
.bento__card:nth-child(1) { transition-delay: 0.05s; }
.bento__card:nth-child(2) { transition-delay: 0.12s; }
.bento__card:nth-child(3) { transition-delay: 0.19s; }
.bento__card:nth-child(4) { transition-delay: 0.26s; }

.expert-tile:nth-child(1) { transition-delay: 0.04s; }
.expert-tile:nth-child(2) { transition-delay: 0.08s; }
.expert-tile:nth-child(3) { transition-delay: 0.12s; }
.expert-tile:nth-child(4) { transition-delay: 0.16s; }
.expert-tile:nth-child(5) { transition-delay: 0.2s; }
.expert-tile:nth-child(6) { transition-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .lp-hero__grid {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }

    .lp-hero__subtitle,
    .lp-section__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero__actions {
        justify-content: center;
    }

    .lp-pill { margin-left: auto; margin-right: auto; }

    .lp-stat { margin: 0 auto; }
}

@media (max-width: 640px) {
    .lp-hero {
        padding-top: 32px;
        min-height: auto;
    }

    .lp-section { padding: 72px 0; }

    .lp-hero__title {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
    }

    .lp-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-hero__actions .lp-btn {
        width: 100%;
    }

    .consensus-viz {
        width: min(360px, 92vw);
        border-radius: 20px;
    }

    .consensus-hud {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .consensus-hud__tag,
    .consensus-hud__status {
        font-size: 0.55rem;
    }

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

    .expert-deck {
        grid-template-columns: 1fr;
    }

    .lp-cta__panel { padding: 48px 24px; }

    .lp-cta__panel h2 {
        text-wrap: balance;
    }
}

@media (max-width: 540px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .bento__card {
        min-height: 0;
        padding: 22px;
    }
}

@media (max-width: 380px) {
    .bento__card h3 {
        font-size: 1.05rem;
    }

    .bento__card p {
        font-size: 0.88rem;
    }

    .lp-pill {
        font-size: 0.72rem;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .scroll-reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .lp-aurora,
    .lp-pill__dot,
    .consensus-hud__pulse {
        animation: none;
    }

    .neural-canvas { display: none; }
}
