/* === CSS RESET & VARIABLES === */
:root {
    /* Colors */
    --clr-bg-main: #F7FAF5; /* Very soft pastel green/grey for calmness */
    --clr-bg-soft: #EEF3E9; /* Slightly darker for contrast sections */
    --clr-accent: #789B77;  /* Sage green */
    --clr-accent-hover: #5F7D5E; /* Darker sage for hover */
    --clr-text-main: #334033; /* Dark earthy green/grey */
    --clr-text-light: #6A7A6A; /* Soft text */
    --clr-dark: #263326;     /* Darker footer */
    --clr-white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Oblik', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --container-md: 800px;
    --container-sm: 650px;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    font-size: 1.125rem; /* 18px */
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--clr-accent);
    transition: var(--transition);
}

h1, h2, h3, h4, .title, .subtitle, .section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--clr-text-main);
    margin-bottom: var(--space-md);
}

em {
    font-style: italic;
}


/* === UTILITIES === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-md {
    max-width: var(--container-md);
}

.container-sm {
    max-width: var(--container-sm);
}

.section {
    padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-lg { font-size: 1.25rem; }
.bg-soft { background-color: var(--clr-bg-soft); }
.bg-accent { background-color: var(--clr-accent); }
.bg-dark { background-color: var(--clr-dark); }
.text-light { color: var(--clr-white); }
.text-light h2 { color: var(--clr-white); }

.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-xl { margin-top: var(--space-xl); }
.pt-xl { margin-top: var(--space-xl); padding-top: var(--space-xl); }
.border-top { border-top: 1px solid rgba(0,0,0,0.1); }

/* Grid systems */
.grid {
    display: grid;
    gap: var(--space-lg);
}


/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(120, 155, 119, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 155, 119, 0.4);
}

.btn-secondary {
    background-color: var(--clr-bg-main);
    color: var(--clr-accent);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-light {
    background-color: var(--clr-white);
    color: var(--clr-dark);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-text {
    background-color: transparent;
    color: var(--clr-text-light);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--clr-text-main);
}

.btn-large {
    font-size: 1.15rem;
    padding: 1.25rem 3rem;
}


/* === BLOCKS STYLING === */

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 600px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero .eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.eyebrow-dark {
    color: var(--clr-text-light) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.offer-highlight {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--coral) !important;
    animation: blink-offer 1.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes blink-offer {
    0%, 100% {
        opacity: 1;
        transform: scale(1.02);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.hero .title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--clr-text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero .support-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: var(--clr-text-main);
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Typography elements */
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 2rem;
}

/* Why Born Content */
.why-born .text-content p {
    margin-bottom: 1.5rem;
}
.why-born .text-content p:last-child {
    margin-bottom: 0;
}

/* Divider lines */
.transition-divider {
    text-align: center;
    padding: var(--space-lg) 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--clr-text-light);
    font-size: 1.2rem;
}

.transition-divider .line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--clr-accent);
    margin: 1.5rem auto 0;
    opacity: 0.5;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.benefit-list li {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--clr-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.benefit-list .check {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Features Grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1.5rem;
}

/* Fragment Section */
.highlight-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
    text-align: center;
    color: var(--clr-accent);
    margin: 3rem 0;
    font-weight: 600;
}

.fragment .text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

/* Presale */
.presale-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--clr-text-light);
}

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

/* About Author */
.about-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
}

.author-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-author .text-content p {
    margin-bottom: 1.25rem;
}

/* Community Box */
.community-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.15rem;
}

/* Other Book */
.book-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.book-img-wrapper {
    flex: 0 0 200px;
}

.book-img-wrapper img {
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.book-details h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.book-details p {
    margin-bottom: 2rem;
    color: var(--clr-text-light);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
}

.closing-phrase {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-style: italic;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}

.footer-legal {
    margin-top: 5rem;
    font-size: 0.85rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}


/* === ANIMATIONS (Scroll triggered) === */
.slide-up, .fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up {
    transform: translateY(30px);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .author-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-lg) 0;
    }
    
    .book-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    .closing-phrase {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero .title {
        font-size: 2.25rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .benefit-list li {
        font-size: 1rem;
        padding: 0.75rem;
        align-items: center;
    }
}
