:root {
    /* Premium Color Palette */
    --c-primary: #FF6B6B;
    --c-secondary: #4ECDC4;
    --c-tertiary: #FFE66D;
    --c-purple: #9D4EDD;
    
    --bg-dark: #0A0A0A;
    --bg-light: #FAFAFA;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    --transition-snappy: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

/* --- Animated Mesh Background --- */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-light);
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 { width: 60vw; height: 60vw; background: var(--c-tertiary); top: -20%; left: -10%; }
.blob-2 { width: 50vw; height: 50vw; background: var(--c-secondary); bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 40vw; height: 40vw; background: var(--c-primary); top: 30%; left: 40%; animation-delay: -10s; opacity: 0.4; }

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
    z-index: -1;
}

/* --- Typography & Utilities --- */
.font-serif {
    font-family: 'Playfair Display', serif;
}
.gradient-text {
    background: linear-gradient(135deg, var(--c-primary), var(--c-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.mb-2 { margin-bottom: 2rem; }

/* --- Buttons --- */
.btn {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--text-main);
}

.btn-glow {
    background: var(--text-main);
    color: white;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.btn-glow:hover::before {
    transform: translateX(100%);
}

.btn-outline-glow {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    transition: var(--transition-snappy);
}
.btn-outline-glow:hover {
    background: var(--text-main);
    color: white;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-circle {
    width: 60px; height: 60px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
}

.btn-text-link {
    background: none; border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-primary);
    position: relative;
}
.btn-text-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--c-primary); transition: var(--transition-smooth);
}
.btn-text-link:hover::after { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 2rem; font-weight: 900; }
.logo-ki { color: var(--c-primary); }
.logo-do { color: var(--c-secondary); }
.logo-se { color: var(--c-purple); }

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: 1.1rem; position: relative; }

.badge {
    background: var(--c-primary); color: white;
    font-size: 0.75rem; padding: 2px 8px; border-radius: 20px;
    margin-left: 8px;
}

/* --- Split Parallax Hero --- */
.hero-split {
    min-height: 100vh;
    padding: 10rem 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-title-split {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.hero-subtitle-split {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
}

.avatars { display: flex; }
.avatar { width: 45px; height: 45px; border-radius: 50%; border: 3px solid white; margin-left: -15px; object-fit: cover; }
.avatar:first-child { margin-left: 0; }

.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.floating-card img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.card-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-1 {
    top: 20px;
    left: 0;
    z-index: 3;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    top: 150px;
    right: 0;
    z-index: 2;
    animation: float2 7s ease-in-out infinite reverse;
}

.card-3 {
    bottom: 20px;
    left: 80px;
    z-index: 4;
    animation: float1 8s ease-in-out infinite 1s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

.stat-number { font-size: 3rem; font-family: 'Outfit'; font-weight: 900; line-height: 1; }
.stat-text { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; margin-top: 0.5rem; }

.bento-icon {
    grid-column: span 1;
    grid-row: span 1;
    display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 2rem;
}

.icon-ring {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border: 1px solid rgba(255,255,255,0.8);
}
.bento-icon p { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.hero-title {
    font-size: 5vw;
    line-height: 1.05;
    margin-bottom: 2rem;
    display: flex; flex-direction: column;
}
.text-reveal { display: block; }
.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted);
    max-width: 500px; margin-bottom: 3rem;
}
.hero-buttons { display: flex; gap: 1.5rem; }

/* --- 3D Tilt Cards --- */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    position: relative;
}



.card-glow {
    position: absolute; width: 100%; height: 100%; top:0; left:0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.8), transparent 50%);
    border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0;
    transition: opacity 0.3s;
}
.tilt-card:hover .card-glow { opacity: 1; }

.image-wrapper {
    border-radius: 20px; overflow: hidden; transform: translateZ(50px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-image { width: 100%; height: auto; display: block; }

.ar-badge {
    position: absolute; top: -20px; right: -20px;
    background: var(--text-main); color: white;
    padding: 1rem 1.5rem; border-radius: 50px; font-weight: 800;
    transform: translateZ(80px); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}



/* --- Sections Common --- */
.features, .products {
    padding: 10rem 2rem;
    max-width: 1400px; margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 4rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- Marquee --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background: var(--text-main);
    color: var(--c-tertiary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0 8rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee span {
    margin: 0 2rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Features Grid --- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}

.feature-card {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 30px;
    padding: 4rem 3rem; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.feature-icon-wrapper {
    width: 100px; height: 100px; margin: 0 auto 2rem;
    background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateZ(40px);
}
.feature-icon { font-size: 3rem; }
.feature-card h3 { font-size: 1.8rem; margin-bottom: 1rem; transform: translateZ(30px); }
.feature-card p { color: var(--text-muted); transform: translateZ(20px); }

/* --- Products Carousel --- */
.products-carousel {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem;
}

.product-card {
    background: white; border-radius: 30px; padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.product-image-container {
    border-radius: 20px; overflow: hidden; position: relative; height: 350px;
    transform: translateZ(30px);
}

.product-image-container img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image-container img { transform: scale(1.1); }

.image-overlay {
    position: absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0; transition: opacity 0.4s; z-index: 1;
}
.product-card:hover .image-overlay { opacity: 1; }

.product-action {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    z-index: 2; opacity: 0; transition: var(--transition-snappy);
}
.product-card:hover .product-action { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.product-info { padding: 2rem 1rem 1rem; transform: translateZ(20px); }
.product-meta { display: flex; gap: 1rem; margin-bottom: 1rem; }
.tag { font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 20px; background: var(--bg-light); }
.tag-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
.product-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.8rem; font-weight: 800; font-family: 'Outfit'; }

/* --- Footer --- */
.footer { padding: 0 2rem 2rem; }
.footer-glass {
    max-width: 1400px; margin: 0 auto;
    background: var(--text-main); color: white;
    border-radius: 40px; padding: 6rem 4rem 2rem;
    position: relative; overflow: hidden;
}
.huge-text {
    font-size: 15vw; line-height: 0.8; letter-spacing: -0.05em;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: absolute; top: -5%; left: 50%; transform: translateX(-50%);
    white-space: nowrap; pointer-events: none;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem;
    position: relative; z-index: 1; margin-top: 5rem;
}
.footer-desc { font-size: 1.5rem; color: #A0A0A0; max-width: 400px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: #A0A0A0; font-weight: 500; font-size: 1.1rem; transition: color 0.3s; display: inline-block;}
.footer-col a:hover { color: white; }

.footer-bottom {
    margin-top: 6rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; color: #666; font-size: 0.9rem; position: relative; z-index: 1;
}

/* --- UX Enhancements (Toasts, ScrollTop, A11y) --- */
.toast-container {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 2000;
    display: flex; flex-direction: column; gap: 1rem; pointer-events: none;
}
.toast {
    background: var(--text-main); color: white; padding: 1rem 1.5rem;
    border-radius: 16px; font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
    transform: translateX(120%) scale(0.9); opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; gap: 0.8rem;
}
.toast.show { transform: translateX(0) scale(1); opacity: 1; }

.scroll-top-btn {
    position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
    width: 55px; height: 55px; border-radius: 50%;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5); color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none;
    transform: translateY(30px) rotate(-45deg); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; transform: translateY(0) rotate(0deg); }
.scroll-top-btn:hover { background: var(--c-primary); color: white; border-color: var(--c-primary); transform: translateY(-5px); }

*:focus-visible {
    outline: 3px solid var(--c-secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Animations / Reveals --- */
.reveal {
    opacity: 0; transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right { transform: translateX(100px); }
.reveal-bottom { transform: translateY(100px); }

.reveal.active {
    opacity: 1; transform: translate(0, 0);
}

/* --- Modal & Cart Sidebar --- */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 400px; height: 100vh;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.5);
    z-index: 1000; padding: 2rem; display: flex; flex-direction: column;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem; }
.cart-close { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-footer { padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.1); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }

.quick-view-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
.quick-view-modal.open { pointer-events: all; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content {
    position: relative; background: white; border-radius: 30px;
    width: 90%; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr;
    overflow: hidden; transform: translateY(50px); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-view-modal.open .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg-light); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; }
.modal-image { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 1280px) {
    .hero-title-split { font-size: 4rem; }
}

@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 8rem; }
    .hero-subtitle-split { margin: 0 auto 3rem; }
    .hero-actions { flex-direction: column; gap: 2rem; justify-content: center; }
    .users-group { margin-left: 0 !important; }
    .hero-visual { height: 500px; transform: scale(0.9); margin-top: 2rem; }
    .hero-title-split { font-size: 3.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
