:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #0071e3;
    --accent-glow: rgba(0, 113, 227, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --success: #32d74b;
    --pending: #ff9f0a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Gradient Mesh */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 30%);
    z-index: -1;
    animation: slowSpin 30s linear infinite;
    pointer-events: none;
}

@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    border-bottom: 1px solid var(--border);
    background-color: rgba(5, 5, 5, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo svg {
    color: #fff;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff;
}

.hub-container {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.app-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.app-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: rgba(30, 30, 30, 0.8);
}

.app-card:hover::before {
    opacity: 1;
}

.focusguard-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(0, 113, 227, 0.15);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.05);
}

.app-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.app-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
    line-height: 1.6;
}

.app-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-status.active {
    background-color: rgba(50, 215, 75, 0.1);
    color: var(--success);
    border: 1px solid rgba(50, 215, 75, 0.2);
}

.app-status.active::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.app-arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.focusguard-card:hover .app-arrow {
    opacity: 1;
    transform: translateX(0);
}

footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    background-color: rgba(5, 5, 5, 0.5);
}
