:root {
    --bg-color: #0B1118;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #F8FAFC;
    --text-secondary: #ABB8C3;
    --accent-start: #5C7A96;
    --accent-end: #3B536D;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --radius-sm: 7px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 90%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% 0%, #1c2d3d 0%, #0B1118 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1260px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    /* Removed individual background to use global body gradient */
}

/* Background gradient effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(92, 122, 150, 0.15) 0%, rgba(31, 48, 65, 0) 70%);
    filter: blur(100px);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 2;
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.book-cover {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background-color: #1e293b;
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 90%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    filter: blur(60px);
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.badge {
    display: inline-block;
    background: rgba(92, 122, 150, 0.2);
    color: #A6BFD6;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(166, 191, 214, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.book-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #ffffff, #A6BFD6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.book-subtitle {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 500px;
}

.pricing-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.price-strikethrough {
    font-size: 1.5rem;
    color: #ef4444;
    /* Subtle red to indicate discount */
    text-decoration: line-through;
    opacity: 0.8;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.currency {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.cta-container {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(92, 122, 150, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(92, 122, 150, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.4rem;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.8;
}

.lock-icon {
    width: 16px;
    height: 16px;
    color: #4ade80;
    /* A soft trust-inducing green */
}

/* --- Concepts Section --- */
.concepts-section {
    padding: 90px 0 28px;
    /* Reduced bottom padding to close gap */
}

.section-title {
    text-align: center;
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 80px;
    color: white;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.concept-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 50px 36px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.concept-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(92, 122, 150, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: #A6BFD6;
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.concept-card h3 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: white;
    line-height: 1.2;
}

.concept-benefit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #A6BFD6;
    margin-bottom: 24px;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1.6;
}

/* --- Author Section --- */
.author-section {
    padding: 108px 0;
    position: relative;
}

.author-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 58px;
    backdrop-filter: blur(10px);
}

.author-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.author-sidebar-float {
    float: left;
    width: 350px;
    margin-right: 48px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.author-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.author-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition);
}

.author-card:hover .author-photo {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover {
    background: white;
    color: var(--bg-color);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 36px;
    height: 36px;
}

.author-bio>p:first-of-type {
    margin-top: 8%;
    /* Push first paragraph down alongside the float */
}

.author-bio p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Clearfix for floated content */
.author-bio::after {
    content: "";
    display: table;
    clear: both;
}

.author-bio strong {
    color: white;
}

.author-bio em {
    font-family: var(--font-serif);
    color: white;
    font-style: italic;
    font-weight: 500;
}

/* --- Final CTA Section --- */
.final-cta-section {
    padding: 90px 0;
    border-top: 1px solid var(--surface-border);
}

.final-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    color: white;
}

.text-center {
    text-align: center;
}

.checkout-note-bottom {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Sticky Mobile CTA --- */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: rgba(31, 48, 65, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--surface-border);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    /* Hidden by default on desktop, shown via media query and JS */
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
        transform: none !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-subtitle,
    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .author-sidebar-float {
        float: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 40px auto;
    }
}


/* --- The Three Roles Section --- */
.roles-section {
    padding: 28px 0 108px;
    /* Reduced top padding to close gap */
    position: relative;
}

.roles-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.role-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 42px 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    opacity: 0;
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.role-card:hover::before {
    opacity: 1;
}

.role-icon {
    width: 80px;
    height: 80px;
    background: rgba(92, 122, 150, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: #A6BFD6;
    flex-shrink: 0;
}

.role-icon svg {
    width: 40px;
    height: 40px;
}

.role-title {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 8px;
}

.role-function {
    font-size: 1.15rem;
    font-weight: 600;
    color: #A6BFD6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.role-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .roles-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .concepts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .mobile-sticky-cta {
        display: block;
    }

    /* Add padding to footer to ensure sticky doesn't cover content at very bottom */
    .site-footer {
        padding-bottom: 100px;
    }
}

/* --- Dayton Popup --- */
.dayton-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: calc(100% - 48px);
    max-width: 350px;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    transform: translateY(30px);
    opacity: 0;
}
.dayton-popup.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}
.dayton-popup-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.close-popup {
    position: absolute;
    top: -12px;
    right: -12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-popup:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}
.popup-icon {
    width: 48px;
    height: 48px;
    background: rgba(92, 122, 150, 0.15);
    color: #A6BFD6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.popup-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .dayton-popup {
        bottom: 90px;
        left: 24px;
        right: 24px;
        max-width: none;
    }
}