/* css/style.css */
:root {
    --nmbrs-blue: #1C98EB;
    --nmbrs-light-blue: #E9F5FD;
    --nmbrs-secondary: #4EAEEF;
    --nmbrs-action: #5EBF4D;
    --nmbrs-navy: #163E59;
    --nmbrs-people: #164B88;
    --white: #FFFFFF;

    --font-heading: 'Oswald', 'Ubuntu', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Squircles and Radii */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 40px;
    --radius-pill: 100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--nmbrs-navy);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .badge, .btn {
    font-family: var(--font-heading);
}

h1, h2, h3, h4 {
    text-transform: uppercase;
}

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

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--nmbrs-light-blue) 100%);
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, rgba(28, 152, 235, 0.1), rgba(78, 174, 239, 0.05));
    border-radius: 40%;
    z-index: 0;
    filter: blur(40px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background-color: var(--nmbrs-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--nmbrs-navy);
}

h1 span {
    color: var(--nmbrs-blue);
    display: block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--nmbrs-navy);
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 700px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--nmbrs-action);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(94, 191, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(94, 191, 77, 0.4);
    background-color: #51a642;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--nmbrs-blue);
    color: var(--nmbrs-blue);
}

.btn-secondary:hover {
    background-color: var(--nmbrs-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.squircle-backdrop {
    position: absolute;
    width: 80%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--nmbrs-blue), var(--nmbrs-secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    transform: rotate(15deg);
    transition: transform 0.8s ease;
    animation: squircle-anim 10s infinite alternate linear;
}

@keyframes squircle-anim {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(15deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
}

.book-cover {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 380px;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(22, 62, 89, 0.4));
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .book-cover {
    transform: translateY(-10px);
}

/* About the book */
.about-book {
    padding: 120px 0;
    background-color: var(--white);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.two-column.align-center {
    align-items: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--nmbrs-navy);
    margin-bottom: 30px;
}

.text-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #4a6375;
}

.info-card {
    background-color: var(--nmbrs-light-blue);
    padding: 40px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    border-left: 6px solid var(--nmbrs-blue);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--nmbrs-blue);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item .icon {
    width: 40px;
    height: 40px;
    background-color: var(--nmbrs-action);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--nmbrs-navy);
}

.feature-item p {
    color: #4a6375;
}

/* Author Section */
.author-section {
    padding: 120px 0;
    background-color: var(--nmbrs-people);
    color: var(--white);
}

.author-section h2, .author-section h3 {
    color: var(--white);
}

.author-section .role {
    color: var(--nmbrs-light-blue);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.author-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.author-squircle {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.author-photo {
    width: 100%;
    height: auto;
    display: block;
}

.author-squircle .initials {
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--nmbrs-people);
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #112d40;
    color: var(--white);
}

.footer .text-center {
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    h1 { font-size: 3rem; }
    
    .hero {
        text-align: center;
        padding-top: 150px;
    }

    .hero-image-wrapper {
        margin-top: 40px;
    }

    .cta-group {
        justify-content: center;
    }

    .subtitle {
        font-size: 1.25rem;
        margin: 0 auto 40px auto;
    }
    
    .btn {
        padding: 16px 36px;
        font-size: 1.1rem;
    }
    
    .book-cover {
        width: 380px;
    }
}


/* Preview Section */
.preview-section {
    padding: 100px 0;
    background-color: var(--nmbrs-light-blue);
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.iframe-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Order Section (Promotional Poster Vibe) */
.order-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--nmbrs-blue), var(--nmbrs-people));
    color: var(--white);
    position: relative;
}

.order-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.order-section .container {
    position: relative;
    z-index: 1;
}

.order-section h2 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.order-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.fake-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    color: var(--nmbrs-navy);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.fake-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--nmbrs-light-blue);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--nmbrs-blue);
}

.author-cta .btn-secondary:hover {
    background-color: var(--white);
    color: var(--nmbrs-people) !important;
}

.collab-logos a {
    transition: transform 0.3s, opacity 0.3s;
}
.collab-logos a:hover {
    opacity: 1 !important;
    transform: translateY(-3px);
}
