/* ===================================
   DITCH 9 TO 5 - Landing Page Styles
   Design System from Ebook Brand
   =================================== */

/* CSS Variables - Design System */
:root {
    --primary: #1a1a2e;
    --primary-light: #252542;
    --accent: #e94560;
    --accent-hover: #ff5a75;
    --gold: #d4af37;
    --gold-hover: #e6c555;
    --purple: #7c3aed;
    --purple-hover: #9333ea;
    --light: #f8f9fa;
    --text: #2d3436;
    --text-muted: #636e72;
    --success: #4ade80;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #f4cf47 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utility Classes */
.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: var(--radius-xl);
}

.badge-gold {
    background: var(--gradient-gold);
    color: var(--primary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

/* Form Styles */
.email-form {
    width: 100%;
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    border: none;
    background: transparent;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group .btn {
    white-space: nowrap;
}

.form-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* Beehiiv Embed Form */
.beehiiv-form-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 32px;
    overflow: hidden;
}

.beehiiv-form-container iframe {
    width: 100%;
    border-radius: var(--radius-xl);
}

.hero .beehiiv-form-container .form-note {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    overflow: hidden;
    padding: 60px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-text .badge {
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero .email-form {
    margin-bottom: 32px;
}

.hero .form-note {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-right: -12px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
}

.social-proof p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Ebook Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ebook-mockup {
    position: relative;
    perspective: 1000px;
}

.ebook-cover {
    position: relative;
    width: 320px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow:
        var(--shadow-lg),
        0 0 60px rgba(233, 69, 96, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ebook-cover:hover {
    transform: rotateY(0) rotateX(0);
}

.ebook-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

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

.ebook-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 20px;
}

.ebook-cover h3 {
    font-size: 28px;
    margin-bottom: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ebook-cover p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.ebook-footer {
    position: absolute;
    bottom: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.floating-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 1s;
}

.floating-3 {
    top: 50%;
    right: -30px;
    animation-delay: 2s;
}

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

/* ===================================
   WHAT'S INSIDE SECTION
   =================================== */
.whats-inside {
    padding: 100px 0;
    background: var(--white);
}

.whats-inside h2 {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================================
   TRANSFORMATION SECTION
   =================================== */
.transformation {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.before, .after {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.before {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.after {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.before h3, .after h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.before h3 {
    color: rgba(255, 255, 255, 0.7);
}

.after h3 {
    color: var(--success);
}

.before ul, .after ul {
    list-style: none;
}

.before li, .after li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
}

.before li svg {
    flex-shrink: 0;
    stroke: var(--accent);
    margin-top: 2px;
}

.after li svg {
    flex-shrink: 0;
    stroke: var(--success);
    margin-top: 2px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder for when image isn't available */
.image-wrapper::before {
    content: '';
    display: block;
    padding-top: 120%;
    background: var(--gradient-primary);
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-gold);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.badge-text {
    font-size: 12px;
    color: var(--primary);
    opacity: 0.8;
}

.about-text .badge {
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p strong {
    color: var(--text);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
    padding: 100px 0;
    background: var(--light);
}

.testimonials h2 {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.author-title {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-section .email-form {
    margin: 0 auto 40px;
}

.cta-section .form-note {
    color: rgba(255, 255, 255, 0.6);
}

.cta-bonus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.bonus-item svg {
    stroke: var(--success);
}

/* ===================================
   PAID TEASER SECTION
   =================================== */
.paid-teaser {
    padding: 100px 0;
    background: var(--white);
}

.teaser-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.teaser-content .badge {
    margin-bottom: 24px;
}

.teaser-content h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
}

.teaser-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.teaser-content > p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.teaser-features {
    list-style: none;
    display: inline-block;
    text-align: left;
    margin-bottom: 40px;
}

.teaser-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 18px;
}

.teaser-features svg {
    flex-shrink: 0;
    stroke: var(--success);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--primary);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===================================
   SUCCESS MODAL
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon svg {
    stroke: var(--success);
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero .form-note {
        text-align: center;
    }

    .social-proof {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .ebook-cover {
        width: 280px;
        height: 360px;
    }

    .floating-element {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-stats {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .subtitle {
        font-size: 16px;
    }

    .beehiiv-form-container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .beehiiv-form-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 50px !important;
    }

    .hero .beehiiv-form-container {
        align-items: flex-start;
    }

    .hero .beehiiv-form-container .form-note {
        text-align: center;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-bonus {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .modal-content {
        margin: 20px;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .beehiiv-form-container iframe {
        height: 50px !important;
        border-radius: 25px !important;
    }

    .beehiiv-form-container .form-note {
        font-size: 12px;
        text-align: center;
        width: 100%;
    }

    .hero .beehiiv-form-container {
        align-items: center;
    }

    .ebook-cover {
        width: 240px;
        height: 300px;
    }

    .ebook-cover h3 {
        font-size: 22px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .before, .after {
        padding: 30px 20px;
    }
}
