/* css/style.css - KLYP Landing Page (Reference Match) */

:root {
    /* Colors mapping Tailwind variables */
    --background: #ffffff;
    --foreground: #09090b; /* Very dark gray, almost black */
    --muted: #71717a;
    --border: #e4e4e7;
    --secondary: #f4f4f5;
    
    /* WhatsApp */
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE5D;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif; /* Fallback to a geometric font, mimicking the display font */
    --font-brand: 'Libre Baskerville', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-secondary { background-color: var(--secondary); }
.text-background { color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted); }

.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.font-light { font-weight: 300; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.line-through { text-decoration: line-through; }
.text-opacity-60 { opacity: 0.6; }
.text-opacity-70 { opacity: 0.7; }
.ml-6 { margin-left: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Container */
.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .container { padding: 0 2.5rem; }
}

/* Typography specific classes mapping to Tailwind */
.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.bg-foreground .eyebrow { color: rgba(255,255,255,0.6); }

.section-title {
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .section-title { font-size: 3.75rem; }
}

.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }

/* Buttons & Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-dark {
    border: 1px solid var(--foreground);
    background: var(--foreground);
    color: var(--background);
    padding: 0.5rem 1.25rem;
}
.btn-outline-dark:hover {
    background: var(--background);
    color: var(--foreground);
}

.btn-solid-dark {
    background: var(--foreground);
    color: var(--background);
    padding: 1rem 2rem;
}
.btn-solid-dark:hover {
    opacity: 0.9;
}

.btn-solid-light {
    background: var(--background);
    color: var(--foreground);
    padding: 1rem 2.5rem;
}
.btn-solid-light:hover {
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2.5rem;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(113, 113, 122, 0.4);
    color: var(--background);
    padding: 1rem 2.5rem;
    cursor: not-allowed;
}

.link-underline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: inherit;
    transition: opacity 0.2s;
}
.link-underline:hover { opacity: 0.6; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .nav-container { padding: 0 2.5rem; }
}

.logo {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    text-decoration: none;
    color: var(--foreground);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}
.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

/* Hero */
.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 2.5rem;
    }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted);
}

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

.hero-tags {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.bg-glow {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: radial-gradient(circle at center, rgba(230,230,230,1) 0%, transparent 70%);
}

.product-img {
    margin: 0 auto;
    width: 100%;
    max-width: 32rem;
    display: block;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Marquee */
.marquee-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-style: italic;
    opacity: 0.8;
    animation: marquee 30s linear infinite;
}
@media (min-width: 768px) {
    .marquee-content { font-size: 3rem; }
}

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

/* Problem Section */
.separator-line {
    margin: 3rem auto 0;
    height: 1px;
    width: 6rem;
    background-color: rgba(9, 9, 11, 0.3);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
    background-color: var(--foreground);
    padding: 2.5rem;
}
@media (min-width: 768px) {
    .feature-card { padding: 3.5rem; }
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5);
}

.feature-title {
    margin-top: 1.5rem;
    font-size: 1.875rem;
}
@media (min-width: 768px) {
    .feature-title { font-size: 2.25rem; }
}

.feature-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(255,255,255,0.7);
    max-width: 24rem;
}

/* How to */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-item {
    border-top: 1px solid var(--foreground);
    padding-top: 2rem;
}

.step-number {
    font-size: 3.75rem;
    font-style: italic;
}

.step-title {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.step-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted);
}

/* Specs */
.specs-list {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.spec-row:first-child { border-top: 1px solid var(--border); }

.spec-row dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

.spec-row dd {
    font-size: 1.125rem;
}
@media (min-width: 768px) {
    .spec-row dd { font-size: 1.25rem; }
}

/* Product Split */
.product-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 768px) {
    .product-split { grid-template-columns: 1fr 1fr; }
}

.product-image-container {
    position: relative;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.price-main {
    font-size: 3.75rem;
}
@media (min-width: 768px) {
    .price-main { font-size: 4.5rem; }
}

.price-currency {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

.price-note {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

.includes-list {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stock-alert {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

/* Reviews */
.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: var(--border);
}
@media (min-width: 768px) {
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
    background-color: var(--background);
    padding: 2.5rem;
    min-height: 17.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .review-card { padding: 3rem; }
}

.stars {
    color: rgba(9, 9, 11, 0.3);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(113, 113, 122, 0.7);
}

.review-author {
    margin-top: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(113, 113, 122, 0.6);
}

/* Reviews Carousel */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 2rem;
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.reviews-carousel .review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: 12px;
}
@media (min-width: 768px) {
    .reviews-carousel .review-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}
@media (min-width: 1024px) {
    .reviews-carousel .review-card {
        flex: 0 0 calc(33.333% - 0.66rem);
    }
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.carousel-btn:hover {
    background: var(--foreground);
    color: var(--background);
}

.review-content-wrapper {
    flex-grow: 1;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
}

.review-variant {
    font-size: 0.7rem;
    color: var(--muted);
    font-style: italic;
}

/* Media Compartment */
.review-media {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.media-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.media-thumb:hover {
    transform: scale(1.05);
}

.media-thumb img, .media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Media Modal */
.media-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.media-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
}
.modal-content img, .modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-logo {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.footer-copy {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Intersection Observer Classes */
.fade-up-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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