/* ============================================
   Love Capsule — Premium Valentine's Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-800: #9f1239;
    --pink-50: #fdf2f8;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(225, 29, 72, 0.12);
}

* { box-sizing: border-box; }

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ---- Animated Gradient Background ---- */
.bg-love {
    background: linear-gradient(135deg, var(--rose-50) 0%, var(--pink-50) 40%, #fef2f2 70%, var(--rose-100) 100%);
    min-height: 100dvh;
}

.bg-love-animated {
    background: linear-gradient(135deg, var(--rose-50), var(--pink-50), #fef2f2, var(--rose-100), var(--rose-50));
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    min-height: 100dvh;
}

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

/* ---- Glass Card ---- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.5rem;
}

/* ---- Urgency Banner ---- */
.urgency-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--rose-600), var(--rose-500), var(--rose-600));
    background-size: 200% 100%;
    animation: bannerShimmer 3s ease infinite;
    color: #fff;
}

.urgency-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

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

/* ---- Squishy Button ---- */
.btn-love {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500) 0%, var(--rose-600) 100%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 56px;
    width: 100%;
    max-width: 360px;
    text-decoration: none;
}

.btn-love:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.btn-love:hover {
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.btn-love-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(225, 29, 72, 0.55), 0 0 60px rgba(225, 29, 72, 0.15); }
}

.btn-love-outline {
    background: transparent;
    border: 2px solid var(--rose-400);
    color: var(--rose-600);
    box-shadow: none;
    animation: none;
}

.btn-love-outline:hover {
    background: var(--rose-50);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
}

.btn-love-outline:active {
    transform: scale(0.95);
}

/* Small variant */
.btn-love-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
}

/* ---- Typography ---- */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

.text-love {
    background: linear-gradient(135deg, var(--rose-600) 0%, var(--rose-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Feature Pills (Landing) ---- */
.feature-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.feature-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Envelope Preview (Landing page) ---- */
.envelope-preview {
    position: relative;
    width: 200px;
    height: 140px;
    margin: 0 auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.envelope-preview-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fff5f5, #ffe8ec);
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.12);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.envelope-preview-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    z-index: 2;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.envelope-preview-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(145deg, var(--rose-400), var(--rose-500));
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    transform-origin: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.envelope-preview-flap.peek-open {
    transform: rotateX(140deg);
}

.envelope-preview-letter {
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0.5rem;
    text-align: center;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.envelope-preview-letter.peeking {
    bottom: 15%;
}

/* ---- Hero Heart ---- */
.hero-heart {
    width: 80px;
    height: 80px;
    animation: heroFloat 3s ease-in-out infinite;
}

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

/* ---- Progress Bar ---- */
.progress-track {
    width: 100%;
    height: 6px;
    background: var(--rose-100);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-400), var(--rose-600));
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Form Fields ---- */
.input-love {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--rose-800);
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--rose-200);
    border-radius: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-love:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.15);
}

.input-love::placeholder {
    color: #c4a0a8;
}

textarea.input-love {
    resize: vertical;
    min-height: 160px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ---- Envelope Animation (Viewer) ---- */
.envelope-container {
    perspective: 800px;
    width: 280px;
    height: 200px;
    margin: 0 auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fff5f5, #ffe8ec);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(225, 29, 72, 0.18);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(145deg, var(--rose-400), var(--rose-500));
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.envelope-flap.open {
    transform: rotateX(180deg);
}

/* Wax Seal */
.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(159, 18, 57, 0.35));
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.letter-pull {
    position: absolute;
    bottom: -80%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1rem;
    transition: bottom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    text-align: center;
}

.letter-pull.revealed {
    bottom: 10%;
}

.letter-pull p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--rose-700);
    margin: 0;
}

/* ---- Letter Paper (Viewer) ---- */
.letter-paper {
    position: relative;
    background: linear-gradient(180deg, #fffaf5 0%, #fff8f0 100%);
    border: 1px solid rgba(225, 180, 150, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 30px rgba(225, 29, 72, 0.08),
        inset 0 0 80px rgba(255, 240, 230, 0.3);
    /* Subtle paper texture via repeating gradient */
    background-image:
        linear-gradient(180deg, #fffaf5 0%, #fff8f0 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(225, 180, 150, 0.08) 27px,
            rgba(225, 180, 150, 0.08) 28px
        );
}

.letter-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
}

.letter-corner-tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid var(--rose-400);
    border-left: 2px solid var(--rose-400);
    border-radius: 4px 0 0 0;
}

.letter-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid var(--rose-400);
    border-right: 2px solid var(--rose-400);
    border-radius: 0 0 4px 0;
}

/* ---- Typing Effect ---- */
.typewriter {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--rose-800);
    white-space: pre-wrap;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--rose-400);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Scrapbook Gallery ---- */
.scrapbook {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

/* ---- Polaroid Card ---- */
.polaroid {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem 0;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 8px 24px rgba(225, 29, 72, 0.1);
    transform: rotate(var(--rotate, 0deg));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.polaroid:nth-child(5) {
    grid-column: 1 / -1;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.04) translateY(-4px);
    box-shadow:
        0 12px 36px rgba(225, 29, 72, 0.18),
        0 4px 12px rgba(0,0,0,0.08);
}

.polaroid:active {
    transform: rotate(0deg) scale(0.98);
}

.polaroid-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    aspect-ratio: 1;
    background: var(--rose-50);
}

.polaroid:nth-child(5) .polaroid-img-wrap {
    aspect-ratio: 16 / 9;
}

.polaroid-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Fade in when loaded */
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Ken Burns slow zoom + pan (starts after load) */
    animation: kenBurns 12s ease-in-out infinite alternate;
    animation-delay: var(--ken-delay, 0s);
    animation-play-state: paused;
}

.polaroid-img-wrap img.loaded {
    opacity: 1;
    animation-play-state: running;
}

@keyframes kenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

/* Shimmer sweep across photo */
.shimmer-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: shimmerSweep 4s ease-in-out infinite;
    animation-delay: var(--ken-delay, 0s);
    pointer-events: none;
}

@keyframes shimmerSweep {
    0%, 70%  { transform: translateX(-100%); }
    100%     { transform: translateX(100%); }
}

/* Polaroid bottom caption */
.polaroid-footer {
    padding: 0.5rem 0.25rem 0.6rem;
    text-align: center;
}

.polaroid-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--rose-400);
    letter-spacing: 0.02em;
}

/* ---- Photo Lightbox ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 210;
}

/* ---- Floating Music Player ---- */
.music-player {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 150;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    pointer-events: none;
}

.music-player.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.music-player-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-label {
    font-size: 0.85rem;
    color: var(--rose-600);
    white-space: nowrap;
}

/* Equalizer bars animation */
.music-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-eq span {
    display: block;
    width: 3px;
    background: var(--rose-400);
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.music-eq span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-eq span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.music-eq span:nth-child(3) { height: 6px; animation-delay: 0.4s; }

.music-eq.paused span {
    animation-play-state: paused;
    height: 4px !important;
}

@keyframes eqBounce {
    0%   { height: 4px; }
    100% { height: 16px; }
}

.music-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(225, 29, 72, 0.08);
    border-radius: 50%;
    color: var(--rose-500);
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.music-toggle:hover {
    background: rgba(225, 29, 72, 0.15);
}

/* ---- Save as Image Button ---- */
.btn-save-image {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rose-500);
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--rose-200);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-save-image:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--rose-400);
    box-shadow: 0 2px 12px rgba(225, 29, 72, 0.12);
}

.btn-save-image:active {
    transform: scale(0.96);
}

.btn-save-image:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-save-image svg {
    flex-shrink: 0;
}

/* ---- Reply CTA (clears fixed music player) ---- */
.cta-reply-wrap {
    padding-bottom: 7rem;
}

/* ---- Floating Hearts BG ---- */
.floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    bottom: -20px;
    font-size: 1.2rem;
    opacity: 0.12;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.15; }
    50% { opacity: 0.2; }
    100% {
        transform: translateY(-100dvh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ---- QR Code container ---- */
.qr-frame {
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.12);
}

/* ---- Utility ---- */
.container-narrow {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-wide {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.fade-in {
    animation: fadeIn 0.5s ease both;
}

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

/* Hide scrollbar on form steps */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Disabled button state ---- */
.btn-love:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Phone Mockup (Landing Hero) ---- */
.phone-mockup {
    width: 260px;
    background: #1a1a1a;
    border-radius: 2rem;
    padding: 0.6rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-screen {
    background: linear-gradient(180deg, #fff8f5 0%, #fff1f2 100%);
    border-radius: 1.5rem;
    overflow: hidden;
}

.phone-screen-inner {
    padding: 1.5rem 1rem;
}

/* ---- Step Cards (How it works) ---- */
.step-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(225, 29, 72, 0.18);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* ---- Experience Items ---- */
.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
}

.experience-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(225, 29, 72, 0.18);
}

/* ---- Pricing Card ---- */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rose-400), var(--rose-600), var(--rose-400));
    background-size: 200% 100%;
    animation: bannerShimmer 3s ease infinite;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---- Demo Card ---- */
.demo-card {
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #4ade80);
    background-size: 200% 100%;
    animation: bannerShimmer 3s ease infinite;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ============================================
   Desktop Responsive (768px+)
   ============================================ */

@media (min-width: 768px) {

    /* ---- Demo Grid ---- */
    .demo-grid {
        flex-direction: row;
        gap: 2.5rem;
        text-align: left;
    }

    /* ---- Landing Page ---- */
    .landing-hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        text-align: left;
    }

    .landing-hero .hero-left { text-align: left; }
    .landing-hero .hero-right { text-align: center; }

    .landing-hero .btn-love { margin-left: 0; }

    .landing-features {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* ---- Envelope (Viewer) — larger on desktop ---- */
    .envelope-container {
        width: 340px;
        height: 240px;
    }

    .wax-seal svg { width: 56px; height: 56px; }

    /* ---- Letter Paper — wider, more padding ---- */
    .letter-paper {
        padding: 3rem 2.5rem;
    }

    .typewriter {
        font-size: 1.35rem;
        line-height: 2;
    }

    /* ---- Scrapbook — 3 columns on desktop ---- */
    .scrapbook {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .polaroid:nth-child(5) {
        grid-column: auto;
    }

    .polaroid:nth-child(5) .polaroid-img-wrap {
        aspect-ratio: 1;
    }

    /* ---- Success Page ---- */
    .success-grid {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 2rem;
        align-items: start;
        text-align: left;
    }

    .success-grid .qr-frame { margin: 0; }

    /* ---- Phone Mockup — larger on desktop ---- */
    .phone-mockup {
        width: 300px;
    }

    /* ---- Form — wider card ---- */
    .glass {
        padding: 2rem 2.5rem;
    }
}

/* ============================================
   Large Desktop (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .container-wide {
        max-width: 960px;
    }

    .landing-hero {
        gap: 4rem;
    }

    .envelope-container {
        width: 380px;
        height: 270px;
    }

    .envelope-preview {
        width: 260px;
        height: 180px;
    }

    .phone-mockup {
        width: 320px;
    }

    .letter-paper {
        padding: 3.5rem 3rem;
    }

    .typewriter {
        font-size: 1.4rem;
    }

    .scrapbook {
        gap: 1.5rem;
    }

    .polaroid-img-wrap img {
        transition: transform 0.5s ease;
    }

    .polaroid:hover .polaroid-img-wrap img {
        transform: scale(1.06);
        animation-play-state: paused;
    }
}
