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

:root {
    --blue: #6BB6FF;
    --green: #7FD068;
    --yellow: #FFD93D;
    --pink: #FFB6D9;
    --purple: #B19CD9;
    --red: #FF6B6B;
    --black: #2D3436;
    --white: #FFFFFF;
    --cream: #FFF9F0;
    --shadow: rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
}

body {
    font-family: 'Fredoka', 'Comic Sans MS', -apple-system, sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--cream);
    position: relative;
}

/* Floating Shapes Background */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    background: var(--blue);
    top: 10%;
    left: 10%;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: var(--pink);
    top: 60%;
    right: 10%;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: var(--yellow);
    bottom: 20%;
    left: 20%;
}

.shape:nth-child(4) {
    width: 250px;
    height: 250px;
    background: var(--green);
    top: 40%;
    right: 30%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(255, 182, 217, 0.2) 100%);
}

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

.logo-container {
    width: auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 3rem;
    position: relative;
}


.logo-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--blue), var(--purple), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* animation: wiggle 3s ease-in-out infinite; */ /* Disabled wiggle animation */
    text-transform: lowercase;
    letter-spacing: -2px;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black);
    animation: slideInUp 0.8s ease-out;
}

.hero-title span {
    display: inline-block;
    animation: colorChange 3s infinite;
}

@keyframes colorChange {
    0% { color: var(--blue); }
    25% { color: var(--purple); }
    50% { color: var(--pink); }
    75% { color: var(--green); }
    100% { color: var(--blue); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: slideInUp 0.8s 0.2s ease-out both;
}

.cta-button {
    background: linear-gradient(45deg, var(--blue), var(--purple));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 182, 255, 0.4);
    animation: slideInUp 0.8s 0.4s ease-out both;
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(107, 182, 255, 0.6);
}

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

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceArrow 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--purple);
    border-bottom: 3px solid var(--purple);
    transform: rotate(45deg);
    margin: 0 auto;
}

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

/* Memory Cards Section */
.tin-story {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(127, 208, 104, 0.1) 100%);
    position: relative;
}

.app-icon-section {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    opacity: 0.7;
}

@media (max-width: 768px) {
    .app-icon-section {
        width: 50px;
        top: 1rem;
        right: 1rem;
    }
}

.story-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.story-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.story-text p {
    font-size: 1.3rem;
    color: var(--black);
    opacity: 0.8;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.memory-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow);
    transform: rotate(0deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(107, 182, 255, 0.1), 
        transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.memory-card:hover::before {
    animation: shimmer 0.5s;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%);
        opacity: 0;
    }
}

.memory-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.memory-card:nth-child(even) {
    transform: rotate(2deg);
}

.memory-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.memory-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.card-sticker {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transform: rotate(-5deg);
    margin-top: 0.5rem;
}

.memory-card:nth-child(1) .card-sticker {
    background: linear-gradient(45deg, var(--blue), var(--purple));
    color: white;
}

.memory-card:nth-child(2) .card-sticker {
    background: linear-gradient(45deg, var(--pink), var(--yellow));
    color: white;
}

.memory-card:nth-child(3) .card-sticker {
    background: linear-gradient(45deg, var(--green), var(--blue));
    color: white;
}

.memory-card:nth-child(4) .card-sticker {
    background: linear-gradient(45deg, var(--purple), var(--pink));
    color: white;
}

.memory-card:nth-child(5) .card-sticker {
    background: linear-gradient(45deg, var(--yellow), var(--green));
    color: white;
}

.memory-card:nth-child(6) .card-sticker {
    background: linear-gradient(45deg, var(--red), var(--purple));
    color: white;
}

/* Recognition Section */
.recognition {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(127, 208, 104, 0.1) 0%, rgba(255, 217, 61, 0.1) 100%);
}

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

.recognition h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--black);
    margin-bottom: 3rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px var(--shadow);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    background: var(--cream);
    transform: translateX(5px);
}

.cross {
    color: var(--red);
    font-size: 2rem;
    opacity: 0.6;
}

.check {
    color: var(--green);
    font-size: 2rem;
    font-weight: bold;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: var(--max-width);
}

.feature-item {
    background: var(--cream);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--yellow);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Final CTA */
.final-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(177, 156, 217, 0.1) 100%);
}

.app-icon-small {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
}

.app-download-section {
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
}

.download-text {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 500;
}

.app-store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ios-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
}

.ios-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testflight-btn {
    background: #000;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.testflight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #222;
}

.android-btn {
    background: linear-gradient(135deg, var(--green) 0%, #6BC055 100%);
    color: white;
}

.android-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 192, 85, 0.4);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.pocket-animation {
    width: 150px;
    height: 150px;
    margin: 0 auto 3rem;
    position: relative;
    animation: jiggle 2s infinite;
}

@keyframes jiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.final-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.scarcity-text {
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.email-capture {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
    padding: 0.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px var(--shadow);
}

.email-capture input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.email-capture input::placeholder {
    color: #999;
}

.submit-button {
    background: linear-gradient(45deg, var(--purple), var(--pink));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(177, 156, 217, 0.4);
}

.social-proof {
    color: var(--black);
    font-size: 1rem;
    opacity: 0.7;
}

.social-proof span {
    font-weight: 700;
    color: var(--purple);
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--black);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.modal-close {
    background: linear-gradient(45deg, var(--green), var(--blue));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.05);
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 999;
    animation: confettiFall 3s linear;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Social Links Section */
.social-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-section h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--yellow);
}

.contact-email {
    font-size: 1rem;
    color: #666;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .memory-grid {
        grid-template-columns: 1fr;
    }
    
    .email-capture {
        flex-direction: column;
        padding: 1rem;
    }
    
    .submit-button {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 3rem;
    }
}