﻿/* ============================================
   WearBefore — Design System
   ============================================ */
:root {
    --bg:        #F0ECE6;
    --bg-2:      #E8E3DC;
    --surface:   #FFFFFF;
    --ink:       #1A1A1A;
    --mid:       #6B6B6B;
    --light:     #A8A8A8;
    --border:    #DDD8D1;
    --border-lt: #E8E3DC;
    --shadow-sm: 0 2px 16px rgba(26,26,26,0.06);
    --shadow-md: 0 8px 40px rgba(26,26,26,0.10);
    --shadow-lg: 0 24px 80px rgba(26,26,26,0.13);
    --radius:    12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; }

/* ---- LOGO ---- */
.nav-logo, .footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.footer-logo-text { color: #F0ECE6; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
    background: rgba(240,236,230,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}
.nav-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mid);
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- STORE BUTTONS ---- */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-icon { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn span {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.store-btn span small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.65;
    letter-spacing: 0.02em;
}
.store-btn--dark {
    background: var(--ink);
    color: var(--bg);
}
.store-btn--outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.store-btn--outline:hover { background: var(--surface); }
.store-btn--light {
    background: rgba(240,236,230,0.12);
    color: var(--bg);
    border: 1.5px solid rgba(240,236,230,0.25);
}
.store-btn--light:hover { background: rgba(240,236,230,0.2); }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 66px;
}
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--mid);
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 2.75rem;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--light);
}
.hero-social-proof strong { color: var(--mid); }
.proof-avatars { display: flex; }
.proof-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -7px;
}
.proof-avatar:first-child { margin-left: 0; }

/* Phone renders */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.renders-wrap {
    position: relative;
    width: 460px;
    height: 600px;
}
.render-img {
    position: absolute;
    border-radius: 8px;
    object-fit: cover;
}
.render-img--back {
    width: 460px;
    top: 0; left: 0;
    animation: floatBack 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(26,26,26,0.18));
    z-index: 1;
}
.render-img--front {
    width: 320px;
    bottom: 0; right: 0;
    animation: floatFront 5s ease-in-out infinite 0.8s;
    filter: drop-shadow(0 30px 60px rgba(26,26,26,0.22));
    z-index: 2;
}
@keyframes floatBack {
    0%,100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-16px) rotate(0.5deg); }
}
@keyframes floatFront {
    0%,100% { transform: translateY(0) rotate(1.5deg); }
    50%      { transform: translateY(-20px) rotate(-0.5deg); }
}

.scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    color: var(--light);
    font-size: 1.3rem;
    text-decoration: none;
    animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTION SHARED ---- */
.section-header { text-align: center; max-width: 580px; margin: 0 auto 3.5rem; }
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 0.9rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-desc {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.75;
}

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 110px 0; background: var(--surface); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 1px;
    background: var(--border-lt);
}
.step-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border-lt);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 1rem;
    display: block;
}
.step-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.step-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.step-card p { font-size: 0.875rem; color: var(--mid); line-height: 1.7; }

/* ---- FEATURES BENTO ---- */
.features { padding: 110px 0; background: var(--bg); }
.features-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.bento-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-lt);
    padding: 2rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    overflow: hidden;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-hero { grid-column: 1 / 3; }
.bento-sm   { grid-column: span 1; }
.bento-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.9rem;
}
.bento-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.bento-card p  { font-size: 0.875rem; color: var(--mid); line-height: 1.7; }
.bento-card em { font-style: italic; color: var(--ink); }
.bento-emoji { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }

/* Before/After demo inside bento-hero */
.ba-demo {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 1.5rem;
}
.ba-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ba-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light);
}
.ba-badge--dark { color: var(--ink); }
.ba-img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border-lt);
    display: block;
    background: var(--bg);
}
.ba-arrow {
    font-size: 1.4rem;
    color: var(--light);
    flex-shrink: 0;
    padding-bottom: 30px;
}

/* ---- RETAILERS ---- */
.retailers { padding: 110px 0; background: var(--surface); }
.retailer-tiers { display: flex; flex-direction: column; gap: 1.75rem; margin-bottom: 2.5rem; }
.tier-group { display: flex; align-items: flex-start; gap: 2rem; }
.tier-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light);
    min-width: 110px;
    padding-top: 8px;
    flex-shrink: 0;
}
.retailer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.r-pill {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mid);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: default;
    letter-spacing: 0.01em;
}
.r-pill:hover { border-color: var(--ink); color: var(--ink); }
.r-pill--lux {
    background: var(--ink);
    color: rgba(240,236,230,0.85);
    border-color: transparent;
}
.r-pill--lux:hover { background: #333; color: var(--bg); }
.retailers-countries {
    text-align: center;
    font-size: 0.85rem;
    color: var(--light);
    line-height: 2.2;
    padding-top: 1rem;
    border-top: 1px solid var(--border-lt);
}

/* ---- DOWNLOAD ---- */
.download { padding: 0; }
.download-inner {
    background: var(--ink);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.download-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(240,236,230,0.04) 0%, transparent 60%);
}
.download-inner .container { position: relative; z-index: 1; }
.download-inner .section-eyebrow { color: rgba(240,236,230,0.4); }
.download-stats { display: flex; justify-content: center; gap: 5rem; margin-bottom: 3rem; }
.stat { text-align: center; }
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-lbl {
    font-size: 0.72rem;
    color: rgba(240,236,230,0.4);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.download-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { background: #111110; padding: 64px 0 0; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(240,236,230,0.07);
}
.footer-brand p {
    font-size: 0.85rem;
    color: rgba(240,236,230,0.38);
    line-height: 1.75;
    max-width: 260px;
    margin-top: 0.75rem;
}
.footer-links-group h4 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240,236,230,0.3);
    margin-bottom: 1rem;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-group a {
    font-size: 0.875rem;
    color: rgba(240,236,230,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--bg); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.78rem;
    color: rgba(240,236,230,0.22);
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: rgba(240,236,230,0.22); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: rgba(240,236,230,0.6); }

/* ---- FADE ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-container { gap: 3rem; }
    .renders-wrap   { width: 420px; height: 560px; }
    .render-img--back, .render-img--front { width: 360px; }
    .steps-grid     { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .footer-top     { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 66px; left: 0; right: 0;
        background: rgba(240,236,230,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 24px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
        pointer-events: none;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-menu li { border-bottom: 1px solid var(--border-lt); }
    .nav-menu li:last-child { border: none; }
    .nav-link { display: block; padding: 14px 0; font-size: 1rem; color: var(--ink); }
    .hamburger { display: flex; }

    .hero-container { grid-template-columns: 1fr; text-align: center; padding: 60px 24px 100px; gap: 3rem; }
    .hero-subtitle  { margin: 0 auto 2.5rem; }
    .hero-cta       { justify-content: center; }
    .hero-social-proof { justify-content: center; }
    .hero-visual    { width: 100%; justify-content: center; }
    .renders-wrap   { width: 100%; height: auto; display: flex; justify-content: center; }
    .render-img--back { width: min(88vw, 420px); position: static; animation: none; filter: drop-shadow(0 16px 40px rgba(26,26,26,0.16)); }
    .render-img--front { display: none; }

    .steps-grid     { grid-template-columns: 1fr; gap: 1rem; }
    .features-bento { grid-template-columns: 1fr; }
    .bento-hero     { grid-column: 1; }

    .tier-group     { flex-direction: column; gap: 0.6rem; }
    .tier-label     { min-width: unset; padding-top: 0; }

    .download-stats { gap: 2.5rem; }
    .footer-top     { grid-template-columns: 1fr 1fr; }
    .footer-bottom  { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title     { font-size: 2.8rem; }
    .hero-cta       { flex-direction: column; }
    .store-btn      { width: 100%; justify-content: center; }
    .download-stats { flex-direction: column; gap: 1.5rem; }
    .footer-top     { grid-template-columns: 1fr; }
    .renders-wrap   { height: auto; max-width: 100%; }
    .render-img--back { width: min(88vw, 380px); }
    .render-img--front { display: none; }
}