/* Base Styles and Modern Reset */
:root {
    --primary-color: #7c3aed;
    /* Violet */
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary-color: #3b82f6;
    /* Blue */
    --accent-color: #ec4899;
    /* Pink */
    --accent-light: #f472b6;

    --background-color: #030712;
    /* Deep dark background */
    --surface-color: rgba(17, 24, 39, 0.6);
    /* Glass surface */
    --surface-border: rgba(255, 255, 255, 0.08);

    --text-primary: #f8fafc;
    /* Crisp white */
    --text-secondary: #94a3b8;
    /* Soft blue-gray */

    --glow-primary: rgba(124, 58, 237, 0.4);
    --glow-secondary: rgba(59, 130, 246, 0.4);
    --glow-accent: rgba(236, 72, 153, 0.4);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.stars-container::before,
.stars-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 15% 25%, white 1%, transparent 0%),
        radial-gradient(1.5px 1.5px at 50% 70%, rgba(255, 255, 255, 0.8) 1%, transparent 0%),
        radial-gradient(2px 2px at 80% 40%, rgba(255, 255, 255, 0.6) 1%, transparent 0%),
        radial-gradient(1px 1px at 30% 90%, white 1%, transparent 0%),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(255, 255, 255, 0.7) 1%, transparent 0%);
    background-size: 250px 250px;
    background-repeat: repeat;
    opacity: 0.15;
    animation: twinkle 6s ease-in-out infinite alternate;
}

.stars-container::after {
    background-size: 400px 400px;
    animation-delay: 3s;
    opacity: 0.1;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: var(--transition);
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px var(--primary-light));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
    /* Account for fixed header */
    position: relative;
    z-index: 1;
    /* Creates stacking context for ::before/after */
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 40%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    animation: float 4s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-light);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-color);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Tools Section (Apps) */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    z-index: -1;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(124, 58, 237, 0.1);
}

/* App Tool Card Specific */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-card .icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-card .app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.app-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: white;
}

.app-card p {
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Manifesto Section */
.manifesto-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(88, 28, 135, 0.2));
    border: 1px solid var(--surface-border);
    margin: 2rem auto;
    max-width: 1000px;
}

.manifesto-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.manifesto-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.manifesto-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    background: rgba(3, 7, 18, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.copyright {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hidden nav for mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .manifesto-section {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }

    .section {
        padding: 4rem 0;
    }
}

/* ─── Notify Modal ───────────────────────────────── */
#notify-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
}

#notify-modal {
    width: 380px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(30, 18, 80, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.2);
    overflow: hidden;
}

.notify-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0;
}

.notify-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.notify-header p {
    font-size: 0.75rem;
    color: rgba(167, 139, 250, 0.6);
    margin: 0;
}

.notify-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.notify-close:hover {
    color: rgba(255, 255, 255, 0.75);
}

#notify-form {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notify-label {
    font-size: 0.75rem;
    color: rgba(196, 181, 253, 0.75);
}

.notify-required {
    color: #f472b6;
}

.notify-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #f8fafc;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.notify-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.notify-input:focus {
    border-color: rgba(124, 58, 237, 0.7);
}

.notify-error {
    font-size: 0.75rem;
    color: #f472b6;
    margin: 0;
}

.notify-btn {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.notify-btn:hover {
    opacity: 0.9;
}

.notify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notify-success {
    padding: 2.5rem 1.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.notify-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.2rem;
}

.notify-success p {
    font-size: 0.875rem;
    color: #f8fafc;
    margin: 0;
}

.notify-link {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: rgba(196, 181, 253, 0.55);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s;
}

.notify-link:hover {
    color: rgba(196, 181, 253, 0.85);
}