/* ============================================
           SQUID NETWORK - MERGED UI
           Dark Theme with Yellow + Orange Accents
           ============================================ */

        /* ---------- CSS Variables ---------- */
        :root {
            --bg: #0a0a0c;
            --bg-elevated: #111114;
            --bg-card: #15151a;
            --bg-card-hover: #1a1a22;
            --border: rgba(255, 255, 255, 0.06);
            --border-hover: rgba(255, 255, 255, 0.12);
            --text: #e8e8ec;
            --text-secondary: #9a9aa4;
            --muted: #6b6b78;
            --neon: #f5a623;
            --neon-glow: rgba(245, 166, 35, 0.35);
            --neon-dim: rgba(245, 166, 35, 0.08);
            --accent-yellow: #f5d623;
            --accent-yellow-glow: rgba(245, 214, 35, 0.35);
            --accent-yellow-dim: rgba(245, 214, 35, 0.08);
            --accent-green: #38bc77;
            --accent-green-dim: rgba(56, 188, 119, 0.15);
            --accent-red: #ff4757;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
            --shadow-neon: 0 0 20px var(--neon-glow), 0 0 40px rgba(245, 166, 35, 0.1);
            --transition-fast: 0.2s ease;
            --transition-base: 0.3s ease;
            --transition-slow: 0.5s ease;
            --container-max: 1200px;
            --container-padding: 24px;
        }

        /* ---------- Reset & Base ---------- */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
        }
        img { max-width: 100%; height: auto; display: block; }
        a { color: inherit; text-decoration: none; }
        button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
        ul, ol { list-style: none; }

        /* ---------- Background Aura & Particles ---------- */
        .aura-bg {
            position: fixed; inset: 0; z-index: 0;
            overflow: hidden; pointer-events: none;
        }
        .aura {
            position: absolute; border-radius: 50%;
            filter: blur(80px); opacity: 0.15;
            animation: auraFloat 20s ease-in-out infinite;
        }
        .aura-1 { width: 600px; height: 600px; background: var(--neon); top: -10%; left: -10%; animation-delay: 0s; }
        .aura-2 { width: 500px; height: 500px; background: #e8e83a; top: 40%; right: -15%; animation-delay: -7s; opacity: 0.12; }
        .aura-3 { width: 400px; height: 400px; background: var(--accent-yellow); bottom: -10%; left: 30%; animation-delay: -14s; opacity: 0.1; }
        @keyframes auraFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(30px, -30px) scale(1.1); }
            50% { transform: translate(-20px, 20px) scale(0.95); }
            75% { transform: translate(20px, 10px) scale(1.05); }
        }
        .grid-overlay {
            position: absolute; inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
        }
        .particles {
            position: fixed; top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none; z-index: 1;
            overflow: hidden;
        }
        .particle {
            position: absolute; width: 4px; height: 4px;
            background: var(--neon); border-radius: 50%;
            opacity: 0.3; animation: float 15s infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10%, 90% { opacity: 0.3; }
            100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
        }

        /* ---------- Utility ---------- */
        .container {
            width: 100%; max-width: var(--container-max);
            margin: 0 auto; padding: 0 var(--container-padding);
        }
        .text-neon { color: var(--neon); }
        [hidden] { display: none !important; }

        /* ---------- Navbar ---------- */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0;
            z-index: 1000; padding: 16px 0;
            transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
        }
        .navbar.scrolled {
            background: rgba(10, 10, 12, 0.85);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid var(--border);
        }
        .nav-container {
            display: flex; align-items: center; justify-content: space-between;
        }
        .nav-brand {
            display: flex; align-items: center; gap: 10px;
            font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
        }
        .brand-mark {
            width: 36px; height: 36px; border-radius: 10px;
            overflow: hidden; background: var(--bg-elevated);
            border: 1px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .brand-logo {
            width: 28px; height: 28px; object-fit: cover; border-radius: 6px;
        }
        .brand-text-accent { color: var(--neon); margin-left: 2px; }
        .brand-text-accent-yellow { color: var(--accent-yellow); margin-left: 2px; }
        .nav-menu {
            display: flex; align-items: center; gap: 32px;
        }
        .nav-links {
            display: flex; gap: 28px;
        }
        .nav-link {
            font-size: 0.9rem; font-weight: 500;
            color: var(--text-secondary);
            transition: color var(--transition-fast);
            position: relative;
        }
        .nav-link::after {
            content: ''; position: absolute; bottom: -4px; left: 0;
            width: 0; height: 2px; background: var(--neon);
            border-radius: 2px; transition: width var(--transition-base);
        }
        .nav-link:hover, .nav-link.active { color: var(--text); }
        .nav-link:hover::after, .nav-link.active::after { width: 100%; }
        .server-status-nav {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.8rem; color: var(--accent-green);
            margin-right: 12px;
        }
        .status-dot-nav {
            width: 8px; height: 8px; background: var(--accent-green);
            border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.8); }
        }
        .hamburger {
            display: none; flex-direction: column; gap: 5px;
            padding: 8px; z-index: 1001;
        }
        .hamburger span {
            display: block; width: 24px; height: 2px;
            background: var(--text); border-radius: 2px;
            transition: all var(--transition-base);
        }
        .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.active span:nth-child(2) { opacity: 0; }
        .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* ---------- Buttons ---------- */
        .btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px; padding: 12px 24px; border-radius: var(--radius-md);
            font-size: 0.9rem; font-weight: 600; cursor: pointer;
            transition: all var(--transition-fast); border: 1px solid transparent;
            white-space: nowrap;
        }
        .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        .btn-neon {
            background: var(--neon); color: var(--bg);
            border-color: var(--neon); box-shadow: 0 0 15px var(--neon-glow);
        }
        .btn-neon:hover {
            background: #ffb84d;
            box-shadow: 0 0 25px var(--neon-glow), 0 0 50px rgba(245, 166, 35, 0.15);
            transform: translateY(-1px);
        }
        .btn-ghost {
            background: transparent; color: var(--text);
            border-color: var(--border);
        }
        .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--border-hover);
        }
        .btn-sm { padding: 8px 18px; font-size: 0.85rem; }

        /* ---------- Hero Section ---------- */
        .hero {
            padding: 140px 0 80px; position: relative; z-index: 1;
            text-align: center;
        }
        .hero-container { max-width: 800px; margin: 0 auto; }
        .hero-logo {
            width: 120px; height: 120px; object-fit: contain;
            margin: 0 auto 24px;
            filter: drop-shadow(0 8px 32px rgba(245, 166, 35, 0.4));
            animation: bob 3s ease-in-out infinite;
        }
        @keyframes bob {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .hero-pill {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 16px; background: var(--bg-elevated);
            border: 1px solid var(--border); border-radius: 100px;
            font-size: 0.85rem; color: var(--text-secondary);
            margin-bottom: 32px;
        }
        .pill-dot {
            width: 8px; height: 8px; background: var(--neon);
            border-radius: 50%; box-shadow: 0 0 8px var(--neon-glow);
            animation: pulse 2s ease-in-out infinite;
        }
        .hero-title { margin-bottom: 20px; }
        .hero-headline {
            display: block;
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
        }
        .hero-headline .text-neon {
            background: linear-gradient(135deg, var(--neon), var(--accent-yellow));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-sub {
            font-size: 1.05rem; color: var(--text-secondary);
            max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
        }
        .hero-cta {
            display: flex; align-items: center; justify-content: center;
            gap: 12px; flex-wrap: wrap; margin-bottom: 48px;
        }
        .server-ip-box {
            display: inline-flex; align-items: center; gap: 12px;
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 14px 24px;
            cursor: pointer; transition: all var(--transition-base);
            margin-bottom: 36px;
        }
        .server-ip-box:hover {
            border-color: var(--neon);
            box-shadow: 0 0 20px var(--neon-glow);
            transform: translateY(-2px);
        }
        .server-ip-box .ip {
            font-size: 1.1rem; font-weight: 700; color: var(--neon);
            font-family: 'SF Mono', monospace;
        }
        .server-ip-box .copy-hint {
            font-size: 0.8rem; color: var(--muted);
        }
        .hero-stats {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 16px; max-width: 600px; margin: 0 auto;
        }
        .stat-box {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 20px 16px;
            text-align: center; transition: all var(--transition-base);
        }
        .stat-box:hover {
            border-color: rgba(245, 166, 35, 0.2);
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .stat-box .number {
            font-size: 1.6rem; font-weight: 800; color: var(--neon);
            display: block; margin-bottom: 4px;
        }
        .stat-box .label {
            font-size: 0.75rem; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: 1px;
        }

        /* ---------- Sections ---------- */
        .section {
            position: relative; z-index: 1;
            padding: 80px 0;
        }
        .section-head {
            text-align: center; margin-bottom: 48px;
            max-width: 640px; margin-left: auto; margin-right: auto;
        }
        .section-tag {
            display: inline-block; padding: 4px 14px;
            background: var(--neon-dim);
            border: 1px solid rgba(245, 166, 35, 0.15);
            border-radius: 100px; font-size: 0.8rem;
            font-weight: 600; color: var(--neon);
            text-transform: uppercase; letter-spacing: 0.08em;
            margin-bottom: 16px;
        }
        .section-head h2 {
            font-size: clamp(1.8rem, 4vw, 2.4rem);
            font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px;
        }
        .section-head p {
            color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
        }

        /* ---------- Cards Grid ---------- */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        .card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 28px;
            transition: all var(--transition-base);
            position: relative; overflow: hidden;
        }
        .card::before {
            content: ''; position: absolute; top: 0; left: 0;
            width: 100%; height: 3px;
            background: linear-gradient(90deg, var(--neon), var(--accent-yellow));
            opacity: 0; transition: opacity var(--transition-base);
        }
        .card:hover {
            transform: translateY(-4px);
            border-color: rgba(245, 166, 35, 0.2);
            box-shadow: var(--shadow-md), 0 0 30px rgba(245, 166, 35, 0.05);
        }
        .card:hover::before { opacity: 1; }
        .card-icon {
            width: 48px; height: 48px;
            background: linear-gradient(135deg, var(--neon-dim), rgba(245, 214, 35, 0.08));
            border-radius: var(--radius-md); border: 1px solid rgba(245, 166, 35, 0.15);
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; margin-bottom: 16px; color: var(--neon);
        }
        .card h3 {
            font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text);
        }
        .card p {
            color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
        }

        /* ---------- Service Cards (from new UI) ---------- */
        .service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        .service-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 24px;
            transition: all var(--transition-base);
            display: flex; flex-direction: column;
        }
        .service-card:hover {
            background: var(--bg-card-hover);
            border-color: rgba(245, 166, 35, 0.2);
            transform: translateY(-4px);
            box-shadow: var(--shadow-md), 0 0 30px rgba(245, 166, 35, 0.05);
        }
        .service-card-top {
            display: flex; justify-content: space-between;
            align-items: flex-start; margin-bottom: 16px;
        }
        .badge {
            display: inline-block; padding: 3px 10px;
            border-radius: 100px; font-size: 0.75rem; font-weight: 600;
        }
        .badge-soft {
            background: var(--neon-dim); color: var(--neon);
            border: 1px solid rgba(245, 166, 35, 0.15);
        }
        .service-card-icon {
            width: 40px; height: 40px;
            background: var(--bg-elevated); border-radius: var(--radius-md);
            border: 1px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            color: var(--neon);
        }
        .service-card h4 {
            font-size: 1.05rem; font-weight: 700;
            margin-bottom: 8px; color: var(--text);
        }
        .service-card > p {
            font-size: 0.88rem; color: var(--text-secondary);
            line-height: 1.6; flex-grow: 1;
        }

        /* ---------- Community Links ---------- */
        .links-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
        }
        .link-card {
            display: flex; flex-direction: column; align-items: center;
            gap: 10px; background: var(--bg-card);
            border-radius: var(--radius-lg); padding: 24px;
            text-decoration: none; color: var(--text);
            border: 1px solid var(--border);
            transition: all var(--transition-base);
        }
        .link-card:hover {
            transform: translateY(-4px) scale(1.02);
            border-color: var(--neon);
            box-shadow: var(--shadow-md);
        }
        .link-icon {
            width: 52px; height: 52px; border-radius: var(--radius-md);
            display: flex; align-items: center; justify-content: center;
            transition: all var(--transition-base);
        }
        .link-icon svg { width: 28px; height: 28px; }
        .link-discord { background: rgba(88, 101, 242, 0.15); color: #5865F2; }
        .link-card:hover .link-discord { background: rgba(88, 101, 242, 0.25); box-shadow: 0 0 20px rgba(88, 101, 242, 0.3); }
        .link-youtube { background: rgba(255, 0, 0, 0.15); color: #FF0000; }
        .link-card:hover .link-youtube { background: rgba(255, 0, 0, 0.25); box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
        .link-tiktok { background: rgba(255, 255, 255, 0.08); color: #fff; }
        .link-card:hover .link-tiktok { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
        .link-instagram { background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(88, 81, 219, 0.15)); color: #E1306C; }
        .link-card:hover .link-instagram { background: linear-gradient(135deg, rgba(225, 48, 108, 0.25), rgba(88, 81, 219, 0.25)); box-shadow: 0 0 20px rgba(225, 48, 108, 0.3); }
        .link-twitter { background: rgba(255, 255, 255, 0.08); color: #fff; }
        .link-card:hover .link-twitter { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
        .link-web { background: var(--neon-dim); color: var(--neon); }
        .link-card:hover .link-web { background: rgba(245, 166, 35, 0.25); box-shadow: 0 0 20px var(--neon-glow); }
        .link-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
        .link-count { font-size: 0.8rem; color: var(--muted); }

        /* ---------- Footer ---------- */
        .footer {
            padding: 60px 0 0; border-top: 1px solid var(--border);
            background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
        }
        .footer-container {
            display: grid; grid-template-columns: 1.5fr 1fr;
            gap: 60px; padding-bottom: 40px;
        }
        .footer-brand p {
            margin-top: 16px; color: var(--text-secondary);
            font-size: 0.9rem; max-width: 360px; line-height: 1.7;
        }
        .footer-links {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 40px;
        }
        .footer-links h4 {
            font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text);
        }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a {
            font-size: 0.9rem; color: var(--text-secondary);
            transition: color var(--transition-fast);
        }
        .footer-links a:hover { color: var(--neon); }
        .footer-bottom {
            display: flex; justify-content: space-between; align-items: center;
            padding: 20px 0; border-top: 1px solid var(--border);
            font-size: 0.8rem; color: var(--muted);
        }

        /* ---------- Toast ---------- */
        .toast {
            position: fixed; bottom: 24px; left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--bg-card); border: 1px solid var(--neon);
            color: var(--neon); padding: 14px 28px;
            border-radius: var(--radius-lg); font-weight: 700;
            z-index: 10000; opacity: 0;
            transition: all 0.3s ease; font-size: 0.95rem;
            white-space: nowrap; box-shadow: var(--shadow-neon);
        }
        .toast.show {
            opacity: 1; transform: translateX(-50%) translateY(0);
        }

        /* ---------- Scroll Animations ---------- */
        .fade-in {
            opacity: 0; transform: translateY(24px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in.visible { opacity: 1; transform: translateY(0); }

        /* ---------- Mobile Menu Overlay ---------- */
        .menu-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
            z-index: 998; opacity: 0; transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .menu-overlay.active { display: block; opacity: 1; pointer-events: all; }

        /* ---------- Responsive ---------- */
        @media (max-width: 1024px) {
            .hero-stats { grid-template-columns: repeat(2, 1fr); }
            .service-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .service-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            :root { --container-padding: 16px; }
            .nav-menu {
                position: fixed; top: 0; right: -100%;
                width: 280px; height: 100vh;
                background: var(--bg); border-left: 1px solid var(--border);
                flex-direction: column; padding: 80px 24px 24px;
                gap: 24px; transition: right var(--transition-base);
                z-index: 999;
            }
            .nav-menu.open { right: 0; }
            .nav-links { flex-direction: column; gap: 8px; width: 100%; }
            .nav-link { padding: 10px 0; font-size: 1rem; }
            .server-status-nav { display: none; }
            .hamburger { display: flex; }
            .hero { padding: 120px 0 60px; }
            .hero-logo { width: 100px; height: 100px; }
            .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .stat-box { padding: 16px 12px; }
            .stat-box .number { font-size: 1.3rem; }
            .footer-container { grid-template-columns: 1fr; gap: 40px; }
            .footer-links { gap: 24px; }
            .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
        }
        @media (max-width: 480px) {
            .hero-cta { flex-direction: column; width: 100%; }
            .hero-cta .btn { width: 100%; }
            .server-ip-box { flex-direction: column; gap: 6px; }
            .hero-stats { grid-template-columns: repeat(2, 1fr); }
        }
