:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --bg-color: #09090b;
    --card-bg: rgba(24, 24, 27, 0.55);
    --text-color: #fafafa;
    --text-muted: #a1a1aa;
    --accent-color: #c084fc;
    --glass-bg: rgba(9, 9, 11, 0.8);
    --glass-border: rgba(255, 255, 255, 0.07);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.45);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 12% 50%, rgba(99, 102, 241, 0.11) 0%, transparent 45%),
        radial-gradient(ellipse at 88% 20%, rgba(139, 92, 246, 0.09) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 95%, rgba(192, 132, 252, 0.06) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    z-index: -1;
    pointer-events: none;
}

/* ===================== NAVIGATION ===================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(9, 9, 11, 0.93);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 34px;
    width: auto;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-color);
    line-height: 1;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 0.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: var(--text-color);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.22);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================== LAYOUT ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 88px 0;
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    line-height: 1.06;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(175deg, #ffffff 25%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.75;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: -0.01em;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===================== CARDS & GRIDS ===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(99, 102, 241, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================== BADGES ===================== */
.price-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.22);
    letter-spacing: 0.01em;
}

.badge-free {
    background: rgba(61, 220, 132, 0.1);
    color: #3DDC84;
    border-color: rgba(61, 220, 132, 0.25);
}

/* ===================== BLOG THUMBNAILS ===================== */
.blog-thumb-pdf {
    background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
}

.blog-thumb-finance {
    background: linear-gradient(135deg, #1a3a2a, #2d6a4a);
}

.blog-thumb-writing {
    background: linear-gradient(135deg, #3a1a5f, #6a2d9f);
}

/* ===================== PHILOSOPHY SPLIT ===================== */
.philosophy-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.philosophy-split .quote-mark {
    font-size: 7rem;
    line-height: 0.8;
    color: var(--secondary-color);
    font-family: Georgia, serif;
    flex-shrink: 0;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.philosophy-split .content {
    border-left: 2px solid var(--secondary-color);
    padding-left: 2rem;
}

/* ===================== FORMS ===================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(161, 161, 170, 0.45);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===================== FOOTER ===================== */
footer,
footer.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(6, 6, 8, 0.95);
    position: relative;
    margin-top: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col.brand {
    gap: 0;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(161, 161, 170, 0.6);
    margin-bottom: 0.85rem;
    display: block;
}

.footer-col a {
    color: rgba(161, 161, 170, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    width: fit-content;
    line-height: 1.9;
}

.footer-col a:hover {
    color: var(--text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(161, 161, 170, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.copyright {
    text-align: center;
    color: rgba(161, 161, 170, 0.35);
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-col.brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.9rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 0.2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.7rem 1rem;
        border-radius: var(--radius-md);
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col.brand {
        grid-column: unset;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .card {
        padding: 1.75rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-grid {
        padding: 0 1.25rem;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ===================== GRID VARIANTS ===================== */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-apps {
        gap: 0.85rem;
    }

    .app-icon-card {
        width: 110px;
    }
}

/* ===================== UTILITIES ===================== */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-icon {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.trust-icon:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

/* ===================== HERO UTILITIES ===================== */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-stats span i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.hero-stats .divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.12);
}

.hero-apps {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.app-icon-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.25rem;
    text-align: center;
    width: 130px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    display: block;
}

.app-icon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 16px 36px rgba(99, 102, 246, 0.18);
}

.app-icon-card img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.app-icon-card h4 {
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Section label pill */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--radius-full);
}

/* Feature icon row */
.feature-icon {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

/* ===================== FAQ ===================== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    padding: 1.35rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    gap: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}