/* ===================================
   BoostBrainz - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    /* Colors - Aligned with Reset Your Teen book cover */
    --color-primary: #E87A1F;
    --color-primary-dark: #C66A18;
    --color-primary-light: #F59E0B;
    --color-secondary: #059669;
    --color-secondary-dark: #047857;
    --color-accent: #F59E0B;
    --color-accent-dark: #D97706;
    --color-danger: #EF4444;
    --color-danger-dark: #DC2626;

    /* Neutrals - Dark theme matching book */
    --color-dark: #0f0f1a;
    --color-dark-lighter: #1a1a2e;
    --color-gray: #6B7280;
    --color-gray-light: #9CA3AF;
    --color-light: #F9FAFB;
    --color-white: #FFFFFF;

    /* Gradients - Orange/Amber theme */
    --gradient-primary: linear-gradient(135deg, #E87A1F 0%, #F59E0B 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-text: linear-gradient(135deg, #E87A1F 0%, #F59E0B 100%);
    --gradient-warn: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;

    /* Borders & Shadows */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(232, 122, 31, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Base */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-amazon {
    background: #FF9900;
    color: var(--color-dark);
    font-weight: 700;
}

.btn-amazon:hover {
    background: #E88A00;
    transform: translateY(-2px);
}

.btn-download {
    background: var(--color-secondary);
    color: var(--color-white);
    width: 100%;
    padding: 1rem;
}

.btn-download:hover {
    background: var(--color-secondary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--color-dark);
}

.navbar.scrolled .logo-boost,
.navbar.scrolled .logo-brainz {
    color: var(--color-dark);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-boost {
    color: var(--color-white);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-dark);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--color-white);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-small {
    display: block;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.hero-title-large {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-trust {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(232, 122, 31, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Book Mockup */
.book-mockup {
    perspective: 1000px;
}

/* Actual Book Cover Image */
.book-cover-img {
    width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow:
        -20px 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(232, 122, 31, 0.2);
    transform: rotateY(-5deg);
    animation: float 6s ease-in-out infinite;
    transition: transform var(--transition-base);
}

.book-cover-img:hover {
    transform: rotateY(0deg) scale(1.02);
}

.book-cover {
    position: relative;
    width: 280px;
    height: 400px;
    transform: rotateY(-15deg);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: rotateY(-5deg) translateY(0);
    }

    50% {
        transform: rotateY(-5deg) translateY(-15px);
    }
}

.book-spine {
    position: absolute;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, #1a1a2e, #2d2d4a);
    transform: rotateY(90deg) translateZ(15px);
    border-radius: 3px 0 0 3px;
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    border-radius: 0 8px 8px 0;
    box-shadow:
        -5px 5px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

.book-front::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.05), transparent);
}

.book-title-area {
    text-align: center;
}

.book-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.2em;
}

.book-main-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin: 0.25rem 0 1rem;
}

.book-subtitle {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.book-author {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 5px;
    }

    50% {
        opacity: 0.3;
        top: 15px;
    }
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--color-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform var(--transition-base);
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--color-gray);
    line-height: 1.7;
}

/* ===================================
   Crisis Section
   =================================== */
.crisis {
    background: var(--color-white);
}

.crisis-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-visual {
    flex-shrink: 0;
}

.stat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) calc(var(--percent) * 1%),
            var(--color-light) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-circle::before {
    content: '';
    position: absolute;
    width: 75px;
    height: 75px;
    background: var(--color-light);
    border-radius: 50%;
}

.stat-number {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-circle-danger {
    background: conic-gradient(var(--color-danger) calc(var(--percent) * 1%),
            var(--color-light) 0);
}

.stat-circle-danger .stat-number {
    color: var(--color-danger);
}

.stat-circle-warning {
    background: conic-gradient(var(--color-accent) calc(var(--percent) * 1%),
            var(--color-light) 0);
}

.stat-circle-warning .stat-number {
    color: var(--color-accent-dark);
}

.stat-circle-info {
    background: conic-gradient(var(--color-secondary) calc(var(--percent) * 1%),
            var(--color-light) 0);
}

.stat-circle-info .stat-number {
    color: var(--color-secondary);
}

.stat-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--color-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.crisis-hope {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(102, 126, 234, 0.05));
    border: 2px solid rgba(5, 150, 105, 0.2);
}

.hope-icon {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.crisis-hope h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.crisis-hope p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-dark-lighter);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ===================================
   Book Section
   =================================== */
.book-section {
    background: var(--gradient-dark);
    color: var(--color-white);
}

.book-section .section-label {
    color: var(--color-accent);
}

.book-section .section-title {
    color: var(--color-white);
}

.book-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.book-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.book-display {
    display: flex;
    justify-content: center;
}

.book-3d {
    perspective: 1000px;
}

/* Large Book Cover Image */
.book-cover-large-img {
    width: 320px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow:
        -25px 25px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(232, 122, 31, 0.3);
    transform: rotateY(-8deg);
    transition: transform var(--transition-base);
}

.book-cover-large-img:hover {
    transform: rotateY(-3deg) scale(1.02);
}

.book-cover-large {
    position: relative;
    width: 320px;
    height: 460px;
    transform: rotateY(-10deg);
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

.book-cover-large:hover {
    transform: rotateY(-5deg);
}

.book-spine-large {
    position: absolute;
    left: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, #0f0f1a, #1a1a2e);
    transform: rotateY(90deg) translateZ(20px);
    border-radius: 5px 0 0 5px;
}

.book-front-large {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 50%, #1a1a2e 100%);
    border-radius: 0 10px 10px 0;
    box-shadow:
        -10px 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    overflow: hidden;
}

.book-front-large::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.03), transparent);
}

.book-content-area {
    text-align: center;
}

.book-label-lg {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    margin-bottom: 0.5rem;
}

.book-title-lg {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.book-divider {
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    margin: 0 auto 1.5rem;
}

.book-desc-lg {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

.book-emoji {
    display: block;
    font-size: 3rem;
    margin-top: 1.5rem;
}

.book-author-lg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Book Info */
.book-info-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.book-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.feature-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Author Section */
.book-author-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-details p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Book Chapters */
.book-chapters {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.book-chapters h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.chapter-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chapter-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.chapter-name {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Tools Section
   =================================== */
.tools-section {
    background: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%);
}

.tools-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: start;
}

.tools-preview h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tool-category {
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tool-category-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-category h4 {
    font-weight: 600;
    color: var(--color-dark);
}

.tool-category ul {
    padding-left: 0.5rem;
}

.tool-category li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9375rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.tool-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 0.75rem;
}

/* Form Container */
.tools-form-container {
    padding: 2.5rem;
    position: sticky;
    top: 100px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-gray);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--color-primary);
}

.form-group input.error {
    border-color: var(--color-danger);
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-danger);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-gray-light);
    text-align: center;
}

/* Button loading state */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 1s linear infinite;
}

.spinner circle {
    stroke: var(--color-white);
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 60;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Download Section */
.download-section {
    margin-top: 2rem;
}

.download-section.hidden {
    display: none;
}

.success-message {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--color-gray);
}

.success-message .email-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.success-message .email-note a {
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
}

.email-benefits {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.email-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-benefits li {
    padding: 0.5rem 0;
    color: var(--color-dark-lighter);
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.email-benefits li:last-child {
    border-bottom: none;
}

/* Download Categories Accordion */
.download-categories {
    margin-bottom: 1.5rem;
}

.download-category {
    margin-bottom: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.download-category summary {
    padding: 1rem 1.25rem;
    background: var(--color-light);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition-fast);
}

.download-category summary::-webkit-details-marker {
    display: none;
}

.download-category summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-gray);
    transition: transform var(--transition-fast);
}

.download-category[open] summary::after {
    content: '−';
}

.download-category summary:hover {
    background: #E5E7EB;
}

.download-category .download-buttons {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
}

.download-category .btn-download {
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
    text-align: center;
    justify-content: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.book-promo {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.book-promo p {
    font-size: 0.9375rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
}

/* ===================================
   Resources Section
   =================================== */
.resources {
    background: var(--color-white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.resource-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--color-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.resource-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Reading List */
.reading-list {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.reading-list h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.reading-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
}

.reading-title {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.reading-author {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .book-cover {
        width: 200px;
        height: 290px;
    }

    .book-showcase {
        grid-template-columns: 1fr;
    }

    .book-display {
        margin-bottom: 2rem;
    }

    .tools-content {
        grid-template-columns: 1fr;
    }

    .tools-form-container {
        position: static;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-base);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        color: var(--color-dark);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .crisis-stats {
        grid-template-columns: 1fr;
    }

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

    .tools-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

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

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trust-divider {
        width: 40px;
        height: 1px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .book-cta {
        flex-direction: column;
    }

    .book-cta .btn {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}