:root {
    --primary: #3b69d6;
    /* Blue background */
    --secondary: #ffcc00;
    /* Yellow accents/buttons */
    --tertiary: #eb006f;
    /* Pink highlights */
    --bg-darker: #2b51ac;
    /* Darker blue */
    --bg-card: #f5eedc;
    /* Beige notebook paper */
    --text-main: #111111;
    /* Dark text for cards */
    --text-light: #ffffff;
    /* Light text for blue bg */
    --text-muted: #555555;
    /* Muted dark text */
    --border-color: #111111;
    --neo-shadow: 6px 6px 0px #111111;
    --neo-shadow-hover: 8px 8px 0px #111111;
    --neo-border: 4px solid #111111;
    --transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: var(--primary);
    /* Subtle wave/retro pattern using repeating radial gradient */
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--primary) 14px, transparent 15px), repeating-linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 100px);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0px #111;
    line-height: 1;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px #111;
}

p {
    font-weight: 600;
    font-size: 1.15rem;
}

.highlight {
    color: var(--tertiary);
    text-shadow: 3px 3px 0px #111;
}

/* Override for dark text containers */
.glassmorphism .highlight,
.module-card .highlight,
.cta-container .highlight {
    color: var(--tertiary);
    text-shadow: none;
}

/* Utilities */
.glassmorphism {
    /* Repurposed class for the Notebook/Torn Paper look */
    background: var(--bg-card);
    color: var(--text-main);
    border: var(--neo-border);
    border-radius: 12px;
    box-shadow: var(--neo-shadow);
    position: relative;
}

/* Notebook holes styling */
.glassmorphism::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 15px;
    width: 20px;
    border-left: 3px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
    background: repeating-linear-gradient(transparent,
            transparent 30px,
            #111 30px,
            #111 45px);
    opacity: 0.1;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow);
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-main);
}

.btn-primary:hover,
.glow-on-hover:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #111;
    background: #ffe047;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #111;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
}

.btn-secondary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #111;
    background: #fff;
}

.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #111;
}

/* Reset .glow-on-hover which had a complex animation */
.glow-on-hover::before,
.glow-on-hover::after {
    display: none !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.2s, padding 0.2s;
}

.navbar.scrolled {
    background: var(--primary);
    border-bottom: var(--neo-border);
    padding: 1rem 5%;
    box-shadow: 0 4px 0px #111;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1px;
    text-shadow: 3px 3px 0 #111;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #111;
    box-shadow: 2px 2px 0px #111;
    background-color: #fff;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0px #111;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--text-light);
    border: 2px solid #111;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 10rem 5% 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--tertiary);
    color: #fff;
    border: var(--neo-border);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #111;
    margin-bottom: 2rem;
    transform: rotate(-3deg);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 90%;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1.2rem;
    border: var(--neo-border);
    border-radius: 12px;
    box-shadow: var(--neo-shadow);
    text-align: center;
    flex: 1;
    min-width: 130px;
    transform: rotate(2deg);
    transition: transform 0.2s;
}

.stat:nth-child(even) {
    transform: rotate(-2deg);
}

.stat:hover {
    transform: scale(1.05) rotate(0deg);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.stat p {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border: var(--neo-border);
    border-radius: 12px;
    box-shadow: 12px 12px 0px #111;
    transform: rotate(3deg);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.glass-orb {
    display: none;
}

/* Sections General */
section {
    padding: 7rem 5%;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    color: var(--text-light);
}

.section-header p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #fff;
}

/* Modules Grid */
.modules-section {
    background: var(--bg-darker);
    border-top: var(--neo-border);
    border-bottom: var(--neo-border);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.module-card {
    background: var(--bg-card);
    color: var(--text-main);
    border: var(--neo-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--neo-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    transform: rotate(-1deg);
}

.module-card:nth-child(even) {
    transform: rotate(1.5deg);
}

.module-card:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: var(--neo-shadow-hover);
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--secondary);
    border: var(--neo-border);
    border-radius: 50%;
    box-shadow: 4px 4px 0px #111;
}

.module-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.module-card p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-section {
    background: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    padding: 3rem;
    padding-left: 4.5rem;
    transform: rotate(1deg);
    transition: transform 0.2s;
}

.testimonial-card:nth-child(2) {
    transform: rotate(-1.5deg);
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.quote {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 3px solid #111;
    padding-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.author img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #111;
    box-shadow: 3px 3px 0px #111;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    border-top: var(--neo-border);
    display: flex;
    justify-content: center;
    padding-block: 8rem;
}

.cta-container {
    text-align: center;
    padding: 4rem 3rem;
    max-width: 800px;
    width: 100%;
    background: var(--bg-card);
    border: var(--neo-border);
    box-shadow: 12px 12px 0px #111;
    position: relative;
    transform: rotate(-1deg);
}

.cta-container h2 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.cta-container>p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.price {
    margin: 2rem auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: var(--neo-border);
    border-radius: 12px;
    width: fit-content;
    box-shadow: var(--neo-shadow);
    transform: rotate(2deg);
}

.new-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.payment-period {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    background: var(--primary);
    color: #fff;
}

.btn-large:hover {
    background: var(--bg-darker);
    color: #fff;
}

.guarantee {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: var(--neo-border);
    padding: 6rem 5% 3rem;
    background: var(--text-main);
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    text-shadow: none;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 1rem;
    max-width: 300px;
    color: #bbb;
    font-weight: 500;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    color: #111;
    border-color: #111;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #333;
    font-size: 0.95rem;
    color: #888;
    font-weight: 600;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px) rotate(-1deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--target-rotation, 0deg));
}

.module-card.fade-up {
    --target-rotation: -1deg;
}

.module-card:nth-child(even).fade-up {
    --target-rotation: 1.5deg;
}

.testimonial-card.fade-up {
    --target-rotation: 1deg;
}

.testimonial-card:nth-child(even).fade-up {
    --target-rotation: -1.5deg;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 10rem;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        padding: 2rem;
        border-bottom: var(--neo-border);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .mobile-cta-item {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .price {
        flex-direction: column;
        gap: 0.5rem;
    }

    .new-price {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 5rem 5%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}