/* ==========================================================================
   KatalejoShop Premium Styling System (Vanilla CSS)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Harmony Palette: Tailored HSL Colors */
    --bg-hsl: 240 10% 3.9%;
    --card-hsl: 240 10% 6.5%;
    --fg-hsl: 0 0% 98%;
    --muted-hsl: 240 5% 65%;
    --border-hsl: 240 5.9% 15%;
    
    --primary-hsl: 187 100% 50%;     /* Glowing Cyan */
    --secondary-hsl: 270 100% 64%;   /* Neon Purple */
    --pink-hsl: 325 100% 60%;        /* Dynamic Accent Pink */
    
    /* Solid Colors mapped from HSL */
    --bg: hsl(var(--bg-hsl));
    --card: hsl(var(--card-hsl));
    --fg: hsl(var(--fg-hsl));
    --muted: hsl(var(--muted-hsl));
    --border: hsl(var(--border-hsl));
    
    --primary: hsl(var(--primary-hsl));
    --secondary: hsl(var(--secondary-hsl));
    --pink: hsl(var(--pink-hsl));
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Typography Font Families */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Glows */
    --glow-primary: 0 0 30px hsla(var(--primary-hsl) / 0.25);
    --glow-secondary: 0 0 30px hsla(var(--secondary-hsl) / 0.25);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.highlight {
    color: var(--secondary);
}

.highlight-slogan {
    color: #ffffff;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    background: hsla(var(--secondary-hsl) / 0.1);
    border: 1px solid hsla(var(--secondary-hsl) / 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000000;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px hsla(var(--primary-hsl) / 0.4), 0 0 40px hsla(var(--secondary-hsl) / 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: hsla(var(--fg-hsl) / 0.05);
    color: var(--fg);
    border-color: var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: hsla(var(--fg-hsl) / 0.1);
    border-color: hsla(var(--fg-hsl) / 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: hsla(var(--fg-hsl) / 0.05);
    border-color: var(--muted);
    transform: translateY(-2px);
}

.btn.lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn.full-width {
    width: 100%;
}

/* Ambient Background Orbs */
.orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    top: 10%;
    left: -10%;
    background: var(--primary);
}

.orb-2 {
    top: 30%;
    right: -10%;
    background: var(--secondary);
}

.orb-3 {
    bottom: 5%;
    left: 20%;
    background: var(--pink);
    width: 600px;
    height: 600px;
    opacity: 0.1;
}

/* Navigation Header with Glassmorphism */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: hsla(var(--bg-hsl) / 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--fg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.nav-item:hover {
    color: var(--fg);
}

.nav-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 4px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--fg);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Premium Dashboard UI Mockup */
.hero-media {
    position: relative;
    width: 100%;
}

.brand-hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-hero-logo {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 50px hsla(var(--primary-hsl) / 0.35));
    animation: float 6s ease-in-out infinite;
}

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

.mockup-frame {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium), var(--glow-secondary);
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 11;
}

.mockup-header {
    background: hsla(0 0% 0% / 0.3);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-header .dot.red { background: #ff5f56; }
.mockup-header .dot.yellow { background: #ffbd2e; }
.mockup-header .dot.green { background: #27c93f; }

.mockup-address {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: hsla(var(--bg-hsl) / 0.6);
    border: 1px solid var(--border);
    padding: 4px 20px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--muted);
    font-family: monospace;
}

.mockup-body {
    flex: 1;
    display: grid;
    grid-template-columns: 70px 1fr;
    overflow: hidden;
}

.mockup-sidebar {
    border-right: 1px solid var(--border);
    background: hsla(0 0% 0% / 0.15);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: hsla(var(--fg-hsl) / 0.05);
    border: 1px solid transparent;
}

.sidebar-item.active {
    background: hsla(var(--secondary-hsl) / 0.1);
    border-color: hsla(var(--secondary-hsl) / 0.3);
}

.mockup-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.main-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.mockup-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: hsla(var(--primary-hsl) / 0.1);
    border: 1px solid hsla(var(--primary-hsl) / 0.3);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 600;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-card {
    background: hsla(var(--bg-hsl) / 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-card.highlight-card {
    border-color: hsla(var(--primary-hsl) / 0.3);
    box-shadow: 0 0 15px hsla(var(--primary-hsl) / 0.05);
}

.card-metric {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.card-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mock-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
}

.table-row.header {
    background: hsla(var(--fg-hsl) / 0.02);
    font-weight: 600;
    color: var(--muted);
}

.table-row:last-child {
    border-bottom: none;
}

.col.font-medium {
    font-weight: 500;
}

.col.text-muted {
    color: var(--muted);
}

.col.text-green {
    color: #10b981;
    font-weight: 600;
}

/* Value Pillars Section */
.pillars-section {
    padding: 120px 0;
    background: hsla(var(--card-hsl) / 0.3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px auto;
}

.pillars-header-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 72px;
}

.pillars-text {
    text-align: left;
    max-width: 600px;
}

.pillars-media {
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(var(--primary-hsl) / 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: hsla(var(--primary-hsl) / 0.3);
    box-shadow: var(--shadow-premium), 0 10px 30px -10px hsla(var(--primary-hsl) / 0.1);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.pillar-icon-wrapper.cyan {
    background: hsla(var(--primary-hsl) / 0.1);
    color: var(--primary);
}

.pillar-icon-wrapper.purple {
    background: hsla(var(--secondary-hsl) / 0.1);
    color: var(--secondary);
}

.pillar-icon-wrapper.pink {
    background: hsla(var(--pink-hsl) / 0.1);
    color: var(--pink);
}

.pillar-icon {
    width: 28px;
    height: 28px;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pillar-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Deep-dive Features Section */
.features-section {
    padding: 120px 0;
}

.features-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-content {
    max-width: 520px;
}

.features-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-list li {
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    padding-left: 28px;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.feature-highlight {
    color: var(--fg);
    display: block;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 4px;
}

.features-media {
    display: flex;
    justify-content: center;
}

.feature-card-ui {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-premium), var(--glow-primary);
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ui-header {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.ui-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.color-dot.active {
    border-color: var(--fg);
    transform: scale(1.1);
}

.color-dot.black { background-color: #1a1a1a; }
.color-dot.navy { background-color: #1e3a8a; }
.color-dot.forest { background-color: #064e3b; }
.color-dot.wine { background-color: #7f1d1d; }

.size-options {
    display: flex;
    gap: 10px;
}

.size-pill {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.size-pill.active {
    background-color: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

/* Call to Action Section */
.cta-section {
    padding: 140px 0;
    position: relative;
    border-top: 1px solid var(--border);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 44px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer Styles */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px 0;
    background: hsla(0 0% 0% / 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.links-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg);
    margin-bottom: 8px;
}

.links-group a {
    font-size: 0.85rem;
    color: var(--muted);
}

.links-group a:hover {
    color: var(--fg);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

/* Vector Logo Sizes */
.footer-logo-icon {
    width: 40px;
    height: 40px;
}

/* Performance Section Styling */
.performance-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    position: relative;
    background: hsla(0 0% 0% / 0.15);
}

.perf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: hsla(var(--primary-hsl) / 0.3);
    box-shadow: var(--shadow-premium), 0 10px 30px -10px hsla(var(--primary-hsl) / 0.1);
}

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(var(--primary-hsl) / 0.03);
    border: 2px solid hsla(var(--primary-hsl) / 0.1);
    box-shadow: inset 0 0 15px hsla(var(--primary-hsl) / 0.05);
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-circle {
    border-color: hsla(var(--primary-hsl) / 0.3);
    background: hsla(var(--primary-hsl) / 0.05);
    box-shadow: inset 0 0 20px hsla(var(--primary-hsl) / 0.1), var(--glow-primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.stat-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments for performance */
@media (max-width: 1024px) {
    .perf-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Scroll Reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Responsive & Adaptive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-media {
        max-width: 640px;
        margin: 0 auto;
    }

    .pillars-header-row {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .pillars-text {
        text-align: center;
        margin: 0 auto;
    }

    .pillars-media {
        max-width: 640px;
        margin: 0 auto;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .features-content {
        max-width: 100%;
    }
    
    .features-media {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Responsive Navigation Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        align-items: stretch;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-item {
        font-size: 1.1rem;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}
