:root {
    --primary: #a855f7;
    /* Purple */
    --secondary: #06b6d4;
    /* Cyan */
    --accent: #ec4899;
    /* Pink */
    --gradient: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
    --bg-light: #f8fafc;
    --text: #334155;
    --text-dark: #0f172a;
    --white: #ffffff;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --container: 1200px;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header .inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-dark);
}

header .logo img {
    height: 50px;
    width: auto;
}

header .logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a.cta {
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-left: 2rem;
}

nav a.cta:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    background: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.4);
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.app-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.app-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.app-link:hover {
    gap: 0.75rem;
    /* Slide arrow effect */
}

/* Footer */
footer {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 12px;
    transition: all 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header .inner {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid #e2e8f0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 200;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin-left: 0;
        padding: 0.75rem 2rem;
    }

    nav a.cta {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        border-radius: 50px;
        text-align: center;
    }

    .hero {
        padding: 3.5rem 1.25rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        overflow-wrap: break-word;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .container {
        padding: 2.5rem 1rem;
    }

    footer {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    /* Publish page form grid */
    #submit>div:last-child>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.6rem, 12vw, 2rem);
    }

    header .logo img {
        height: 36px;
    }
}