/*
 * PEPTITSHOP.COM
 * Clinical Commerce - Professional E-commerce Design
 * Clean, trustworthy, product-focused
 */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Colors - Professional & Trustworthy */
    --white: #ffffff;
    --snow: #fafbfc;
    --cloud: #f4f6f8;
    --silver: #e8eaed;
    --slate: #94a3b8;
    --charcoal: #475569;
    --ink: #1e293b;
    --midnight: #0f172a;

    /* Brand Colors */
    --brand: #0d6e6e;
    --brand-dark: #0a5555;
    --brand-light: #e6f4f4;
    --accent: #f59e0b;
    --accent-light: #fef3c7;

    /* Semantic */
    --success: #10b981;
    --success-light: #d1fae5;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.2s;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== UTILITIES ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-md);
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-md);
}

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

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--silver);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--silver);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: 1000;
    transition: box-shadow var(--duration) var(--ease);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--ink);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--duration) var(--ease);
}

.nav-link:hover {
    color: var(--brand);
}

.lang-switch {
    display: flex;
    align-items: center;
    background: var(--cloud);
    border-radius: var(--radius-full);
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
}

.lang-btn.active {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--snow);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.menu-toggle:hover {
    background: var(--brand-light);
}

.menu-toggle-inner {
    position: relative;
    width: 20px;
    height: 14px;
}

.menu-toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.menu-toggle-line:first-child {
    top: 0;
}

.menu-toggle-line:last-child {
    bottom: 0;
}

body.menu-open .menu-toggle {
    background: var(--brand);
}

body.menu-open .menu-toggle-line {
    background: var(--white);
}

body.menu-open .menu-toggle-line:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.menu-open .menu-toggle-line:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--silver);
    padding: var(--space-lg);
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s var(--ease);
}

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

.mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    padding: var(--space-sm) 0;
}

.mobile-lang {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--silver);
    margin-top: var(--space-sm);
}

.mobile-lang-btn {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
}

.mobile-lang-btn.active {
    color: var(--brand);
}

/* ===== MAIN ===== */
main {
    padding-top: 72px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(180deg, var(--brand-light) 0%, var(--white) 100%);
    padding: var(--space-4xl) var(--space-lg);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: var(--space-lg);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: var(--space-lg);
}

.hero-title span {
    color: var(--brand);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--silver);
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-arrow {
    transition: transform var(--duration) var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--charcoal);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.float-badge-icon {
    width: 32px;
    height: 32px;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-badge-icon svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

.float-badge-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

/* ===== PRODUCTS SECTION ===== */
.section-products {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--white);
}

.section-header {
    max-width: var(--container);
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.0625rem;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
}

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.product-icon svg {
    width: 28px;
    height: 28px;
    color: var(--brand);
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.product-desc {
    font-size: 0.875rem;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== FEATURES SECTION ===== */
.section-features {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--snow);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--brand);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.section-cta {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--brand);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-xl);
}

.btn-white {
    background: var(--white);
    color: var(--brand);
}

.btn-white:hover {
    background: var(--snow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--midnight);
    color: var(--white);
    padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}

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

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand .logo-mark {
    background: var(--brand);
}

.footer-brand-text {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
    max-width: 300px;
}

.footer-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
    margin-bottom: var(--space-lg);
}

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

.footer-link {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    transition: color var(--duration) var(--ease);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--slate);
}

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

.footer-lang-btn {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    transition: color var(--duration) var(--ease);
}

.footer-lang-btn:hover,
.footer-lang-btn.active {
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 var(--space-md);
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding: var(--space-3xl) var(--space-md);
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-brand-text {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
