:root {
    --purple: #554FE0;
    --purple-light: #7B75F3;
    --pink: #F45BC1;
    --pink-light: #F785D1;
    --orange: #F9AB80;
    --orange-light: #FBC4A0;
    --black: #0A0A0A;
    --grey: #6B7280;
    --grey-light: #9CA3AF;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-bg: #F9FAFB;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header height */
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 80% 20%,
        rgba(85, 79, 224, 0.08) 0%,
        rgba(244, 91, 193, 0.05) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at 20% 80%,
        rgba(249, 171, 128, 0.06) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

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

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--black);
}

nav a:hover::before {
    width: 100%;
}

nav a.active {
    color: var(--purple);
}

nav a.active::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-image {
    position: relative;
    aspect-ratio: 3/4;
    max-width: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(85, 79, 224, 0.1) 0%,
        rgba(244, 91, 193, 0.1) 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg,
        rgba(85, 79, 224, 0.1) 0%,
        rgba(244, 91, 193, 0.1) 100%);
    border: 1px solid rgba(85, 79, 224, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(85, 79, 224, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(85, 79, 224, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--off-white);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}


/* Products Section */
.products {
    padding: 4rem 3rem 8rem;
    position: relative;
    z-index: 1;
}

.products-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.products-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 1rem;
}

.products-header p {
    font-size: 1.125rem;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

.products-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.15s; }
.product-item:nth-child(3) { animation-delay: 0.2s; }
.product-item:nth-child(4) { animation-delay: 0.25s; }
.product-item:nth-child(5) { animation-delay: 0.3s; }
.product-item:nth-child(6) { animation-delay: 0.35s; }

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.product-link {
    display: block;
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-info {
    flex: 1;
}

.category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--grey);
}

/* Category-specific colors */
.product-item[data-category="spreadsheet"] .category {
    background: linear-gradient(135deg,
        rgba(85, 79, 224, 0.08) 0%,
        rgba(123, 117, 243, 0.08) 100%);
    color: var(--purple);
}

.product-item[data-category="template"] .category {
    background: linear-gradient(135deg,
        rgba(244, 91, 193, 0.08) 0%,
        rgba(247, 133, 209, 0.08) 100%);
    color: var(--pink);
}

.product-item[data-category="course"] .category {
    background: linear-gradient(135deg,
        rgba(249, 171, 128, 0.08) 0%,
        rgba(251, 196, 160, 0.08) 100%);
    color: #E8753A;
}

.product-item[data-category="tool"] .category {
    background: linear-gradient(135deg,
        rgba(85, 79, 224, 0.08) 0%,
        rgba(249, 171, 128, 0.08) 100%);
    color: #9B7FE8;
}

.product-item[data-category="guide"] .category {
    background: linear-gradient(135deg,
        rgba(123, 117, 243, 0.08) 0%,
        rgba(244, 91, 193, 0.08) 100%);
    color: #B478DD;
}

.product-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-item:hover .product-info h3 {
    color: var(--purple);
}

.product-link p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--grey);
}

/* Price and Free tags */
.price,
.free {
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

.price {
    background: linear-gradient(135deg,
        rgba(85, 79, 224, 0.1) 0%,
        rgba(123, 117, 243, 0.1) 100%);
    color: var(--purple);
}

.free {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(74, 222, 128, 0.1) 100%);
    color: #16A34A;
}

/* Contact Section */
.contact {
    padding: 8rem 3rem;
    background: var(--light-bg);
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.contact h2 .gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 140px;
}

.contact-link:hover {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(85, 79, 224, 0.25);
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.contact-email a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-email a:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content .logo {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1.25rem 2rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.875rem;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .hero-image {
        max-width: 240px;
        aspect-ratio: 1/1;
    }

    .hero-container {
        gap: 2rem;
    }

    .products,
    .contact {
        padding: 4rem 2rem;
    }

    .product-link {
        padding: 1.5rem;
    }

    .product-header {
        flex-direction: column;
        gap: 1rem;
    }

    .price,
    .free {
        align-self: flex-start;
        font-size: 1.125rem;
        padding: 0.375rem 0.875rem;
    }

    .product-info h3 {
        font-size: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-content .logo {
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    nav {
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.8125rem;
    }

    .footer-content .logo {
        color: rgba(255, 255, 255, 0.6);
    }
}
