/* Mobile-First Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #f4e8d0;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    padding: 2rem 1.25rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4e8d0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stamp {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 2.5px solid #c85a54;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
    color: #c85a54;
    background: #fdf5e6;
    box-shadow: 0 2px 4px rgba(200, 90, 84, 0.15);
    background:
        linear-gradient(90deg, #c85a54 50%, transparent 50%),
        linear-gradient(90deg, #c85a54 50%, transparent 50%),
        linear-gradient(0deg, #c85a54 50%, transparent 50%),
        linear-gradient(0deg, #c85a54 50%, transparent 50%),
        #fdf5e6;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
    background-size: 8px 2.5px, 8px 2.5px, 2.5px 8px, 2.5px 8px, 100%;
    background-position: 0 0, 0 100%, 0 0, 100% 0, 0 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #fdf5e6;
    background: #c85a54;
    border-color: #c85a54;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(200, 90, 84, 0.2);
}

/* Main Content */
.main {
    max-width: 100%;
}

section {
    padding: 4rem 1.25rem;
}

/* Hero Section */
.hero {
    padding: 4rem 1.25rem 3rem;
    text-align: center;
    background: #f4e8d0;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #c85a54;
    animation: fadeInUp 0.8s ease-out;
}

.hero-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: #c85a54;
    color: #fdf5e6;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(200, 90, 84, 0.2);
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-button:hover {
    background: #d46a64;
    box-shadow: 0 5px 15px rgba(200, 90, 84, 0.3);
    transform: translateY(-2px);
}

/* Problem Section */
.problem {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #c85a54;
}

.section-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* Product Section */
.product-section {
    background: #f4e8d0;
    text-align: center;
    border-top: none;
    border-bottom: none;
    padding: 4rem 1.25rem 5rem;
}

.product-intro {
    font-family: 'Caveat', cursive;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #c85a54;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.product-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #5a5a5a;
}

.product {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 0;
}

.product-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed transparent;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #c85a54;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-number {
    font-family: 'Caveat', cursive;
    font-size: 5rem;
    font-weight: 700;
    color: #c85a54;
    line-height: 1;
    min-width: 60px;
    text-shadow: 2px 2px 0px rgba(200, 90, 84, 0.1);
}

.product-details {
    flex: 1;
}

.product-name {
    font-family: 'Caveat', cursive;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #6b9d8a;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 0.75rem;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Themes Drawer */
.themes-drawer {
    margin-top: 5rem;
    border-top: none;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.themes-drawer-toggle {
    max-width: 400px;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid #c85a54;
    border-radius: 30px;
    color: #c85a54;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.themes-drawer-toggle:hover {
    background: #c85a54;
    color: #fdf5e6;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.themes-drawer-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.themes-drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    max-width: 700px;
}

.themes-drawer-content.expanded {
    max-height: 600px;
}

.themes-list {
    margin-top: 1.5rem;
}

.theme-item {
    padding: 1.5rem 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #c85a54;
}

.theme-prompt {
    font-size: 0.95rem;
    color: #5a5a5a;
    font-style: italic;
}

/* Floating Signup Bar */
.floating-signup-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(244, 232, 208, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
    border-top: 1px solid #d4a574;
}

.floating-signup-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.floating-signup-text {
    text-align: center;
    font-size: 0.95rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.signup-brand {
    font-weight: 600;
    color: #c85a54;
}

.signup-highlight {
    font-style: italic;
    color: #6b9d8a;
    font-weight: 500;
}

.floating-signup-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

@media (min-width: 480px) {
    .floating-signup-form {
        flex-direction: row;
        align-items: center;
    }
}

.floating-signup-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border: 1px solid #d4a574;
    background: #ffffff;
    color: #2c2c2c;
    border-radius: 30px;
    -webkit-appearance: none;
    font-family: 'Quicksand', sans-serif;
}

.floating-signup-input:focus {
    outline: none;
    border-color: #c85a54;
}

.floating-signup-button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: #c85a54;
    color: #fdf5e6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(200, 90, 84, 0.2);
    font-family: 'Quicksand', sans-serif;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 480px) {
    .floating-signup-button {
        width: auto;
        padding: 1rem 2rem;
    }
}

.floating-signup-button:hover {
    background: #d46a64;
    box-shadow: 0 5px 15px rgba(200, 90, 84, 0.3);
    transform: translateY(-2px);
}

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

.form-message {
    margin-top: 1rem;
    font-size: 1rem;
    color: #d4d4d4;
    text-align: center;
}

.form-message.success {
    color: #6b9d8a;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(107, 157, 138, 0.1);
    border-radius: 8px;
}

.form-message.error {
    color: #c85a54;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 1.25rem 14rem;
    text-align: center;
    border-top: none;
    background: #f4e8d0;
}

.footer p {
    font-size: 0.875rem;
    color: #6a6a6a;
    margin-bottom: 0.5rem;
}

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

/* Keyframe Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Tablet and up (640px+) */
@media (min-width: 640px) {
    .header {
        padding: 2.5rem 3rem;
    }

    section {
        padding: 6rem 3rem;
    }

    .hero {
        padding: 5rem 3rem 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

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

    .product {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .product-section {
        padding: 5rem 3rem 7rem;
    }

    .floating-signup-bar {
        padding: 1.5rem 3rem;
    }

    .floating-signup-form {
        max-width: 700px;
    }

    .floating-signup-input {
        padding: 1.125rem 1.75rem;
        font-size: 1rem;
    }

    .floating-signup-button {
        padding: 1.125rem 2.5rem;
        font-size: 1rem;
    }

    .product-intro {
        font-size: 2.75rem;
        margin-bottom: 3rem;
        max-width: 800px;
    }

    .product-subtitle {
        font-size: 1.75rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .main {
        max-width: 1400px;
        margin: 0 auto;
    }

    section {
        padding: 8rem 4rem;
    }

    .hero {
        padding: 6rem 4rem 5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 600px;
    }

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

    .product-section {
        padding: 12rem 4rem 9rem;
    }

    .product {
        gap: 5rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .floating-signup-bar {
        padding: 1.75rem 4rem;
    }

    .floating-signup-form {
        max-width: 800px;
    }

    .themes-list {
        max-width: 700px;
    }

    .footer {
        padding: 3rem 4rem 11rem;
    }

    .product-intro {
        font-size: 3.25rem;
        max-width: 900px;
    }

    .product-subtitle {
        font-size: 1.875rem;
    }
}
