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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
}

/* ─── Nav ─── */
#nav {
    background: rgba(246, 246, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
    border-bottom-color: rgba(196, 198, 203, 0.4);
    box-shadow: 0 1px 0 rgba(196, 198, 203, 0.2);
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #374151;
    color: #f6f6f7;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid #374151;
    transition: background 0.4s ease, color 0.4s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: transparent;
    color: #374151;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid #c4c6cb;
    transition: border-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #f43f5e;
    color: #f43f5e;
    transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero-swoop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(226, 227, 229, 0.3));
    pointer-events: none;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #c4c6cb, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Section dividers ─── */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: #fb7185;
    margin-top: 20px;
}

/* ─── Product cards ─── */
.product-card {
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* ─── About ─── */
.about-img-wrap {
    position: relative;
}

.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid rgba(251, 113, 133, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* ─── Input fields ─── */
.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid #c4c6cb;
    padding: 12px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #1f2937;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: #a1a5ad;
}

.input-field:focus {
    border-bottom-color: #f43f5e;
}

/* ─── Mobile menu ─── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ─── Scroll reveal (below fold only, progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .btn-primary, .btn-secondary {
        padding: 14px 28px;
        font-size: 11px;
        width: 100%;
    }

    .hero-cta {
        width: 100%;
        max-width: 320px;
    }

    .about-img-wrap::after {
        inset: 10px -10px -10px 10px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
}
