<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ $app_name ?? config('app.name') }}</title>
    <meta name="description" content="{{ strip_tags($app_tagline2 ?? 'Enterprise management platform') }}">
    <link rel="icon" type="image/png" href="{{ asset($app_favicon ?? 'assets/img/favicon.png') }}">

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap"
        rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">

    <style>
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --font: 'Outfit', sans-serif;
            --text: #111118;
            --text-muted: #6b7280;
            --text-light: #9ca3af;
            --border: rgba(0, 0, 0, 0.07);
            --border-dark: rgba(0, 0, 0, 0.13);
            --card-bg: rgba(255, 255, 255, 0.62);
            --card-hover: rgba(255, 255, 255, 0.85);
            --btn-primary: #111118;
            --btn-primary-text: #ffffff;
            --radius: 18px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font);
            color: var(--text);
            background: #f0f4f8;
            background-image: radial-gradient(circle at 30% 30%, #f6f7ed 0%, #cdedf8 50%, #f5c8f1 100%);
            background-attachment: fixed;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        /* ── SCROLLBAR ─────────────────────────────── */
        ::-webkit-scrollbar {
            width: 5px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 10px;
        }

        /* ── NAVBAR ────────────────────────────────── */
        .lp-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 18px 0;
            transition: all 0.35s ease;
        }

        .lp-nav.scrolled {
            padding: 12px 0;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
        }

        .nav-inner {
            max-width: 1160px;
            margin: 0 auto;
            padding: 0 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .nav-logo img {
            height: 36px;
            object-fit: contain;
        }

        .nav-logo span {
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
        }

        .nav-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .btn-ghost {
            padding: 8px 20px;
            border-radius: 50px;
            background: transparent;
            border: 1px solid var(--border-dark);
            color: var(--text);
            font-family: var(--font);
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.6);
            color: var(--text);
        }

        .btn-solid {
            padding: 8px 22px;
            border-radius: 50px;
            background: var(--btn-primary);
            border: 1px solid var(--btn-primary);
            color: var(--btn-primary-text);
            font-family: var(--font);
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-solid:hover {
            background: #000;
            color: #fff;
            transform: translateY(-1px);
        }

        /* ── HERO ──────────────────────────────────── */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 130px 28px 80px;
            position: relative;
        }

        .hero-content {
            max-width: 740px;
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 16px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border-dark);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 28px;
            animation: fadeUp 0.55s ease both;
        }

        .hero-badge .dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
        }

        .hero-title {
            font-size: clamp(38px, 5.5vw, 68px);
            font-weight: 800;
            line-height: 1.08;
            letter-spacing: -2.5px;
            color: var(--text);
            margin-bottom: 18px;
            animation: fadeUp 0.55s 0.08s ease both;
        }

        .hero-title em {
            font-style: normal;
            color: var(--text-muted);
        }

        .hero-desc {
            font-size: 17px;
            line-height: 1.75;
            font-weight: 400;
            color: var(--text-muted);
            max-width: 520px;
            margin: 0 auto 36px;
            animation: fadeUp 0.55s 0.16s ease both;
        }

        .hero-cta {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeUp 0.55s 0.24s ease both;
            margin-bottom: 48px;
        }

        .btn-cta-primary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 32px;
            border-radius: 50px;
            background: var(--btn-primary);
            color: #fff;
            font-family: var(--font);
            font-size: 15px;
            font-weight: 700;
            text-decoration: none;
            border: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-cta-primary:hover {
            background: #000;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        .btn-cta-ghost {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 32px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            color: var(--text);
            font-family: var(--font);
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid var(--border-dark);
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-cta-ghost:hover {
            background: rgba(255, 255, 255, 0.95);
            color: var(--text);
            transform: translateY(-2px);
        }

        /* Hero floating card preview */
        .hero-preview {
            animation: fadeUp 0.7s 0.35s ease both;
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .preview-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border);
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .preview-pill i {
            font-size: 14px;
            color: var(--text);
        }

        /* ── STATS ─────────────────────────────────── */
        .stats-wrap {
            padding: 0 28px 80px;
        }

        .stats-card {
            max-width: 900px;
            margin: 0 auto;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            overflow: hidden;
        }

        .stat-item {
            padding: 28px 24px;
            text-align: center;
            border-right: 1px solid var(--border);
        }

        .stat-item:last-child {
            border-right: none;
        }

        .stat-num {
            font-size: 30px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -1px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 4px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        /* ── FEATURES ──────────────────────────────── */
        .section {
            padding: 80px 28px;
        }

        .section-inner {
            max-width: 1100px;
            margin: 0 auto;
        }

        .section-header {
            margin-bottom: 52px;
        }

        .section-label {
            display: inline-block;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-light);
            margin-bottom: 10px;
        }

        .section-title {
            font-size: clamp(26px, 3vw, 40px);
            font-weight: 800;
            letter-spacing: -1.5px;
            color: var(--text);
            line-height: 1.15;
        }

        .section-sub {
            font-size: 16px;
            color: var(--text-muted);
            margin-top: 10px;
            max-width: 480px;
            line-height: 1.7;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 28px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.25s ease;
        }

        .feature-card:hover {
            background: var(--card-hover);
            border-color: var(--border-dark);
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
        }

        .f-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid var(--border-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--text);
            margin-bottom: 16px;
        }

        .f-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 7px;
        }

        .f-desc {
            font-size: 13.5px;
            color: var(--text-muted);
            line-height: 1.65;
        }

        /* ── BENTO ─────────────────────────────────── */
        .bento-grid {
            display: grid;
            grid-template-columns: 1.3fr 1fr;
            gap: 12px;
        }

        .bento-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 32px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.25s ease;
        }

        .bento-card:hover {
            background: var(--card-hover);
            border-color: var(--border-dark);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
        }

        .bento-card.tall {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .bc-icon {
            font-size: 24px;
            color: var(--text-muted);
            margin-bottom: 16px;
            display: block;
        }

        .bc-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
        }

        .bc-desc {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.65;
        }

        .health-list {
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .health-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border);
            font-size: 13px;
        }

        .health-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .health-dot.ok {
            background: #22c55e;
            box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
        }

        .health-label {
            color: var(--text-muted);
            flex: 1;
        }

        .health-val {
            color: var(--text);
            font-weight: 600;
            font-size: 12px;
        }

        .tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 20px;
        }

        .tag {
            padding: 5px 13px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border-dark);
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ── CTA BAND ──────────────────────────────── */
        .cta-band {
            padding: 80px 28px;
        }

        .cta-inner {
            max-width: 660px;
            margin: 0 auto;
            text-align: center;
        }

        .cta-card {
            background: rgba(255, 255, 255, 0.65);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 60px 40px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .cta-title {
            font-size: clamp(26px, 3vw, 38px);
            font-weight: 800;
            letter-spacing: -1.5px;
            color: var(--text);
            margin-bottom: 12px;
        }

        .cta-desc {
            font-size: 16px;
            color: var(--text-muted);
            margin-bottom: 32px;
            line-height: 1.7;
        }

        /* ── FOOTER ────────────────────────────────── */
        .lp-footer {
            padding: 28px 28px;
            border-top: 1px solid var(--border);
        }

        .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 14px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 9px;
            text-decoration: none;
        }

        .footer-logo img {
            height: 22px;
            object-fit: contain;
            opacity: 0.5;
        }

        .footer-logo span {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-light);
        }

        .footer-links {
            display: flex;
            gap: 18px;
        }

        .footer-links a {
            font-size: 13px;
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--text);
        }

        .footer-copy {
            font-size: 13px;
            color: var(--text-light);
        }

        /* ── REVEAL ────────────────────────────────── */
        .reveal {
            opacity: 0;
            transform: translateY(22px);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }

        .reveal.in {
            opacity: 1;
            transform: none;
        }

        /* ── ANIMATIONS ────────────────────────────── */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        /* ── RESPONSIVE ────────────────────────────── */
        @media (max-width: 900px) {
            .feature-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .bento-grid {
                grid-template-columns: 1fr;
            }
        }

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

            .stats-card {
                grid-template-columns: repeat(2, 1fr);
            }

            .stat-item:nth-child(2) {
                border-right: none;
            }

            .hero-cta {
                flex-direction: column;
                align-items: center;
            }

            .btn-cta-primary,
            .btn-cta-ghost {
                width: 100%;
                justify-content: center;
            }

            .footer-inner {
                flex-direction: column;
                text-align: center;
            }

            .footer-links {
                justify-content: center;
            }

            .nav-logo span {
                display: none;
            }
        }
    </style>
</head>

<body>

    {{-- ══ NAVBAR ══════════════════════════════════════════════ --}}
    <nav class="lp-nav" id="lp-nav">
        <div class="nav-inner">
            <a href="{{ url('/') }}" class="nav-logo">
                <img src="{{ asset($app_logo ?? 'assets/img/logo.png') }}" alt="logo">
                <span>{{ $app_name ?? config('app.name') }}</span>
            </a>
            <div class="nav-actions">
                <a href="{{ route('login') }}" class="btn-ghost">Sign In</a>
                @if (Route::has('register'))
                    <a href="{{ route('register') }}" class="btn-solid">Get Started</a>
                @endif
            </div>
        </div>
    </nav>

    {{-- ══ HERO ══════════════════════════════════════════════════ --}}
    <section class="hero">
        <div class="hero-content">

            <div class="hero-badge">
                <span class="dot"></span>
                Enterprise Platform &mdash; Built on Laravel
            </div>

            <h1 class="hero-title">
                {{ $app_tagline1 ?? 'The platform' }}<br>
                <em>your team needs</em>
            </h1>

            <p class="hero-desc">
                {!! strip_tags($app_tagline2 ?? 'Centralized management for users, roles, and system operations. Built for teams that move fast.') !!}
            </p>

            <div class="hero-cta">
                <a href="{{ route('login') }}" class="btn-cta-primary">
                    <i class="bi bi-arrow-right-circle-fill"></i>
                    Open Dashboard
                </a>
                @if (Route::has('register'))
                    <a href="{{ route('register') }}" class="btn-cta-ghost">
                        Create Account <i class="bi bi-arrow-right"></i>
                    </a>
                @endif
            </div>

            <div class="hero-preview">
                <span class="preview-pill"><i class="bi bi-shield-check"></i> Role-Based Access</span>
                <span class="preview-pill"><i class="bi bi-phone"></i> Mobile API v1</span>
                <span class="preview-pill"><i class="bi bi-bell"></i> Real-time Notifications</span>
                <span class="preview-pill"><i class="bi bi-activity"></i> System Monitoring</span>
            </div>

        </div>
    </section>

    {{-- ══ STATS ═════════════════════════════════════════════════ --}}
    <div class="stats-wrap">
        <div class="stats-card reveal">
            <div class="stat-item">
                <div class="stat-num">99.9%</div>
                <div class="stat-label">Uptime SLA</div>
            </div>
            <div class="stat-item">
                <div class="stat-num">&lt;50ms</div>
                <div class="stat-label">Avg Response</div>
            </div>
            <div class="stat-item">
                <div class="stat-num">100+</div>
                <div class="stat-label">Permissions</div>
            </div>
            <div class="stat-item">
                <div class="stat-num">24/7</div>
                <div class="stat-label">Monitoring</div>
            </div>
        </div>
    </div>

    {{-- ══ FEATURES ══════════════════════════════════════════════ --}}
    <section class="section">
        <div class="section-inner">

            <div class="section-header reveal">
                <span class="section-label">Core Features</span>
                <h2 class="section-title">Everything built in,<br>nothing bolted on</h2>
                <p class="section-sub">A tightly integrated suite covering access control, monitoring, and operations.
                </p>
            </div>

            <div class="feature-grid">
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-people-fill"></i></div>
                    <div class="f-title">User Management</div>
                    <div class="f-desc">Create, manage, and deactivate users with fine-grained status controls and
                        soft-delete support.</div>
                </div>
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-shield-lock-fill"></i></div>
                    <div class="f-title">Role & Permissions</div>
                    <div class="f-desc">Spatie-powered RBAC with per-route permission guards and active-permission
                        middleware.</div>
                </div>
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-activity"></i></div>
                    <div class="f-title">System Monitoring</div>
                    <div class="f-desc">Real-time server stats, error logs, background jobs, and maintenance mode in one
                        panel.</div>
                </div>
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-bell-fill"></i></div>
                    <div class="f-title">Notification Center</div>
                    <div class="f-desc">Broadcast notifications across roles with real-time delivery via Laravel Reverb.
                    </div>
                </div>
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-phone-fill"></i></div>
                    <div class="f-title">Mobile API v1</div>
                    <div class="f-desc">Sanctum-authenticated REST API with OTP, push notifications, and Swagger docs.
                    </div>
                </div>
                <div class="feature-card reveal">
                    <div class="f-icon"><i class="bi bi-database-fill-lock"></i></div>
                    <div class="f-title">Backup & Restore</div>
                    <div class="f-desc">Scheduled backups with Google Drive integration and weekly automated
                        verification.</div>
                </div>
            </div>

        </div>
    </section>

    {{-- ══ BENTO GRID ════════════════════════════════════════════ --}}
    <section class="section" style="padding-top:0">
        <div class="section-inner">

            <div class="section-header reveal">
                <span class="section-label">Platform</span>
                <h2 class="section-title">Production-ready<br>from day one</h2>
            </div>

            <div class="bento-grid">

                <div class="bento-card tall reveal">
                    <div>
                        <i class="bi bi-heart-pulse-fill bc-icon"></i>
                        <div class="bc-title">Live Health Check</div>
                        <div class="bc-desc">Every deployment exposes <code
                                style="font-size:12px;background:rgba(0,0,0,0.06);padding:2px 7px;border-radius:5px;">/api/health</code>
                            with real-time status for every critical service.</div>
                    </div>
                    <div class="health-list">
                        <div class="health-row">
                            <span class="health-dot ok"></span>
                            <span class="health-label">database</span>
                            <span class="health-val">4ms · ok</span>
                        </div>
                        <div class="health-row">
                            <span class="health-dot ok"></span>
                            <span class="health-label">redis</span>
                            <span class="health-val">1ms · ok</span>
                        </div>
                        <div class="health-row">
                            <span class="health-dot ok"></span>
                            <span class="health-label">storage</span>
                            <span class="health-val">12% used · ok</span>
                        </div>
                        <div class="health-row">
                            <span class="health-dot ok"></span>
                            <span class="health-label">queue</span>
                            <span class="health-val">0 pending · ok</span>
                        </div>
                    </div>
                </div>

                <div style="display:flex;flex-direction:column;gap:12px;">

                    <div class="bento-card reveal">
                        <i class="bi bi-git bc-icon"></i>
                        <div class="bc-title">CI/CD Ready</div>
                        <div class="bc-desc">GitHub Actions with test, lint, and migration steps pre-wired for PHP 8.3 +
                            PostgreSQL.</div>
                        <div class="tag-row">
                            <span class="tag">PHP 8.3</span>
                            <span class="tag">PostgreSQL 15</span>
                            <span class="tag">Pest</span>
                            <span class="tag">Redis 7</span>
                        </div>
                    </div>

                    <div class="bento-card reveal">
                        <i class="bi bi-fingerprint bc-icon"></i>
                        <div class="bc-title">Security First</div>
                        <div class="bc-desc">OTP 2FA, session management, Sentry error tracking, and password policy
                            enforcement.</div>
                        <div class="tag-row">
                            <span class="tag">OTP</span>
                            <span class="tag">Sanctum</span>
                            <span class="tag">Sentry</span>
                            <span class="tag">RBAC</span>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </section>

    {{-- ══ CTA ═══════════════════════════════════════════════════ --}}
    <div class="cta-band">
        <div class="cta-inner reveal">
            <div class="cta-card">
                <p class="cta-title">Ready to take control?</p>
                <p class="cta-desc">Sign in to your dashboard and start managing your platform.</p>
                <div class="hero-cta" style="margin-bottom:0">
                    <a href="{{ route('login') }}" class="btn-cta-primary">
                        <i class="bi bi-box-arrow-in-right"></i> Sign In Now
                    </a>
                    @if (Route::has('register'))
                        <a href="{{ route('register') }}" class="btn-cta-ghost">
                            Create Account <i class="bi bi-arrow-right"></i>
                        </a>
                    @endif
                </div>
            </div>
        </div>
    </div>

    {{-- ══ FOOTER ═════════════════════════════════════════════════ --}}
    <footer class="lp-footer">
        <div class="footer-inner">
            <a href="{{ url('/') }}" class="footer-logo">
                <img src="{{ asset($app_logo ?? 'assets/img/logo.png') }}" alt="logo">
                <span>{{ $app_name ?? config('app.name') }}</span>
            </a>
            <div class="footer-links">
                @if (Route::has('legal.show'))
                    <a href="{{ route('legal.show', 'privacy') }}">Privacy</a>
                    <a href="{{ route('legal.show', 'terms') }}">Terms</a>
                @endif
                <a href="{{ route('login') }}">Sign In</a>
            </div>
            <p class="footer-copy">{{ $footer_text ?? '© ' . date('Y') . ' ' . ($app_name ?? config('app.name')) }}</p>
        </div>
    </footer>

    <script>
        // Sticky nav on scroll
        const nav = document.getElementById('lp-nav');
        window.addEventListener('scroll', () => {
            nav.classList.toggle('scrolled', window.scrollY > 30);
        }, { passive: true });

        // Scroll reveal
        const io = new IntersectionObserver((entries) => {
            entries.forEach((e, i) => {
                if (e.isIntersecting) {
                    setTimeout(() => e.target.classList.add('in'), i * 70);
                    io.unobserve(e.target);
                }
            });
        }, { threshold: 0.1 });
        document.querySelectorAll('.reveal').forEach(el => io.observe(el));
    </script>

</body>

</html>