/* ============================================
   SNUGLY - Clean & elegant
   ============================================ */

:root {
    --rose: #B76E79;
    --rose-light: #D4A5A5;
    --blush: #F4E4E4;
    --cream: #FFFDF8;
    --champagne: #F7E7CE;
    --ink: #2D2926;
    --stone: #7A7471;
    --mist: #C4BFBA;
    
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 60px;
    --space-2xl: 80px;
}

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

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.texture-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }

em { font-style: italic; font-weight: 400; }

.section-title-left {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.section-text {
    color: var(--stone);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 440px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--space-xs) var(--space-sm);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.75), rgba(255, 253, 248, 0.55));
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 
        0 4px 24px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.logo-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
}

.nav-cta {
    padding: 8px 16px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--rose);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--mist);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-share:hover {
    border-color: var(--rose);
    color: var(--rose);
    transform: translateY(-2px);
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 100px var(--space-sm) var(--space-lg);
}

.hero-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

.hero-content { order: 2; }

.hero-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rose);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.hero-title {
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.hero-title em { color: var(--rose); }

.hero-visual {
    order: 1;
    width: 100%;
    max-width: 360px;
}

/* Comparison Slider */
.comparison-container { position: relative; }

.comparison-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 12px 24px rgba(0,0,0,0.06), 0 24px 48px rgba(183, 110, 121, 0.1);
    aspect-ratio: 3/4;
    cursor: ew-resize;
    border: 1px solid rgba(0,0,0,0.05);
    touch-action: pan-y pinch-zoom;
}

.after-image, .before-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image { display: block; }

.before-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    position: absolute;
    top: 0; left: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
}

.handle-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    transform: translateX(-50%);
}

.handle-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 11;
    transition: transform 0.2s;
}

.comparison-wrapper:hover .handle-icon { transform: scale(1.08); }

.comparison-hint {
    text-align: center;
    padding-top: var(--space-sm);
}

.hint-text {
    font-size: 0.75rem;
    color: var(--stone);
    letter-spacing: 0.02em;
}

/* ============================================
   TRANSFORMATION SHOWCASE
   ============================================ */
.showcase {
    padding: var(--space-xl) var(--space-sm);
    background: var(--ink);
}

.showcase-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.showcase-header h2 {
    color: white;
    margin-bottom: var(--space-xs);
}

.showcase-header em { color: var(--rose-light); }

.showcase-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* Transform layout: Original -> Arrow -> Collage */
.showcase-transform {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* Original image */
.transform-original {
    position: relative;
    flex-shrink: 0;
}

.transform-original img {
    width: 180px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.transform-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Arrow */
.transform-arrow {
    color: var(--rose-light);
    opacity: 0.7;
    transform: rotate(90deg);
}

/* Collage grid */
.transform-collage {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 100%;
}

.collage-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collage-img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 2;
    position: relative;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* Process */
.process {
    padding: var(--space-xl) var(--space-sm);
}

.process-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

.process-content { order: 2; }

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    align-items: center;
}

.mini-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--ink);
    font-size: 0.9375rem;
}

.mini-num {
    width: 28px;
    height: 28px;
    background: var(--blush);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.8125rem;
    color: var(--rose);
    flex-shrink: 0;
}

.process-visual {
    order: 1;
    display: flex;
    justify-content: center;
}

.app-screenshot {
    width: 240px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 24px 48px rgba(0,0,0,0.08);
}

/* Bento Features */
.features {
    padding: var(--space-xl) var(--space-sm);
    background: white;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.bento-card {
    background: var(--cream);
    border-radius: 16px;
    padding: var(--space-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.bento-large {
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(145deg, var(--champagne), var(--blush));
}

.bento-emoji {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.bento-large .bento-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.bento-card h3 {
    margin-bottom: 4px;
    color: var(--ink);
}

.bento-card p {
    font-size: 0.875rem;
    color: var(--stone);
    line-height: 1.5;
}

.bento-large h3 { font-size: 1.25rem; }

/* Marquee */
.styles-section {
    padding: var(--space-lg) 0;
    overflow: hidden;
    background: var(--blush);
}

.marquee {
    display: flex;
    gap: var(--space-md);
}

.marquee-content {
    display: flex;
    gap: var(--space-md);
    animation: scroll 25s linear infinite;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    color: var(--ink);
    white-space: nowrap;
    opacity: 0.7;
}

.marquee-content .dot { opacity: 0.3; }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* CTA */
.download-cta {
    text-align: center;
    padding: var(--space-xl) var(--space-sm);
}

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

.cta-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
}

.cta-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cta-rings {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid var(--rose);
    opacity: 0.2;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 { width: 75px; height: 75px; animation-delay: 0s; }
.ring-2 { width: 95px; height: 95px; animation-delay: 0.4s; }
.ring-3 { width: 115px; height: 115px; animation-delay: 0.8s; }

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.1; }
}

.cta-title {
    margin-bottom: var(--space-sm);
    color: var(--ink);
}

.cta-title em { color: var(--rose); }

.cta-subtitle {
    font-size: 1rem;
    color: var(--stone);
    margin-bottom: var(--space-md);
}

/* Footer */
.footer {
    padding: var(--space-md) var(--space-sm);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.footer-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--stone);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--rose); }

.footer-copyright {
    font-size: 0.75rem;
    color: var(--mist);
}

/* ============================================
   TABLET
   ============================================ */
@media (min-width: 600px) {
    :root {
        --space-xl: 80px;
        --space-2xl: 100px;
    }
    
    .container { padding: 0 var(--space-md); }
    
    .navbar { padding: var(--space-sm) var(--space-md); }
    .nav-content { padding: 12px 20px; }
    .logo-img { width: 32px; height: 32px; }
    .logo-text { font-size: 1.125rem; }
    .nav-cta { padding: 10px 20px; font-size: 0.875rem; }
    
    .hero { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
    .hero-visual { max-width: 400px; }
    .comparison-wrapper { border-radius: 20px; }
    
    /* Showcase - horizontal layout */
    .showcase { padding: var(--space-xl) var(--space-md); }
    
    .showcase-transform {
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
    }
    
    .transform-original img { width: 200px; }
    .transform-arrow { transform: rotate(0); }
    
    .transform-collage {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        flex: 1;
    }
    
    .collage-img { border-radius: 8px; }
    
    .process { padding: var(--space-xl) var(--space-md); }
    .app-screenshot { width: 280px; }
    
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-large { grid-column: span 2; }
    .bento-wide { grid-column: span 2; }
    
    .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 900px) {
    :root {
        --space-xl: 100px;
        --space-2xl: 120px;
    }
    
    .hero-layout { flex-direction: row; gap: var(--space-xl); text-align: left; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; flex: 0 0 45%; max-width: 480px; }
    .hero-eyebrow { font-size: 0.875rem; }
    .handle-icon { width: 44px; height: 44px; }
    
    /* Showcase */
    .transform-original img { width: 260px; border-radius: 16px; }
    .transform-label { padding: 6px 12px; font-size: 0.6875rem; }
    
    .transform-collage { gap: 10px; }
    .collage-img { border-radius: 10px; }
    
    .process-layout { flex-direction: row; gap: var(--space-xl); text-align: left; }
    .process-content { order: 1; flex: 1; }
    .process-visual { order: 2; }
    .process-steps { align-items: flex-start; }
    .app-screenshot { width: 300px; }
    
    .bento-grid { grid-template-columns: repeat(4, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 2; padding: var(--space-lg); display: flex; flex-direction: column; justify-content: flex-end; }
    .bento-emoji { font-size: 2rem; }
    .bento-large .bento-emoji { font-size: 3rem; }
    .bento-large h3 { font-size: 1.5rem; }
    .bento-large p { font-size: 1rem; max-width: 280px; }
    
    .marquee-content span { font-size: 1.25rem; }
    
    .cta-icon { width: 140px; height: 140px; }
    .cta-logo { width: 72px; height: 72px; border-radius: 16px; }
    .ring-1 { width: 90px; height: 90px; }
    .ring-2 { width: 115px; height: 115px; }
    .ring-3 { width: 140px; height: 140px; }
    
    .lightbox-close { top: 30px; right: 30px; }
}

/* ============================================
   LARGE DESKTOP
   ============================================ */
@media (min-width: 1200px) {
    .transform-original img { width: 300px; }
    .transform-collage { gap: 12px; }
    .collage-img { border-radius: 12px; }
}
