<?php
require_once __DIR__ . '/config/config.php';
$loggedIn = isLoggedIn();
$dashboardUrl = (isAdmin() || isAssistant()) ? 'admin/dashboard.php' : 'user/dashboard.php';

// Allow iframe embedding + prevent any proxy/browser caching stale pages
header('X-Frame-Options: ALLOWALL');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');
header('Expires: Thu, 01 Jan 1970 00:00:00 GMT');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="heleket" content="fe56daef" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="theme-color" content="#0B0C10">
    <title><?php echo SITE_NAME; ?> — Connect. Verify. Dominate.</title>
    <link rel="icon" type="image/png" href="<?php echo SITE_URL; ?>/assets/images/logo.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=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <style>
        /* ── Reset ──────────────────────────────────────────── */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --black:      #0B0C10;
            --card:       rgba(255,255,255,0.045);
            --border:     rgba(255,255,255,0.09);
            --gold-1:     #FFD700;
            --gold-2:     #FFA500;
            --crimson:    #FF3B3B;
            --text:       #F0F0F0;
            --muted:      rgba(240,240,240,0.52);
            --font:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            --nav-h:      64px;
            --r:          14px;
            --ease:       0.32s cubic-bezier(0.25,0.8,0.25,1);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font);
            background: var(--black);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Subtle dot grid */
        body::before {
            content: '';
            position: fixed; inset: 0;
            background-image: radial-gradient(rgba(255,215,0,0.06) 1px, transparent 1px);
            background-size: 36px 36px;
            pointer-events: none;
            z-index: 0;
        }

        /* ── Navbar ──────────────────────────────────────────── */
        .nav {
            position: fixed; top: 0; left: 0; right: 0;
            height: var(--nav-h);
            display: flex; align-items: center;
            justify-content: space-between;
            padding: 0 max(1.25rem, 5vw);
            background: rgba(11,12,16,0.75);
            backdrop-filter: blur(18px) saturate(160%);
            -webkit-backdrop-filter: blur(18px) saturate(160%);
            border-bottom: 1px solid var(--border);
            z-index: 999;
            transition: background var(--ease);
        }
        .nav.solid { background: rgba(11,12,16,0.96); }

        .logo {
            display: flex; align-items: center; gap: 0.55rem;
            text-decoration: none; flex-shrink: 0;
        }
        .logo img {
            width: 36px;
            height: 36px;
            object-fit: cover;
            object-position: center;
            transform: scale(1.45);
            border-radius: 7px;
            display: block;
            flex-shrink: 0;
            overflow: hidden;
        }
        .logo img {
            width: 48px;
            height: 48px;
            min-width: 48px;
            min-height: 48px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
        }
        .logo {
            overflow: visible;
        }

        .nav-btns { display: flex; align-items: center; gap: 0.6rem; }

        .btn {
            display: inline-flex; align-items: center; gap: 0.4rem;
            padding: 0.5rem 1.15rem;
            border-radius: 8px; font-family: var(--font);
            font-size: 0.865rem; font-weight: 600;
            text-decoration: none; cursor: pointer; border: none;
            transition: all var(--ease); white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
        }
        .btn-ghost {
            color: var(--text); background: transparent;
            border: 1px solid var(--border);
        }
        .btn-ghost:hover, .btn-ghost:focus-visible {
            border-color: var(--gold-1); color: var(--gold-1);
            background: rgba(255,215,0,0.07);
        }
        .btn-gold {
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            color: #0B0C10; font-weight: 700;
            box-shadow: 0 0 22px rgba(255,165,0,0.28);
        }
        .btn-gold:hover, .btn-gold:focus-visible {
            transform: translateY(-1px) scale(1.03);
            box-shadow: 0 4px 28px rgba(255,165,0,0.48);
        }
        .btn-gold:active { transform: scale(0.98); }

        /* ── Hero ────────────────────────────────────────────── */
        .hero {
            position: relative; z-index: 1;
            min-height: 100svh;
            display: flex; flex-direction: column;
            align-items: center; justify-content: flex-start; text-align: center;
            padding: calc(var(--nav-h) + 2.25rem) max(1.25rem, 5vw) 2.5rem;
            overflow: hidden;
        }

        /* Glow behind hero */
        .hero::before {
            content: '';
            position: absolute; top: 38%; left: 50%;
            transform: translate(-50%, -50%);
            width: min(800px, 140vw); height: min(800px, 140vw);
            background: radial-gradient(ellipse,
                rgba(255,165,0,0.08) 0%,
                rgba(255,59,59,0.03) 45%,
                transparent 70%);
            pointer-events: none;
        }

        .hero-title {
            font-size: clamp(2rem, 6.5vw, 4.6rem);
            font-weight: 800; line-height: 1.07;
            letter-spacing: -0.025em;
            margin-bottom: 1.5rem;
            max-width: 900px;
        }

        /* ── Neo-Glass Grid Matrix ───────────────────────────── */
        .neo-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.7rem;
            width: 100%;
            max-width: 880px;
            margin: 0 auto 2rem;
        }
        .neo-pane {
            position: relative;
            background: rgba(255,255,255,0.028);
            backdrop-filter: blur(18px) saturate(160%);
            -webkit-backdrop-filter: blur(18px) saturate(160%);
            border: 1px solid rgba(255,215,0,0.22);
            border-radius: 14px;
            padding: 1.25rem 0.9rem 1.1rem;
            text-align: center;
            overflow: hidden;
            transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
            will-change: transform;
        }
        /* Top gold shimmer line */
        .neo-pane::before {
            content: '';
            position: absolute;
            top: 0; left: 15%; right: 15%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,215,0,0.65), transparent);
        }
        /* Corner accent */
        .neo-pane::after {
            content: '';
            position: absolute;
            top: 0; right: 0;
            width: 28px; height: 28px;
            background: linear-gradient(225deg, rgba(255,215,0,0.16), transparent);
            border-radius: 0 14px 0 0;
        }
        .neo-pane:hover {
            border-color: rgba(255,215,0,0.5);
            background: rgba(255,215,0,0.04);
            box-shadow: 0 0 28px rgba(255,165,0,0.1), 0 8px 32px rgba(0,0,0,0.35);
        }
        .neo-pane-val {
            font-size: clamp(1.4rem, 3.5vw, 2rem);
            font-weight: 800;
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
            margin-bottom: 0.3rem;
            letter-spacing: -0.02em;
        }
        .neo-pane-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--muted);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .neo-pane-icon {
            display: flex; align-items: center; justify-content: center;
            width: 32px; height: 32px;
            border-radius: 8px;
            background: rgba(255,215,0,0.08);
            border: 1px solid rgba(255,215,0,0.14);
            margin: 0 auto 0.65rem;
            font-size: 0.9rem;
            color: var(--gold-1);
        }
        .hero-title .brand {
            background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--crimson) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-title .sep { color: rgba(255,255,255,0.18); font-weight: 300; }

        .hero-sub {
            font-size: clamp(0.95rem, 2.2vw, 1.15rem);
            color: var(--muted); max-width: 540px;
            line-height: 1.78; margin-bottom: 2.25rem;
            font-weight: 400;
        }

        .hero-cta {
            display: flex; gap: 0.9rem;
            flex-wrap: wrap; justify-content: center;
        }

        .cta-primary {
            display: inline-flex; align-items: center; gap: 0.45rem;
            padding: 0.85rem 1.9rem;
            font-family: var(--font); font-size: 0.925rem; font-weight: 800;
            color: #0B0C10; text-decoration: none;
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            border-radius: 10px;
            box-shadow: 0 0 28px rgba(255,165,0,0.32), 0 4px 18px rgba(0,0,0,0.4);
            transition: all var(--ease);
            -webkit-tap-highlight-color: transparent;
        }
        .cta-primary:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 46px rgba(255,165,0,0.5), 0 8px 28px rgba(0,0,0,0.4); }
        .cta-primary:active { transform: scale(0.97); }

        .cta-secondary {
            display: inline-flex; align-items: center; gap: 0.4rem;
            padding: 0.85rem 1.5rem;
            font-family: var(--font); font-size: 0.925rem; font-weight: 600;
            color: var(--muted); text-decoration: none;
            transition: color var(--ease);
            -webkit-tap-highlight-color: transparent;
        }
        .cta-secondary:hover { color: var(--gold-1); }

        /* ── Shared ──────────────────────────────────────────── */
        section { position: relative; z-index: 1; }
        .s-label {
            display: inline-block;
            font-size: 0.68rem; font-weight: 700;
            letter-spacing: 0.2em; text-transform: uppercase;
            color: var(--gold-1); margin-bottom: 0.6rem;
        }
        .s-title {
            font-size: clamp(1.6rem, 4vw, 2.6rem);
            font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
        }

        /* ── Services ────────────────────────────────────────── */
        #services { padding: 5rem max(1.25rem, 5vw); }
        .services-wrap { max-width: 1280px; margin: 0 auto; }
        .services-hd { text-align: center; margin-bottom: 3rem; }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .card {
            position: relative;
            background: var(--card);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid var(--border);
            border-radius: var(--r);
            padding: 2rem 1.6rem;
            overflow: hidden;
            transition: border-color var(--ease), box-shadow var(--ease);
            transform-style: preserve-3d;
            will-change: transform;
            -webkit-tap-highlight-color: transparent;
        }
        .card::before {
            content: '';
            position: absolute; inset: 0; border-radius: var(--r);
            background: radial-gradient(ellipse at 50% -10%, rgba(255,215,0,0.09), transparent 60%);
            opacity: 0; transition: opacity var(--ease);
        }
        .card:hover::before { opacity: 1; }
        .card:hover {
            border-color: rgba(255,215,0,0.38);
            box-shadow: 0 0 38px rgba(255,165,0,0.1), 0 18px 50px rgba(0,0,0,0.45),
                        inset 0 1px 0 rgba(255,255,255,0.055);
        }
        /* Top-right corner accent */
        .card::after {
            content: '';
            position: absolute; top: 0; right: 0;
            width: 36px; height: 36px;
            background: linear-gradient(225deg, rgba(255,215,0,0.18), transparent);
            border-radius: 0 var(--r) 0 0;
            transition: width var(--ease), height var(--ease);
        }
        .card:hover::after { width: 68px; height: 68px; }

        .card-icon { width: 68px; height: 68px; margin-bottom: 1.35rem; }
        .card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
        .card p { font-size: 0.855rem; color: var(--muted); line-height: 1.72; }

        /* ── Why WeaverSM ────────────────────────────────────── */
        #why {
            padding: 5rem max(1.25rem, 5vw);
            background: linear-gradient(180deg, transparent, rgba(255,165,0,0.028) 50%, transparent);
        }
        .why-wrap {
            max-width: 1180px; margin: 0 auto;
            display: grid; grid-template-columns: 1.2fr 0.8fr;
            gap: 4rem; align-items: center;
        }

        /* Left: text + pills */
        .why-copy .s-label { display: block; margin-bottom: 0.45rem; }
        .why-copy .s-title { margin-bottom: 1.15rem; }
        .why-copy p { font-size: .975rem; color: var(--muted); line-height: 1.82; margin-bottom: .9rem; }

        .pillars {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 0.5rem; margin-top: 1.4rem;
        }
        .pill {
            display: flex; align-items: center; gap: 0.5rem;
            padding: 0.55rem 0.8rem;
            background: rgba(255,215,0,0.05);
            border: 1px solid rgba(255,215,0,0.1);
            border-radius: 8px;
            font-size: 0.8rem; font-weight: 600; color: var(--text);
            white-space: nowrap;
        }
        .pill-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--gold-1); box-shadow: 0 0 6px var(--gold-1);
            flex-shrink: 0;
        }

        /* Right: orbital visual panel */
        .why-visual {
            position: relative; height: 360px;
            border-radius: 18px; overflow: hidden;
            background: var(--card);
            border: 1px solid var(--border);
            backdrop-filter: blur(10px);
            display: flex; align-items: center; justify-content: center;
        }
        .why-orb { position: relative; width: 200px; height: 200px; }
        .w-ring {
            position: absolute; border-radius: 50%;
            border: 1px solid rgba(255,215,0,0.14);
            animation: pulse-r 3.2s ease-in-out infinite;
        }
        .w-ring:nth-child(1){ inset:0;     animation-delay:0s; }
        .w-ring:nth-child(2){ inset:-22%;  animation-delay:.55s; }
        .w-ring:nth-child(3){ inset:-44%;  animation-delay:1.1s; }
        .w-ring:nth-child(4){ inset:-66%;  animation-delay:1.65s; }
        @keyframes pulse-r {
            0%,100%{ opacity:.55; transform:scale(.96); }
            50%    { opacity:1;   transform:scale(1.03); }
        }
        .w-core {
            position: absolute; inset: 28%; border-radius: 50%;
            background: radial-gradient(ellipse at 35% 35%, var(--gold-1), var(--gold-2));
            box-shadow: 0 0 50px rgba(255,165,0,0.48);
            animation: pulse-c 2.6s ease-in-out infinite;
        }
        @keyframes pulse-c {
            0%,100%{ transform:scale(1);   box-shadow:0 0 50px rgba(255,165,0,.48); }
            50%    { transform:scale(1.1); box-shadow:0 0 80px rgba(255,165,0,.72); }
        }

        /* ── Footer ──────────────────────────────────────────── */
        footer {
            border-top: 1px solid var(--border);
            padding: 1.75rem max(1.25rem, 5vw);
            background: rgba(255,255,255,0.01);
            position: relative; z-index: 1;
        }
        .footer-in {
            max-width: 1180px; margin: 0 auto;
            display: flex; align-items: center;
            justify-content: space-between;
            flex-wrap: wrap; gap: 0.9rem;
        }
        .footer-copy { font-size: 0.78rem; color: var(--muted); }
        .footer-links { display: flex; gap: 1.35rem; }
        .footer-links a {
            font-size: 0.78rem; color: var(--muted);
            text-decoration: none; transition: color var(--ease);
        }
        .footer-links a:hover { color: var(--gold-1); }

        /* ══════════════════════════════════════════════════════
           RESPONSIVE — TABLET  (≤ 1024px)
        ══════════════════════════════════════════════════════ */
        @media (max-width: 900px) {
            /* Why: stack vertically — text first, orb below */
            .why-wrap {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }
            /* On tablet, show orb after copy (order swap) */
            .why-copy { order: 1; }
            .why-visual { order: 2; height: 240px; }
            .why-orb { width: 150px; height: 150px; }
        }

        /* ══════════════════════════════════════════════════════
           RESPONSIVE — MOBILE  (≤ 640px)
        ══════════════════════════════════════════════════════ */
        /* ══════════════════════════════════════════════════════
           RESPONSIVE — TABLET  (≤ 900px) — neo-grid 2×2
        ══════════════════════════════════════════════════════ */
        @media (max-width: 900px) {
            .neo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; max-width: 540px; }
        }

        /* ══════════════════════════════════════════════════════
           RESPONSIVE — MOBILE  (≤ 640px)
        ══════════════════════════════════════════════════════ */
        @media (max-width: 640px) {
            :root { --nav-h: 58px; }

            /* Nav */
            .nav { padding: 0 1.1rem; }
            .logo-text { font-size: 1rem; }
            .btn { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

            /* Hero */
            .hero {
                padding: calc(var(--nav-h) + 1.25rem) 1.1rem 2.5rem;
                justify-content: flex-start;
            }
            .hero::before { display: none; }
            .hero-title {
                font-size: clamp(1.8rem, 8.5vw, 2.4rem);
                letter-spacing: -0.02em;
                margin-bottom: 1.1rem;
            }

            /* Neo-grid — 2×2 on phones */
            .neo-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.45rem;
                max-width: 100%;
                margin-bottom: 1.4rem;
            }
            .neo-pane { padding: 0.9rem 0.65rem; border-radius: 10px; }
            .neo-pane-val { font-size: 1.3rem; }
            .neo-pane-label { font-size: 0.65rem; }
            .neo-pane-icon { width: 26px; height: 26px; font-size: 0.75rem; margin-bottom: 0.5rem; }

            .hero-sub { font-size: 0.9rem; margin-bottom: 1.5rem; }
            .hero-cta { flex-direction: column; align-items: center; gap: 0.7rem; }
            .cta-primary, .cta-secondary {
                width: 100%; max-width: 300px;
                justify-content: center;
                padding: 0.88rem 1.25rem;
            }

            /* Services — single column on small phones */
            #services { padding: 3rem 1.1rem; }
            .services-grid { grid-template-columns: 1fr; gap: 0.85rem; }
            .card { padding: 1.5rem 1.25rem; }
            .card-icon { width: 54px; height: 54px; }
            .card h3 { font-size: 1rem; }

            /* Why */
            #why { padding: 3rem 1.1rem; }
            .why-wrap { grid-template-columns: 1fr; gap: 2rem; }
            .why-copy { order: 1; }
            .why-visual { order: 2; height: 190px; }
            .why-orb { width: 120px; height: 120px; }
            .pillars { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
            .pill { font-size: 0.75rem; padding: 0.48rem 0.65rem; }

            /* Footer */
            footer { padding: 1.4rem 1.1rem; }
            .footer-in { flex-direction: column; text-align: center; gap: 0.7rem; }
            .footer-links { justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

            /* Disable tilt on touch */
            .card { transform: none !important; }
        }

        /* ══════════════════════════════════════════════════════
           RESPONSIVE — SMALL PHONE  (≤ 400px)
        ══════════════════════════════════════════════════════ */
        @media (max-width: 400px) {
            .hero-title { font-size: clamp(1.6rem, 8vw, 2rem); }
            .neo-grid { gap: 0.35rem; }
            .neo-pane-val { font-size: 1.15rem; }
        }

        /* ── Reduced motion ──────────────────────────────────── */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.2s !important; }
        }
    </style>
</head>
<body>

<!-- ── Navbar ──────────────────────────────────────────────── -->
<nav class="nav" id="nav">
    <a href="index.php" class="logo">
        <img src="/assets/images/logo.png" alt="WeaverSM">
    </a>
    <div class="nav-btns">
        <?php if ($loggedIn): ?>
            <a href="<?php echo $dashboardUrl; ?>" class="btn btn-gold">Dashboard</a>
        <?php else: ?>
            <a href="login.php" class="btn btn-ghost">Login</a>
            <a href="signup.php" class="btn btn-gold">Sign Up</a>
        <?php endif; ?>
    </div>
</nav>

<!-- ── Hero ────────────────────────────────────────────────── -->
<section class="hero">
    <!-- Primary headline — first, tight below nav -->
    <h1 class="hero-title">
        <span class="brand">WEAVERSM</span><span class="sep">:</span><br>
        CONNECT<span class="sep">.</span> VERIFY<span class="sep">.</span> DOMINATE.
    </h1>

    <!-- Interactive Neo-Glass Grid Matrix -->
    <div class="neo-grid" aria-hidden="true">
        <div class="neo-pane">
            <div class="neo-pane-icon">⚡</div>
            <div class="neo-pane-val">2.4M+</div>
            <div class="neo-pane-label">Orders Done</div>
        </div>
        <div class="neo-pane">
            <div class="neo-pane-icon">🌐</div>
            <div class="neo-pane-val">190+</div>
            <div class="neo-pane-label">Countries</div>
        </div>
        <div class="neo-pane">
            <div class="neo-pane-icon">🛡</div>
            <div class="neo-pane-val">99.9%</div>
            <div class="neo-pane-label">Uptime</div>
        </div>
        <div class="neo-pane">
            <div class="neo-pane-icon">★</div>
            <div class="neo-pane-val">4.9/5</div>
            <div class="neo-pane-label">Satisfaction</div>
        </div>
    </div>

    <p class="hero-sub">
        Weave your brand into the digital fabric — instant SMS verification,
        elite SMM growth, and high-conversion banners. Secure, scalable, built for those who don't settle.
    </p>
    <div class="hero-cta">
        <?php if ($loggedIn): ?>
            <a href="<?php echo $dashboardUrl; ?>" class="cta-primary">Launch Workspace &rarr;</a>
        <?php else: ?>
            <a href="signup.php" class="cta-primary">Launch Workspace &rarr;</a>
            <a href="#services" class="cta-secondary">( Explore Services &darr; )</a>
        <?php endif; ?>
    </div>
</section>

<!-- ── Services ─────────────────────────────────────────────── -->
<section id="services">
    <div class="services-wrap">
        <div class="services-hd">
            <span class="s-label">What We Offer</span>
            <h2 class="s-title">OUR SERVICES</h2>
        </div>
        <div class="services-grid" id="grid">

            <!-- SMM -->
            <div class="card">
                <svg class="card-icon" viewBox="0 0 68 68" fill="none" aria-hidden="true">
                    <defs>
                        <linearGradient id="g1" x1="0" y1="1" x2="0" y2="0"><stop offset="0%" stop-color="#FF6B00"/><stop offset="100%" stop-color="#FFD700"/></linearGradient>
                        <filter id="gf1"><feGaussianBlur stdDeviation="1.4" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
                    </defs>
                    <rect x="6"  y="44" width="11" height="18" rx="2" fill="url(#g1)" opacity=".8"/>
                    <rect x="22" y="30" width="11" height="32" rx="2" fill="url(#g1)" opacity=".9"/>
                    <rect x="38" y="16" width="11" height="46" rx="2" fill="url(#g1)"/>
                    <rect x="5"  y="43" width="11" height="4"  rx="1" fill="#FFD700" opacity=".45"/>
                    <rect x="21" y="29" width="11" height="4"  rx="1" fill="#FFD700" opacity=".45"/>
                    <rect x="37" y="15" width="11" height="4"  rx="1" fill="#FFD700" opacity=".55"/>
                    <path d="M9 51 Q28 26 50 9" stroke="#FFD700" stroke-width="1.8" stroke-linecap="round" fill="none" filter="url(#gf1)"/>
                    <circle cx="50" cy="9" r="3" fill="#FFD700" filter="url(#gf1)"/>
                    <line x1="4" y1="62" x2="60" y2="62" stroke="rgba(255,215,0,.18)" stroke-width="1"/>
                </svg>
                <h3>SMM Services</h3>
                <p>Boost followers, likes, views, and engagement across every major platform. Automated delivery at enterprise scale.</p>
            </div>

            <!-- SMS -->
            <div class="card">
                <svg class="card-icon" viewBox="0 0 68 68" fill="none" aria-hidden="true">
                    <defs>
                        <linearGradient id="g2" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#FFD700"/><stop offset="100%" stop-color="#FF6B00"/></linearGradient>
                        <filter id="gf2"><feGaussianBlur stdDeviation="1.8" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
                    </defs>
                    <path d="M34 6 L56 15 L56 34 C56 48 46 58 34 63 C22 58 12 48 12 34 L12 15 Z" fill="rgba(255,215,0,.07)" stroke="url(#g2)" stroke-width="1.4"/>
                    <path d="M34 13 L52 21 L52 34 C52 46 43 55 34 59 C25 55 16 46 16 34 L16 21 Z" fill="rgba(255,215,0,.04)"/>
                    <circle cx="34" cy="31" r="6" stroke="#FFD700" stroke-width="1.4" fill="rgba(255,215,0,.1)" filter="url(#gf2)"/>
                    <rect x="31" y="36" width="6" height="7" rx="1" fill="#FFD700" opacity=".75"/>
                    <path d="M34 31 Q46 22 54 11" stroke="rgba(255,215,0,.38)" stroke-width="1" stroke-dasharray="2 3" fill="none"/>
                    <circle cx="54" cy="11" r="2.2" fill="rgba(255,215,0,.65)" filter="url(#gf2)"/>
                    <circle cx="50" cy="16" r="1.5" fill="rgba(255,215,0,.4)"/>
                    <circle cx="43" cy="22" r="1"   fill="rgba(255,215,0,.28)"/>
                </svg>
                <h3>SMS Verification</h3>
                <p>Virtual numbers for secure SMS verification across hundreds of countries and platforms. Instant, private, reliable.</p>
            </div>

            <!-- Banner -->
            <div class="card">
                <svg class="card-icon" viewBox="0 0 68 68" fill="none" aria-hidden="true">
                    <defs>
                        <filter id="gf3"><feGaussianBlur stdDeviation="1.4" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
                    </defs>
                    <polygon points="34,7 57,50 11,50" fill="rgba(255,215,0,.05)" stroke="rgba(255,215,0,.14)" stroke-width="1"/>
                    <polygon points="34,13 53,48 15,48" fill="rgba(255,215,0,.07)" stroke="rgba(255,215,0,.22)" stroke-width="1"/>
                    <polygon points="34,19 49,46 19,46" fill="rgba(255,215,0,.11)" stroke="#FFD700" stroke-width="1.4"/>
                    <path d="M34 7 L19 2 L34 19" fill="rgba(255,215,0,.22)" filter="url(#gf3)"/>
                    <path d="M34 7 L49 2 L34 19" fill="rgba(255,165,0,.16)" filter="url(#gf3)"/>
                    <line x1="19" y1="50" x2="8"  y2="60" stroke="rgba(255,215,0,.5)" stroke-width="1.5" filter="url(#gf3)"/>
                    <line x1="57" y1="50" x2="63" y2="60" stroke="rgba(255,165,0,.5)" stroke-width="1.5" filter="url(#gf3)"/>
                    <line x1="34" y1="50" x2="34" y2="63" stroke="rgba(255,240,0,.75)" stroke-width="2" filter="url(#gf3)"/>
                    <circle cx="34" cy="7" r="2.8" fill="#FFD700" filter="url(#gf3)"/>
                </svg>
                <h3>Banner Service</h3>
                <p>High-impact banners engineered to stop the scroll, command attention, and convert audiences into customers.</p>
            </div>

            <!-- Prices -->
            <div class="card">
                <svg class="card-icon" viewBox="0 0 68 68" fill="none" aria-hidden="true">
                    <defs>
                        <linearGradient id="g4" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#FFD700"/><stop offset="100%" stop-color="#FFA500"/></linearGradient>
                        <filter id="gf4"><feGaussianBlur stdDeviation="1.8" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
                    </defs>
                    <circle cx="26" cy="27" r="15" stroke="url(#g4)" stroke-width="1.8" fill="rgba(255,215,0,.06)" filter="url(#gf4)"/>
                    <circle cx="42" cy="27" r="15" stroke="#FFA500"    stroke-width="1.8" fill="rgba(255,165,0,.06)" filter="url(#gf4)" opacity=".85"/>
                    <circle cx="34" cy="40" r="15" stroke="#FFD700"    stroke-width="1.8" fill="rgba(255,215,0,.06)" filter="url(#gf4)" opacity=".9"/>
                    <circle cx="34" cy="33" r="4.5" fill="rgba(255,215,0,.2)" stroke="#FFD700" stroke-width="1.4" filter="url(#gf4)"/>
                    <circle cx="34" cy="33" r="1.8" fill="#FFD700"/>
                </svg>
                <h3>Best Prices</h3>
                <p>Transparent, competitive pricing on every service. More output, less overhead, maximum ROI for your budget.</p>
            </div>

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

<!-- ── Why WeaverSM ──────────────────────────────────────────── -->
<section id="why">
    <div class="why-wrap">
        <!-- Left: headline + copy + pills -->
        <div class="why-copy">
            <span class="s-label">Why WeaverSM</span>
            <h2 class="s-title">Built Different.<br>Built to Win.</h2>
            <p>WeaverSM isn't a panel — it's a fully automated, speed-optimized digital infrastructure engineered for those who demand results. Every system runs autonomously, every order processes instantly.</p>
            <p>Where traditional panels rely on manual oversight, WeaverSM's ecosystem operates at machine speed — delivering outcomes before the competition even starts.</p>
            <div class="pillars">
                <div class="pill"><span class="pill-dot"></span>Fully Automated</div>
                <div class="pill"><span class="pill-dot"></span>Speed-Optimized</div>
                <div class="pill"><span class="pill-dot"></span>Enterprise Security</div>
                <div class="pill"><span class="pill-dot"></span>24/7 Uptime</div>
                <div class="pill"><span class="pill-dot"></span>Maximum ROI</div>
                <div class="pill"><span class="pill-dot"></span>Customer-First</div>
            </div>
        </div>
        <!-- Right: orbital visual -->
        <div class="why-visual">
            <div class="why-orb" aria-hidden="true">
                <div class="w-ring"></div>
                <div class="w-ring"></div>
                <div class="w-ring"></div>
                <div class="w-ring"></div>
                <div class="w-core"></div>
            </div>
        </div>
    </div>
</section>

<!-- ── Footer ────────────────────────────────────────────────── -->
<footer>
    <div class="footer-in">
        <p class="footer-copy">&copy; <?php echo date('Y'); ?> <?php echo SITE_NAME; ?>. All rights reserved.</p>
        <nav class="footer-links">
            <a href="#">Terms of Service</a>
            <a href="#">Privacy Policy</a>
            <a href="#">Refund Policy</a>
        </nav>
    </div>
</footer>

<script>
// Navbar scroll tint
const nav = document.getElementById('nav');
window.addEventListener('scroll', () => {
    nav.classList.toggle('solid', window.scrollY > 16);
}, { passive: true });

// 3D tilt — desktop only (skip on touch devices)
if (window.matchMedia('(hover: hover) and (pointer: fine)').matches) {
    document.querySelectorAll('.card').forEach(card => {
        card.addEventListener('mouseenter', () => {
            card.style.transition = 'transform 0.1s linear, border-color var(--ease), box-shadow var(--ease)';
        });
        card.addEventListener('mousemove', e => {
            const r = card.getBoundingClientRect();
            const dx = (e.clientX - r.left - r.width  / 2) / (r.width  / 2);
            const dy = (e.clientY - r.top  - r.height / 2) / (r.height / 2);
            card.style.transform = `perspective(700px) rotateX(${-dy * 7}deg) rotateY(${dx * 7}deg) translateZ(5px)`;
        });
        card.addEventListener('mouseleave', () => {
            card.style.transition = 'transform 0.55s cubic-bezier(0.25,0.8,0.25,1), border-color var(--ease), box-shadow var(--ease)';
            card.style.transform  = 'perspective(700px) rotateX(0) rotateY(0) translateZ(0)';
        });
    });
}

// Smooth anchor scroll
document.querySelectorAll('a[href^="#"]').forEach(a => {
    a.addEventListener('click', e => {
        const t = document.querySelector(a.getAttribute('href'));
        if (t) { e.preventDefault(); t.scrollIntoView({ behavior: 'smooth', block: 'start' }); }
    });
});
</script>
</body>
</html>
