/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --light-base: #f8f8f8;
    --black: #353535;
    --white: #ffffff;
    --yellow: rgba(255, 251, 0, 1);
    --yellow-bg: rgba(255, 251, 0, 0.95);
    --yellow-postit: #FFFC5E;
    --error-red: #ef4444;
    --color-1: #b0eaff;
    --color-2: #cfefff;
    --color-3: #0093ff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    min-height: 100vh;
}

/* ================================
   TYPOGRAPHY
   ================================ */

/* Base elements */
p {
    margin-bottom: 20px;
}

strong {
    font-weight: 800;
}

ul, ol {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 400;
    margin-left: 30px;
    margin-bottom: 2rem;
}

/* Headlines */
.eyebrow {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.main-headline {
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
}

.main-headline h1 {
    font-size: 4.4rem;
    line-height: 1.1;
    font-weight: 900;
}

.logo {
    width: 40px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    opacity: 0.7;
}

.section-headline {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    padding-bottom: 0.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Body text styles */
.emphasis {
    font-size: 1.9rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 2.4rem;
}

.emphasis-support {
    margin-bottom: 0.5rem;
}

.section-text-1 {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1.8rem;
}

.section-text-2 {
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.8rem;
}

.project-idea {
    background: var(--yellow-postit);
    padding: 1rem;
    border-radius: 3px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-bottom: 1.8rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 400;
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 235, 59, 0.3);
    margin: 1rem;
    flex-shrink: 0;
}

.project-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-description {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 400;
}

.project-idea:nth-child(even) {
    transform: rotate(1deg);
}

.project-idea:nth-child(3n) {
    transform: rotate(-0.5deg);
}

.project-idea:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

/* Container for project ideas to arrange them in a grid */
.article-section .project-idea {
    display: inline-flex;
}

/* Utility typography */
.decorative-line {
    margin-top: 1rem;
    font-size: 1rem;
}

.cta-disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}

.cta-questions {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.cta-questions a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.cta-questions a:hover {
    color: var(--white);
}

/* ================================
   LAYOUT - TWO COLUMN ICON TEXT
   ================================ */
.icon-text-grid {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0 0.7rem;
    align-items: start;
    /* margin-bottom inherited from parent section-text class */
}

.icon-text-grid .icon {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0.95;
    color: inherit;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.icon-text-grid .text {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* ================================
   LAYOUT - SECTIONS
   ================================ */
.section {
    margin: 0 auto;
    padding: 4rem 3rem;
    background: var(--color-1);
}

.section-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Section theme variations */
.section--theme-1 {
    background: var(--color-1);
    color: var(--black);
}

.section--theme-2 {
    background: var(--color-2);
}

.section--theme-3 {
    background: var(--white);
}

.opening-article-section {
    text-align: center;
}

.article-section {
    margin-bottom: 1.5rem;
}

/* ================================
   COMPONENTS - CTA
   ================================ */
.call-to-action {
    padding: 2rem 0;
    align-items: center;
    display: flex;
    justify-content: center;
    background: var(--black);
    color: var(--white);
}

.cta-box {
    text-align: center;
    padding: 1.5rem;
    margin: 3rem 0 1rem 0;
}

.cta-headline {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.cta-text {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.cta-button {
    display: inline-block;
    color: var(--white);
    padding: 12px 40px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: transform 0.2s;
    border-radius: 12px;
    width: 300px;
    border: 2px solid var(--white);
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* ================================
   COMPONENTS - FOOTER
   ================================ */
.footer {
    background: var(--black);
    color: var(--white);
    border-top: 1px solid var(--white);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-content p {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 400;
    opacity: 0.8;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

/* ================================
   COMPONENTS - FLOATING CTA
   ================================ */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    color: var(--black);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    padding: 2.8rem 2.2rem 2.5rem 2.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--shadow-light);
    max-width: 260px;
}

.floating-cta.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.floating-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.floating-cta-text {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--black);
    background: linear-gradient(104deg, rgba(255, 251, 0, 0.9) 0.9%, rgba(255, 251, 0, 0.8) 2.4%, rgba(255, 251, 0, 0.6) 5.8%, rgba(255, 251, 0, 0.5) 93%, rgba(255, 251, 0, 0.8) 96%, rgba(255, 251, 0, 0.9) 98%);
    padding: 0.2rem 0.6rem;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transform: rotate(-0.5deg);
    display: inline;
    box-shadow: inset 0 0 20px rgba(255, 251, 0, 0.3), 0 0 5px rgba(255, 251, 0, 0.15);
}

.floating-cta-disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 300;
    opacity: 0.8;
    color: var(--black);
    margin-top: 0.5rem;
}

.floating-cta-questions {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
    color: var(--black);
    margin-top: 1rem;
}

.floating-cta-questions a {
    color: var(--black);
    text-decoration: underline;
    opacity: 0.9;
}

.floating-cta-questions a:hover {
    opacity: 1;
}

.floating-cta-button {
    background: var(--black);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
}

.floating-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}



/* ================================
   COMPONENTS - SIGNUP MODAL
   ================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid var(--shadow-light);
}

.modal-overlay.modal-open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-overlay.modal-fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.modal-overlay.modal-fade-out .modal-content {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.6s ease;
}

.modal-close-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 1.5rem 0 2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--black);
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
    background: var(--shadow-light);
}

.modal-header {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    margin: 0;
    line-height: 1.2;
}

.modal-body {
    padding: 0.5rem 3rem 3.6rem 3rem;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
    text-align: center;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--shadow-medium);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-3);
    box-shadow: 0 0 0 3px rgba(0, 147, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--shadow-medium);
}

.form-submit-btn {
    background: var(--black);
    color: var(--white);
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message,
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-message h3 {
    color: var(--error-red);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.success-message p,
.error-message p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ================================
   MEDIA QUERIES (Large to Small)
   ================================ */

/* Small Desktop (769px - 1380px) */
@media (min-width: 769px) and (max-width: 1380px) {
    /* Typography adjustments */
    ul, ol {
        font-size: 1.4rem;
        margin-bottom: 1.8rem;
    }

    .eyebrow {
        font-size: 1rem;
    }

    .main-headline h1 {
        font-size: 4rem;
    }

    .emphasis {
        font-size: 1.8rem;
    }

    .section-text-1,
    .section-text-2 {
        font-size: 1.3rem;
    }

    /* Layout adjustments */
    .icon-text-grid {
        gap: 0 0.4rem;
    }
    
    .icon-text-grid .icon {
        font-size: 1.2rem;
        margin-top: 0.45rem;
    }

    /* Small desktop specific positioning */
    .floating-cta {
        bottom: 0;
    }
}

/* Tablet & Mobile Shared Styles (1380px and below) */
@media (max-width: 1380px) {
    /* Components - Floating CTA - Responsive behavior */
    .floating-cta {
        top: auto;
        right: 0;
        left: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        max-width: none;
    }

    .floating-cta.hidden {
        transform: translateY(20px);
    }

    .floating-cta-content {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }

    .floating-cta-text,
    .floating-cta-disclaimer,
    .floating-cta-questions {
        display: none;
    }

    .floating-cta-button {
        background: var(--yellow-bg);
        color: var(--black);
        width: 200px;
        padding: 14px 0;
        font-size: 1.4rem;
        font-weight: 600;
        border-radius: 12px;
        border: 2px solid var(--black);
        transition: all 0.2s ease;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .floating-cta-button:hover {
        transform: translateY(-2px);
    }

    .floating-cta-button:active {
        transform: translateY(0);
    }
}

/* Tablet Styles (501px - 768px) */
@media (max-width: 768px) and (min-width: 501px) {
    /* Typography adjustments */
    ol, ul {
        font-size: 1.2rem;
    }

    .eyebrow {
        font-size: 0.9rem;
    }

    .main-headline h1 {
        font-size: 3.2rem;
    }

    .emphasis {
        text-align: left;
        font-size: 1.4rem;
    }

    .emphasis-support {
        text-align: left;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .section-headline {
        font-size: 2.2rem;
    }

    .section-text-1,
    .section-text-2 {
        font-size: 1.2rem;
    }

    /* Layout adjustments */
    .icon-text-grid {
        gap: 0.8rem 0.4rem;
    }

    .icon-text-grid .text {
        line-height: 1.5;
    }

    .icon-text-grid .icon {
        margin-top: 0.35rem;
        font-size: 1.1rem;
    }

    /* Section layout */
    .section {
        padding: 4rem 1.2rem;
    }

    .section-container {
        max-width: 95%;
    }

    /* Modal responsive styles */

    .modal-content {
        max-height: calc(100vh - 2rem);
        border-radius: 12px;
    }

    .modal-body {
        padding: 0.5rem 2rem 3.6rem 2rem;
    }

    /* Post-it notes responsive for tablet */
    .project-idea {
        width: 25vw;
        height: 25vw;
        font-size: 1rem;
        margin: 0.8rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

/* Tablet & Mobile Positioning (768px and below) */
@media (max-width: 768px) {
    .floating-cta {
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        right: max(1rem, env(safe-area-inset-right));
        left: max(1rem, env(safe-area-inset-left));
    }

    /* Modal responsive styles */
    .modal-close-container {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 1rem 1rem 0 2rem;
    }

    .modal-description {
        font-size: 1rem;
    }
}

/* Post-it Notes and Floating CTA Adjustment (680px and below) */
@media (max-width: 680px) {
    .project-idea {
        width: 40vw;
        height: 40vw;
        font-size: 1rem;
        margin: 0.5rem;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .project-description {
        font-size: 1rem;
    }

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

/* Mobile Styles (500px and below) */
@media (max-width: 500px) {
    /* Typography adjustments */
    ol, ul {
        font-size: 1.1rem;
    }

    .logo {
        width: 30px;
    }

    .eyebrow {
        font-size: 0.9rem;
    }

    .main-headline h1 {
        font-size: 2.8rem;
    }

    .emphasis {
        text-align: left;
        font-size: 1.2rem;
    }

    .emphasis-support {
        text-align: left;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .section-headline {
        font-size: 1.8rem;
    }

    .section-text-1,
    .section-text-2 {
        font-size: 1.1rem;
    }

    .icon-text-grid {
        gap: 0.8rem 0.4rem;
    }

    .icon-text-grid .text {
        line-height: 1.5;
    }

    .icon-text-grid .icon {
        margin-top: 0.4rem;
        font-size: 1rem;
    }

    /* Layout adjustments */
    .section {
        padding: 3rem 0.5rem;
    }

    .section-container {
        max-width: 95%;
    }

    /* Component adjustments */
    .cta-headline {
        font-size: 1.8rem;
    }

    .cta-disclaimer {
        font-size: 0.8rem;
    }

    .cta-button {
        font-size: 1.2rem;
    }

    .footer-content p {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Modal responsive adjustments */
    .modal-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .form-group input {
        padding: 10px 12px;
    }
    
    .form-submit-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 0.5rem 1rem 3.5rem 1rem;
    }

}

/* Extremely Small Mobile (400px and below) */
@media (max-width: 400px) {
    .section {
        width: 100vw;
        padding: 3rem 10px;
    }

    .section-container {
        width: 100vw;
    }

    .project-idea {
        width: 85vw;
        max-width: 240px;
        height: 85vw;
        max-height: 240px;
    }
}

