/* ==========================================
   LOOSE LOOP - MAXIMALIST DESIGN SYSTEM
   ========================================== */

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

/* === CSS VARIABLES === */
:root {
    /* Official Loose Loop Brand Colors */
    --color-primary: #F8501C;        /* Brand Orange */
    --color-secondary: #681C1E;      /* Deep Burgundy */
    --color-accent-1: #AED6FA;       /* Sky Blue */
    --color-accent-2: #AB4649;       /* Light Burgundy */
    --color-accent-3: #F4AEAC;       /* Light Pink */
    --color-purple: #6B2338;         /* Dark Purple */
    --color-dark: #681C1E;           /* Deep Burgundy for dark elements */
    --color-light: #F8EDE5;          /* Off White */
    --color-text: #2D2D2D;
    --color-text-light: #5A5A5A;

    /* Official Loose Loop Typography */
    --font-heading: 'Sonny Vol2', 'Impact', sans-serif;     /* Sonny Vol2 UltraBlack */
    --font-subheading: 'DM Sans', sans-serif;                /* DM Sans */
    --font-body: 'Inter', sans-serif;                        /* Inter Regular */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Sizes */
    --container-max: 1400px;
    --border-radius: 12px;
}

/* === CUSTOM FONT LOADING === */
@font-face {
    font-family: 'Sonny Vol2';
    src: url('brand-assets copy/HEADING FONT.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* === BACKGROUND - CLEAN & SOLID === */
.pattern-bg {
    display: none;  /* Removed busy pattern background */
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);  /* Match tagline size */
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-dark);
    transform: scaleX(0);
    transform-origin: left;
    animation: titleUnderline 1s ease-out forwards;
}

.features .section-title::after {
    background: white;  /* White underline on colored backgrounds */
}

@keyframes titleUnderline {
    to {
        transform: scaleX(1);
    }
}

/* === CONTAINER === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow: hidden;
    background: var(--color-accent-1);  /* Sky blue */
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-visual-wrapper {
    position: relative;
    z-index: 3;
}

/* Visual accent elements */
.hero-accent {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero-accent-1 {
    width: 300px;
    height: 300px;
    background: white;  /* White accent on sky blue */
    opacity: 0.4;
    top: -50px;
    right: -100px;
    filter: blur(60px);
}

.hero-accent-2 {
    width: 250px;
    height: 250px;
    background: var(--color-dark);  /* Burgundy accent */
    opacity: 0.15;
    bottom: 50px;
    left: -80px;
    filter: blur(50px);
}

/* === KINETIC LOGO === */
.logo-container {
    margin-bottom: 0;
    position: relative;
    perspective: 1000px;
}

.logo {
    width: clamp(280px, 40vw, 550px);
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(248, 80, 28, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-style: preserve-3d;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo:hover {
    filter: drop-shadow(0 15px 40px rgba(248, 80, 28, 0.5));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mascot removed from hero */

.loop {
    transform-origin: center;
    animation: loopPulse 4s ease-in-out infinite;
}

.loop-1 {
    color: var(--color-primary);
    animation-delay: 0s;
}

.loop-2 {
    color: var(--color-accent-2);
    animation-delay: 0.3s;
}

.loop-3 {
    color: var(--color-secondary);
    animation-delay: 0.6s;
}

@keyframes loopPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
        opacity: 0.8;
    }
}

.brand-name {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.word {
    display: block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    font-style: italic;
}

.word-1 {
    animation-delay: 0s;
}

.word-2 {
    animation-delay: 0.2s;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tagline {
    font-family: var(--font-heading);  /* Using Sonny Vol2 heading font */
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--color-secondary);  /* Deep burgundy */
    margin: -2rem auto 0;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    font-style: italic;
    line-height: 1.4;
}

.tagline-word {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.tagline-word:nth-child(1) { animation-delay: 0.1s; }
.tagline-word:nth-child(2) { animation-delay: 0.2s; }
.tagline-word:nth-child(3) { animation-delay: 0.3s; }
.tagline-word:nth-child(4) { animation-delay: 0.4s; }
.tagline-word:nth-child(5) { animation-delay: 0.5s; }
.tagline-word:nth-child(6) { animation-delay: 0.6s; }
.tagline-word:nth-child(7) { animation-delay: 0.7s; }
.tagline-word:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-primary {
    margin-top: 1rem;
}

.cta-primary .btn-primary {
    position: relative;
    overflow: visible;
}

.cta-primary .btn-primary::after {
    content: '→';
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-primary .btn-primary:hover::after {
    transform: translateX(5px);
}

/* === DECORATIVE STITCHES === */
.hero-decorative {
    display: none;  /* Removed decorative blur patterns */
}

.stitch-pattern {
    display: none;
}

/* === FLOATING MASCOTS === */
.floating-mascots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-mascot {
    position: absolute;
    width: clamp(80px, 12vw, 150px);
    opacity: 0.3;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.mascot-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.mascot-2 {
    bottom: 20%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.mascot-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.mascot-4 {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.mascot-5 {
    bottom: 25%;
    right: 12%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

.mascot-6 {
    top: 50%;
    right: 8%;
    animation-delay: 2.5s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-dark);  /* Deep burgundy */
    color: white;
    box-shadow: 0 10px 30px rgba(104, 28, 30, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--color-primary);  /* Orange on hover */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(248, 80, 28, 0.5);
}

.btn-submit {
    background: var(--color-dark);  /* Deep burgundy */
    color: white;
    box-shadow: 0 8px 20px rgba(104, 28, 30, 0.4);
}

.btn-submit:hover {
    background: var(--color-primary);  /* Orange on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(248, 80, 28, 0.5);
}

/* === PROBLEMS TIMELINE SECTION === */
.problems-timeline {
    background: var(--color-light);  /* Off-white */
    padding: 4rem 0;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

.timeline-title {
    color: var(--color-dark);  /* Dark burgundy */
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-scroll-wrapper {
    display: flex;
    gap: 5rem;
    padding: 3rem 2rem;
    position: relative;
    min-height: 450px;
}

.yarn-connector {
    position: absolute;
    height: 4px;
    background: var(--color-accent-1);
    top: 40%;
    left: 2rem;
    width: calc(450px * 4 + 5rem * 3);
    animation: yarnUnravel 2s ease forwards;
    opacity: 0.6;
}

@keyframes yarnUnravel {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
    }
}

.timeline-scene {
    min-width: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    animation: sceneAppear 0.8s ease forwards;
}

.scene-1 { animation-delay: 0.2s; }
.scene-2 { animation-delay: 0.4s; }
.scene-3 { animation-delay: 0.6s; }
.scene-4 { animation-delay: 0.8s; }

@keyframes sceneAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scene-mascot {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    z-index: 2;
    animation: mascotFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Normalize mascot sizes */
.scene-mascot-1 {
    transform: scale(2.2);
}

.scene-mascot-2 {
    transform: scale(6.5);
}

.scene-mascot-3 {
    transform: scale(1.1);
}

.scene-mascot-4 {
    transform: scale(1.25);
}

.timeline-scene:hover .scene-mascot {
    transform: scale(1.1) rotate(5deg);
    animation: mascotWiggle 0.5s ease;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes mascotWiggle {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.problem-bubble {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 350px;
    z-index: 2;
}

.bubble-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bubble-text {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--color-text);
    line-height: 1.5;
    font-style: italic;
}

.scroll-hint {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}

.hint-text {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    animation: scrollHintBounce 2s ease-in-out infinite;
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* === STORY SECTION === */
.story {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-light);  /* Off-white to let bento tiles pop */
    position: relative;
    overflow: hidden;
}

.story .section-title {
    color: var(--color-dark);  /* Dark burgundy */
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: block;
    width: 100%;
}

.story .section-title::after {
    display: none;  /* Remove underline */
}

/* Feature Highlights Grid */
/* === BENTO BOX GRID === */
.feature-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-tile {
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: bentoAppear 0.6s ease forwards;
}

.bento-tile:nth-child(1) { animation-delay: 0.1s; }
.bento-tile:nth-child(2) { animation-delay: 0.2s; }
.bento-tile:nth-child(3) { animation-delay: 0.3s; }
.bento-tile:nth-child(4) { animation-delay: 0.4s; }
.bento-tile:nth-child(5) { animation-delay: 0.5s; }
.bento-tile:nth-child(6) { animation-delay: 0.6s; }

@keyframes bentoAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* All tiles are now equal size in 2-column layout */
.bento-tile-large {
    /* No longer needed - all tiles are same size */
}

/* Color backgrounds for each tile */
.bento-tile-orange {
    background: var(--color-primary);  /* Orange */
}

.bento-tile-burgundy {
    background: var(--color-secondary);  /* Burgundy */
}

.bento-tile-skyblue {
    background: var(--color-accent-1);  /* Sky Blue */
}

.bento-tile-lightburgundy {
    background: var(--color-accent-2);  /* Light Burgundy */
}

.bento-tile-pink {
    background: var(--color-accent-3);  /* Light Pink */
}

.bento-tile-purple {
    background: var(--color-purple);  /* Purple */
}

.bento-mascot {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: absolute;
    top: 15px;
    right: 15px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    z-index: 2;
}

.bento-tile:hover .bento-mascot {
    transform: rotate(5deg) scale(1.1);
}

.bento-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.bento-description {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

/* === FEATURE VOTING SECTION === */
.feature-voting {
    padding: 4rem var(--spacing-md);
    background: var(--color-accent-2);
    position: relative;
}

.feature-voting .section-title {
    color: white;
}

.voting-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.voting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.vote-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 320px;
    justify-content: space-between;
}

.vote-card:nth-child(odd) {
    background: var(--color-accent-1);
}

.vote-card:nth-child(even) {
    background: var(--color-accent-3);
}

.vote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.vote-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.vote-icon[alt="Notepad"] {
    transform: scale(0.75);
}

.vote-title {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vote-progress-container {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    flex-shrink: 0;
}

.vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0%;
    min-width: 24px;
}

.vote-percentage {
    font-family: var(--font-subheading);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-vote {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(104, 28, 30, 0.3);
    width: 100%;
    max-width: 180px;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-vote:hover {
    background: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(248, 80, 28, 0.4);
}

.btn-vote:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-vote.voted {
    background: var(--color-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vote-success-message {
    display: none;
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vote-success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.vote-success-message p {
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */

@media (min-width: 769px) and (max-width: 1024px) {
    .voting-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .vote-card {
        min-height: 340px;
    }

    .vote-icon {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .voting-grid {
        max-width: 1100px;
    }
}

/* === COMMUNITY FEEDBACK SECTION === */
.community-feedback {
    padding: 4rem 2rem;
    background: var(--color-accent-3);  /* Light Pink */
    position: relative;
    overflow: hidden;
}

.community-feedback .section-title {
    color: var(--color-dark);
    text-align: center;
}

.feedback-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1.1rem, 2.3vw, 1.4rem);
    color: var(--color-dark);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

.feedback-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    align-items: center;
}

.mascot-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin-left: -1rem;
}

.feedback-mascot {
    width: clamp(280px, 32vw, 480px);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: mascotBob 3s ease-in-out infinite;
}

.feedback-mascot.celebrating {
    animation: mascotJump 0.6s ease-in-out;
}

@keyframes mascotBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes mascotJump {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(5deg);
    }
}

.idea-bubbles {
    position: absolute;
    top: 20%;
    right: -20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 180px;
}

.idea-bubble {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: bubbleFloat 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.idea-bubble.show {
    opacity: 1;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feedback-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-selector {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: var(--color-accent-1);
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-subheading);
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.category-icon {
    font-size: 1.2rem;
}

.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

#feedbackText,
#feedbackName {
    width: 100%;
    padding: 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 3px solid var(--color-accent-1);
    border-radius: 12px;
    resize: vertical;
    transition: all 0.3s ease;
}

#feedbackText:focus,
#feedbackName:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(248, 80, 28, 0.2);
}

.char-counter {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-family: var(--font-subheading);
    font-weight: 600;
}

.char-counter.warning {
    color: var(--color-primary);
    font-weight: 700;
}

.btn-submit-feedback {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(104, 28, 30, 0.3);
}

.btn-submit-feedback:hover {
    background: var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(248, 80, 28, 0.4);
}

.success-state {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.success-state.show {
    display: block;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-animation {
    font-size: 4rem;
    animation: spin 0.8s ease;
    margin-bottom: 1rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(0);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

.success-state h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.success-state p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.btn-another {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-subheading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-another:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.community-showcase {
    margin-top: 4rem;
    text-align: center;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.idea-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive breakpoints for feedback cards */
@media (max-width: 1024px) {
    .idea-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .idea-carousel {
        grid-template-columns: 1fr;
    }
}

.idea-card {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.idea-category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-accent-1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.idea-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.idea-author {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Mobile Responsive */
/* === PRODUCT PREVIEW SECTION === */
.product-preview {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-light);
    text-align: center;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-mockup {
    width: clamp(200px, 25vw, 350px);
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.preview-text {
    flex: 1;
    text-align: left;
}

.preview-description {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text);
    line-height: 1.7;
}

/* === SIGNUP SECTION === */
.signup {
    padding: 3rem var(--spacing-md);
    background: var(--color-accent-1);  /* Sky blue background */
    color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.signup-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.construction-mascot {
    width: clamp(160px, 25vw, 240px);
    height: auto;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.construction-mascot:hover {
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(-10deg);
    }
    75% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.waitlist-counter {
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 900;
    color: var(--color-primary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.counter-number.increment {
    animation: counterPop 0.5s ease;
}

@keyframes counterPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.signup .section-title {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.signup .section-title::after {
    display: none;  /* Remove underline */
}

.signup-description {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.signup-form {
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    flex: 1;
    min-width: 250px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    border: 3px solid var(--color-secondary);
    border-radius: var(--border-radius);
    background: white;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(104, 28, 30, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(248, 80, 28, 0.2);
}

.form-message {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    min-height: 1.5rem;
    font-weight: 600;
}

.form-message.success {
    color: var(--color-secondary);
}

.form-message.error {
    color: var(--color-primary);
}

.privacy-note {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* Confetti Container */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

.confetti:nth-child(2n) {
    background: var(--color-secondary);
}

.confetti:nth-child(3n) {
    background: var(--color-accent-3);
}

.confetti:nth-child(4n) {
    background: var(--color-purple);
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* === FOOTER === */
.footer {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Optimize root spacing variables for mobile */
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }

    /* Optimize container padding */
    .container {
        padding: 0 1.5rem;
    }

    /* === HERO SECTION MOBILE === */
    .hero {
        min-height: 95vh;
        padding: 3rem 1.5rem;
    }

    .brand-name {
        gap: 0;
    }

    /* Enlarge logo for mobile */
    .logo {
        width: clamp(280px, 60vw, 500px);
        filter: drop-shadow(0 5px 15px rgba(248, 80, 28, 0.2));
    }

    /* Adjust tagline spacing and size */
    .tagline {
        margin-top: -1rem;
        padding: 0 1rem;
        font-size: clamp(1rem, 4vw, 1.8rem);
    }

    /* Make floating mascots more prominent on mobile */
    .floating-mascot {
        width: clamp(110px, 18vw, 160px);
        height: auto;
        opacity: 0.35;
    }

    /* Reposition mascots for mobile: 2 above logo, 2 below CTA */
    .mascot-1 {
        top: 12%;
        left: 5%;
        right: auto;
        bottom: auto;
    }

    .mascot-4 {
        top: 12%;
        right: 5%;
        left: auto;
        bottom: auto;
    }

    .mascot-3 {
        bottom: 5%;
        left: 5%;
        top: auto;
        right: auto;
    }

    .mascot-5 {
        bottom: 5%;
        right: 5%;
        top: auto;
        left: auto;
    }

    /* Optimize CTA button for touch */
    .cta-primary .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .hero-accent {
        display: none;
    }

    .stitch-pattern {
        display: none;
    }

    /* === PROBLEMS TIMELINE MOBILE === */
    .problems-timeline {
        padding: 2.5rem 0;
        overflow-x: visible;
    }

    .timeline-scroll-wrapper {
        flex-direction: column;
        gap: 2.5rem;
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .timeline-scene {
        min-width: 100%;
        gap: 1.5rem;
    }

    /* Normalize all mascot sizes on mobile */
    .scene-mascot {
        width: 110px;
        height: auto;
    }

    /* Increase size of face palming mascot on mobile */
    .scene-mascot-1 {
        width: 160px;
    }

    /* Remove inconsistent scaling transforms on mobile */
    .scene-mascot-1,
    .scene-mascot-3,
    .scene-mascot-4 {
        transform: scale(1) !important;
    }

    /* Set specific size for overwhelmed mascot on mobile */
    .scene-mascot-2 {
        width: 180px;
    }

    .timeline-scene:hover .scene-mascot {
        transform: scale(1.05);
    }

    /* Optimize bubble border radius for mobile */
    .problem-bubble {
        max-width: 100%;
        border-radius: 24px;
        padding: 1.5rem;
    }

    .bubble-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .bubble-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .yarn-connector {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    /* === BENTO GRID MOBILE === */
    .story {
        padding: 3rem 1.5rem;
    }

    .feature-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
        gap: 1.25rem;
    }

    .bento-tile-large {
        grid-column: span 1;
    }

    /* Reduce tile padding for mobile */
    .bento-tile {
        padding: 1.5rem;
    }

    /* Further reduce mascot size on mobile */
    .bento-mascot {
        width: 70px;
        height: 70px;
        bottom: 10px;
        right: 10px;
        top: auto;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    }

    /* Fix pink knit swatch specifically - shift down more */
    .bento-mascot[alt="Knit Pattern"] {
        width: 60px;
        height: 60px;
        bottom: 0;
        right: 5px;
    }

    .bento-content {
        margin-top: 0.5rem;
    }

    /* Mobile-optimized typography */
    .bento-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .bento-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Gentler hover effects on mobile */
    .bento-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* === COMMUNITY FEEDBACK MOBILE === */
    .community-feedback {
        padding: 3rem 1.5rem;
    }

    .feedback-wrapper {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Optimize mascot size */
    .feedback-mascot {
        width: clamp(180px, 45vw, 280px);
    }

    /* Reduce form card padding */
    .feedback-form-card {
        padding: 2rem 1.5rem;
    }

    /* Optimize category buttons for touch */
    .category-btn {
        padding: 1.2rem;
        font-size: 1rem;
        min-height: 52px;
    }

    /* Improve form field sizing */
    #feedbackText {
        padding: 1rem;
        font-size: 1rem;
        min-height: 120px;
    }

    #feedbackName {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Optimize character counter */
    .char-counter {
        bottom: 0.75rem;
        right: 1rem;
        font-size: 0.8rem;
    }

    /* Touch-optimized submit button */
    .btn-submit-feedback {
        padding: 1.1rem;
        font-size: 1.05rem;
        min-height: 52px;
    }

    /* Feedback wrapper layout for mobile */
    .feedback-wrapper {
        grid-template-columns: 1fr;
    }

    .mascot-side {
        order: 2;
        align-items: center;
        padding-left: 0;
        margin-left: 0;
    }

    .form-side {
        order: 1;
    }

    .idea-bubbles {
        position: static;
        margin-top: 1.5rem;
    }

    .category-selector {
        flex-direction: column;
    }

    .category-btn {
        min-width: 100%;
    }

    /* Optimize idea carousel for mobile */
    .idea-carousel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .idea-card {
        padding: 1.5rem;
    }

    /* Move community showcase close to thinking mascot on mobile */
    .community-showcase {
        margin-top: 0;
    }

    /* Reduce showcase title size */
    .showcase-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* === SIGNUP SECTION MOBILE === */
    .signup {
        padding: 2.5rem 1.5rem;
    }

    /* Reduce max-width for mobile */
    .signup-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Optimize mascot size */
    .construction-mascot {
        width: clamp(140px, 35vw, 200px);
        margin-bottom: 1rem;
    }

    /* Optimize section title */
    .signup .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    /* Improve description readability */
    .signup-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* Optimize waitlist counter */
    .waitlist-counter {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .counter-number {
        font-size: 1.4rem;
    }

    /* Optimize form layout */
    .signup-form {
        margin: 1.5rem 0 2rem 0;
    }

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

    /* Optimize input fields */
    .form-group input {
        min-width: 100%;
        padding: 1.1rem 1.25rem;
        font-size: 1rem;
        width: 100%;
    }

    /* Touch-optimized submit button */
    .btn-submit {
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
        min-height: 52px;
        width: 100%;
    }

    /* Optimize privacy note */
    .privacy-note {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    /* === GENERAL MOBILE OPTIMIZATIONS === */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        height: 6px;
        bottom: -8px;
    }

    /* Optimize all buttons for touch */
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
        letter-spacing: 0.05em;
    }

    /* Optimize footer */
    .footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-brand {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .footer-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    /* Legacy styles maintained for compatibility */
    .features-grid {
        gap: var(--spacing-md);
    }

    .preview-content {
        flex-direction: column;
    }

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

    .mobile-mockup {
        width: clamp(180px, 40vw, 280px);
    }
}

@media (max-width: 480px) {
    /* Extra-small phone optimizations */
    :root {
        --spacing-md: 1.25rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-title::after {
        height: 4px;
    }

    /* Ensure minimum touch targets on very small screens */
    .btn,
    .category-btn,
    .btn-submit,
    .btn-submit-feedback,
    .cta-primary .btn-primary {
        min-height: 52px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === SELECTION === */
::selection {
    background: var(--color-primary);
    color: white;
}
