/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables — Capital Wealth Brand Colors */
:root {
    --bg-light: #ffffff;
    --bg-warm: #f0f1f3;              /* Light Grey */
    --bg-dark: #0F1A2A;              /* Ink Black */
    --bg-dark-alt: #16253C;          /* Prussian Blue — primary brand */
    --accent-blue: #57A5F4;          /* Cool Horizon — secondary CTA & accent */
    --accent-blue-hover: #3d8fe0;
    --accent-yellow: #FDD25E;        /* Mustard — primary CTA & accent */
    --accent-yellow-hover: #e6bc45;
    --brand-grey: #7b868C;           /* Brand Grey — PANTONE 430 C */
    --text-dark: #0F1A2A;            /* Ink Black */
    --text-body: #444;
    --text-on-dark: #e8e8e8;
    --text-muted-dark: rgba(255,255,255,0.7);
    --glow-blue: rgba(87,165,244,0.2);
    --glow-yellow: rgba(253,210,94,0.15);
    
    /* Dark editorial surface hierarchy */
    --surface-base: #061424;
    --surface-container-low: #0F1C2D;
    --surface-container: #293548;
    --surface-glass: rgba(15, 28, 45, 0.7);
    --border-glass: rgba(78, 70, 53, 0.15);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), #f7c73e);
    z-index: 9999;
    transition: width 0.1s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-on-dark);
    background: var(--surface-base);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, .eyebrow {
    font-family: 'Manrope', sans-serif;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

p {
    margin-bottom: 1.5rem;
    color: #e8edf5;
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.text-yellow {
    color: var(--accent-yellow);
}

.tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

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

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow), #f7c73e);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-yellow);
}

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

.btn-secondary:hover {
    background: rgba(15, 26, 42, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Mobile/Desktop CTA toggle */
.nav-cta-mobile { display: none; }
.nav-cta-desktop { display: inline-block; }

/* Header CTA — yellow bg, blue text */
.nav-cta-desktop,
.nav-cta-mobile {
    background: var(--accent-yellow) !important;
    color: var(--text-dark) !important;
    border-color: var(--accent-yellow) !important;
}
.nav-cta-desktop:hover,
.nav-cta-mobile:hover {
    background: var(--accent-yellow-hover) !important;
    color: var(--text-dark) !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 20, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-yellow);
    text-decoration: none;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--surface-base);
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(87, 165, 244, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(253, 210, 94, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

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

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

.hero-book-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

.hero-cta {
    margin-top: 2rem;
}

/* Retailer Bar */
/* Retailer bar — floating white card matching As Seen On */
.retailer-bar {
    background: transparent;
    padding: 3rem 0;
}

.retailer-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.retailer-bar::before {
    display: none;
}

.retailer-bar-inner::before {
    content: 'AVAILABLE AT';
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.retailer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.retailer-link {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.retailer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.retailer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Balance individual logo sizes */
.retailer-link[title="Rakuten Kobo"] .retailer-logo { height: 32px; }
.retailer-link[title="Waterstones"] .retailer-logo { height: 22px; }
.retailer-link[title="Amazon"] .retailer-logo { height: 26px; }
.retailer-link[title="Barnes & Noble"] .retailer-logo { height: 24px; }
.retailer-link[title="Booktopia"] .retailer-logo { height: 26px; }

/* Curated Roadmap Section */
.roadmap-section {
    background: var(--surface-container-low);
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

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

.roadmap-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border: 1px solid rgba(78, 70, 53, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.roadmap-card::before {
    content: attr(data-number);
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 9rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--accent-yellow);
    opacity: 0.08;
    z-index: 1;
}

.roadmap-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
    position: relative;
    z-index: 2;
}

.roadmap-card h4 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.roadmap-card p {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Is This Guide For You Section */
.guide-section {
    background: var(--surface-base);
    padding: 6rem 0;
}

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

.guide-text h2 {
    margin-bottom: 2rem;
    text-align: left;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checklist-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-yellow);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.checklist-icon svg {
    width: 14px;
    height: 14px;
    color: var(--text-dark);
}

.checklist-item span {
    font-size: 1.125rem;
    line-height: 1.6;
}

.guide-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.guide-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

/* Author Section */
.author-section {
    background: var(--surface-container-low);
    padding: 6rem 0;
}

.author-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.author-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: center;
}

.author-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%);
}

.author-bio h3 {
    margin-bottom: 1rem;
}

.author-bio .eyebrow {
    text-align: left;
    margin-bottom: 0.5rem;
}

.author-bio p {
    margin-bottom: 1rem;
}

.author-bio a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.author-bio a:hover {
    text-decoration: underline;
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.author-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
    font-family: 'Manrope', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Bar */
.media-bar {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.media-bar-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.media-bar-label em {
    color: #d4a12a;
    font-style: normal;
}

.media-bar-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.media-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.media-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Free Chapter Section */
.chapter-section {
    background: var(--surface-base);
    padding: 6rem 0;
}

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

.chapter-content h2 {
    margin-bottom: 1rem;
}

.chapter-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Stitch-style inline form */
.chapter-form-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.chapter-form-inline input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(78, 70, 53, 0.15);
    border-radius: 6px;
    background: rgba(41, 53, 72, 0.3);
    backdrop-filter: blur(12px);
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.chapter-form-inline input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(253, 210, 94, 0.2);
}

.chapter-form-inline input::placeholder {
    color: rgba(186, 199, 222, 0.6);
}

.chapter-form-inline button {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chapter-form-inline button:hover {
    background: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-yellow);
}

.trust-signal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    margin-top: 1rem;
}

.trust-signal svg {
    width: 16px;
    height: 16px;
    color: var(--accent-yellow);
}

/* FAQ Section */
.faq-section {
    background: var(--surface-container-low);
    padding: 6rem 0;
}

.faq-section .section-header {
    margin-bottom: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item summary {
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.faq-item summary::after {
    content: '→';
    font-size: 1.25rem;
    color: var(--accent-yellow);
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(270deg);
}

.faq-item div {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted-dark);
    line-height: 1.6;
}

.faq-item div p {
    margin-bottom: 0;
}

/* Footer Trio */
.footer-trio-section {
    background: var(--surface-base);
    padding: 4rem 0;
}

.footer-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-trio-col {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-on-dark);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-trio-col:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.footer-trio-logo {
    height: 60px;
    width: auto;
}

.footer-trio-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-yellow);
}

.footer-trio-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
}

.footer-trio-label {
    color: var(--text-muted-dark);
    font-size: 0.875rem;
}

.footer-trio-arrow {
    color: var(--accent-yellow);
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: var(--bg-dark-alt);
    border-top: 3px solid var(--accent-yellow);
    padding: 3rem 0 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-credit-link:hover {
    color: var(--accent-yellow);
}

.gullstack-logo {
    width: 20px;
    height: 20px;
}

/* Stitch-Style Footer */
.stitch-footer-section {
    background: var(--bg-dark);
    padding: 3rem 0 2rem;
}

.stitch-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stitch-footer-left {
    display: flex;
    justify-content: flex-start;
}

.stitch-footer-logo {
    height: 60px;
    width: auto;
}

.stitch-footer-center {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.stitch-footer-btn {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.stitch-footer-btn:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.stitch-footer-right {
    display: flex;
    justify-content: flex-end;
}

.stitch-footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}

.gullstack-mini-logo {
    width: 16px;
    height: 16px;
}

.stitch-footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.stitch-footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-cta-mobile {
        display: inline-block;
    }
    
    .nav-cta-desktop {
        display: none;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-photo {
        height: 300px;
    }
    
    .footer-trio {
        grid-template-columns: 1fr;
    }
    
    .chapter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chapter-button {
        width: 100%;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .retailer-logos {
        gap: 1rem;
    }
    
    .media-bar-logos {
        gap: 1.5rem;
    }
    
    .stitch-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .stitch-footer-center {
        flex-direction: column;
        gap: 1rem;
    }

    .chapter-form-inline {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .roadmap-card, .author-card, .faq-item {
        padding: 1.5rem;
    }
    
    .footer-trio-col {
        padding: 1.5rem;
    }
}