/* JMM Digital - Modern UI Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --bg: #050507;
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-sidebar: rgba(0, 0, 0, 0.7);
    --primary: #00E5FF; /* Electric Cyan */
    --purple: #8b5cf6;
    --pink: #ec4899;
    --secondary: #8b5cf6;
    --accent: #00E5FF;
    --text: #f0f4f8;
    --text-main: #f0f4f8;
    --text-muted: #7a8ba6;
    --muted: #7a8ba6;
    --glass-border: rgba(0, 229, 255, 0.12);
    --border: rgba(0, 229, 255, 0.12);
    --glow: 0 0 40px rgba(0, 229, 255, 0.15);
    --glow-strong: 0 0 30px rgba(0, 229, 255, 0.2), 0 0 60px rgba(0, 229, 255, 0.1);
    --glow-hover: 0 0 30px rgba(0, 229, 255, 0.3), 0 0 80px rgba(139, 92, 246, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
    --grad: linear-gradient(135deg, #00E5FF, #8b5cf6);
    --grad2: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-primary: linear-gradient(135deg, #00E5FF, #8b5cf6);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.35);
    --border-glow: rgba(0, 229, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Ambient Edge Glow — Top, Sides & Bottom ===== */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.10) 0%, rgba(0,229,255,0.06) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Side ambient glows */
.side-glow-left,
.side-glow-right {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.side-glow-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,229,255,0.04) 0%, transparent 100%);
}
.side-glow-right {
    right: 0;
    background: linear-gradient(to left, rgba(139,92,246,0.04) 0%, transparent 100%);
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

/* Layout */
main {
    position: relative;
    z-index: 1;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Nav Home */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(25px);
    z-index: 999;
    border-bottom: 1px solid rgba(0,229,255,0.10);
    background: rgba(5, 5, 7, 0.75);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(0,229,255,0.05);
}

nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), rgba(139,92,246,0.3), rgba(0,229,255,0.4), transparent);
    pointer-events: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-sw {
    display: flex;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.lang-sw .active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero h1 span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* Components */
section {
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.svc-card, .persona, .price-card, .test-card, .glass-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.06), inset 0 1px 0 rgba(0, 229, 255, 0.08);
}

/* Gradient edge glow — the "blue light" effect */
.svc-card::before, .price-card::before, .test-card::before, .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(139, 92, 246, 0.15), rgba(0, 229, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.svc-card:hover::before, .price-card:hover::before, .test-card:hover::before, .glass-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.6), rgba(139, 92, 246, 0.35), rgba(0, 229, 255, 0.3));
}

.svc-card:hover, .persona:hover, .price-card:hover, .glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--glow-hover);
}

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.svc-icon.cyan { background: rgba(0, 229, 255, 0.1); color: var(--primary); }
.svc-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.svc-icon.pink { background: rgba(236, 72, 153, 0.1); color: var(--pink); }

/* Personas */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.persona {
    border-radius: 28px;
    padding: 0;
}

.persona-img {
    height: 280px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.persona-info {
    padding: 1.5rem;
}

.persona-stat {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card.featured {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), 0 0 80px rgba(0, 229, 255, 0.08), inset 0 1px 0 rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
}

.price-card.featured::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(139, 92, 246, 0.3), rgba(0, 229, 255, 0.4));
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.price-card ul li {
    padding: 0.6rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* FAQ */
details {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

details:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

details[open] {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
}

details summary {
    padding: 1.5rem 2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Specifics (Maintaining Compatibility) */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand-sidebar {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.nav-link i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 3rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.tier-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.tier-free { background: #64748b; }
.tier-pro { background: var(--purple); }
.tier-elite { background: var(--primary); box-shadow: var(--shadow-glow); }

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

.tool-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: inherit;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.06), inset 0 1px 0 rgba(0, 229, 255, 0.08);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(139, 92, 246, 0.15), rgba(0, 229, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.tool-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.6), rgba(139, 92, 246, 0.35), rgba(0, 229, 255, 0.3));
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: var(--glow-hover);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.tool-lock {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--muted);
}
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 700;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--muted);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--grad);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-upgrade {
    background: var(--gradient-primary);
    color: white;
}

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 6s ease-in-out infinite; }

@keyframes borderPulse {
    0%, 100% { border-color: rgba(0, 229, 255, 0.12); }
    50% { border-color: rgba(0, 229, 255, 0.25); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.08); }
    50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.15); }
}

/* Hero CTA glow animation */
.hero-cta .btn-primary {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }

/* Selection */
::selection { background: rgba(0, 229, 255, 0.2); color: #fff; }

/* Navbar blue glow bottom line */
nav { border-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent) 1; }

/* Stats section blue accent */
.stats { border-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent) 1; }

@media (max-width: 900px) {
    .sidebar { width: 80px; }
    .main-content { margin-left: 80px; }
    nav { padding: 1rem 1.5rem; }
    .nav-links, .nav-right span { display: none; }
    .grid-6, .persona-grid, .pricing-grid { grid-template-columns: 1fr; }
}
