/* ==========================================================================
   MIMCHIP - Premium Dark Tech Design System (pure CSS)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', var(--font-sans);

    /* Premium Obsidian Slate Design System */
    --bg-main: #06080c;
    --bg-card: rgba(13, 19, 33, 0.55);
    --bg-card-hover: rgba(22, 33, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(0, 240, 255, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    /* Accents */
    --blue-glow: #00f0ff;
    --blue-primary: #0284c7;
    --green-glow: #059669;
    --green-accent: #10b981;
    --warning-glow: #ea580c;
    
    /* Cyber Gold & Orange Accents (TPV Hostelería) */
    --gold-glow: #ffaa00;
    --orange-accent: #ff5500;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #0072ff 0%, #00f0ff 100%);
    --grad-verifactu: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --grad-hosteleria: linear-gradient(135deg, #ffaa00 0%, #ff5500 100%);
    --grad-bg: radial-gradient(circle at 50% 50%, #0d1424 0%, #030406 100%);
    --grad-card: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(6, 8, 12, 0.98) 100%);

    --shadow-blue: 0 10px 30px rgba(0, 240, 255, 0.15);
    --shadow-orange: 0 10px 30px rgba(255, 85, 0, 0.15);
    --shadow-green: 0 10px 30px rgba(16, 185, 129, 0.12);
    --shadow-soft: 0 15px 50px rgba(0, 0, 0, 0.85);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        var(--grad-bg);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #090d16;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-glow);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

a {
    color: var(--blue-glow);
    text-decoration: none;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

/* Background Grids & Decorative Lights */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb.top-right {
    top: -100px;
    right: -100px;
}

.glow-orb.bottom-left {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 7, 12, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    transition: var(--transition);
}

.header.scrolled .nav-container {
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    height: 75px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0, 240, 255, 0.15));
}

.header.scrolled .logo-icon {
    height: 60px;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-glow);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--blue-glow);
    color: var(--blue-glow);
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.04);
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--grad-hero);
    color: #05070c;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
    transform: translateY(-3px);
}

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

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-verifactu-badge-logo {
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.15));
    border-radius: 4px;
    background: #ffffff;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-verifactu-badge-logo:hover {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.35)) brightness(1.05);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-verifactu {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--green-glow);
    color: var(--green-accent);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--grad-hero);
    color: #05070c;
    padding: 0.95rem 2.2rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.15), 0 8px 25px rgba(0, 240, 255, 0.18);
    transform: scale(1);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.35), 0 15px 35px rgba(0, 240, 255, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.95rem 2.2rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10), 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Tech Art / Visual Illustration */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.tech-mockup {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tech-circle {
    position: absolute;
    border: 1px dashed rgba(0, 240, 255, 0.25);
    border-radius: 50%;
}

.tech-circle-1 {
    width: 90%;
    height: 90%;
}

.tech-circle-2 {
    width: 65%;
    height: 65%;
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.15);
    animation: rotateReverse 20s linear infinite;
}

@keyframes rotateReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.tech-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatAnim 6s ease-in-out infinite;
}

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

.tech-center-shield {
    width: 150px;
    height: 150px;
    background: rgba(13, 20, 35, 0.95);
    border: 2px solid var(--green-glow);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25), inset 0 0 20px rgba(16, 185, 129, 0.15);
    z-index: 10;
}

.tech-glow-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--blue-glow);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
    clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
}

/* ==========================================================================
   VeriFactu Section (Compliance Banner)
   ========================================================================== */
.verifactu-section {
    background: #030806;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.verifactu-logo-wrapper {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.verifactu-main-logo {
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.15));
    transition: var(--transition);
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verifactu-main-logo:hover {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.25));
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--green-glow);
}

.verifactu-card {
    background: rgba(13, 20, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.verifactu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.verifactu-text h2 span {
    color: var(--green-accent);
}

.verifactu-badge-solid {
    display: inline-block;
    background: var(--green-glow);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 0.5rem;
    letter-spacing: 0.05em;
}

.legal-warning {
    background: rgba(234, 88, 12, 0.08);
    border-left: 4px solid var(--warning-glow);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.legal-warning p {
    color: #fdba74;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.legal-warning strong {
    color: var(--warning-glow);
}

.verifactu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.verifactu-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.verifactu-icon {
    width: 24px;
    height: 24px;
    color: var(--green-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.verifactu-item-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.verifactu-item-text p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Product Section: MiM-TPV
   ========================================================================== */
.product-section {
    position: relative;
    z-index: 10;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.product-grid.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.product-badge-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.product-badge {
    display: inline-block;
    background: rgba(0, 216, 255, 0.08);
    border: 1px solid var(--blue-glow);
    color: var(--blue-glow);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
}

.product-verifactu-badge {
    height: 24px;
    object-fit: contain;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.product-verifactu-badge:hover {
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2)) brightness(1.05);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    padding: 1.6rem;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.45);
    transform: translateY(-6px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 15px 35px rgba(0, 240, 255, 0.18);
}

/* Hosteleria Feature Cards (Orange/Gold neon glow) */
.feature-card.hosteleria {
    border-color: rgba(255, 255, 255, 0.04);
}

.feature-card.hosteleria:hover {
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 15px 35px rgba(255, 85, 0, 0.18);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-glow);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.05);
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

/* Hosteleria Feature Icon Wrappers */
.feature-icon-wrapper.hosteleria {
    color: var(--gold-glow);
    background: rgba(255, 170, 0, 0.03);
    border-color: rgba(255, 170, 0, 0.12);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.03);
}

.feature-card.hosteleria:hover .feature-icon-wrapper.hosteleria {
    background: rgba(255, 170, 0, 0.08);
    border-color: rgba(255, 170, 0, 0.3);
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4));
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--text-secondary);
}

.target-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.target-badge.exclude {
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

.target-badge.include {
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--green-accent);
    background: rgba(16, 185, 129, 0.08);
}

.target-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* CSS-based Mockups (Highly visual & premium) */
.product-visual-wrapper {
    position: relative;
    width: 100%;
}

/* Premium Device Mockup & Auto Sliding Carousel (Pure CSS) */
.device-mockup-frame {
    background: rgba(15, 23, 42, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.carousel-viewport {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #000000;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    animation: autoSlide 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific animations for dots to sync with sliding */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.dot-1 { animation: activeDot1 12s infinite; }
.dot-2 { animation: activeDot2 12s infinite; }
.dot-3 { animation: activeDot3 12s infinite; }

@keyframes autoSlide {
    0%, 25% { transform: translateX(0); }
    30%, 55% { transform: translateX(-33.333%); }
    60%, 85% { transform: translateX(-66.666%); }
    90%, 100% { transform: translateX(0); }
}

@keyframes activeDot1 {
    0%, 25% { opacity: 1; background: var(--blue-glow); transform: scale(1.2); }
    30%, 100% { opacity: 0.3; background: #ffffff; transform: scale(1); }
}

@keyframes activeDot2 {
    0%, 25% { opacity: 0.3; background: #ffffff; transform: scale(1); }
    30%, 55% { opacity: 1; background: var(--blue-glow); transform: scale(1.2); }
    60%, 100% { opacity: 0.3; background: #ffffff; transform: scale(1); }
}

@keyframes activeDot3 {
    0%, 55% { opacity: 0.3; background: #ffffff; transform: scale(1); }
    60%, 85% { opacity: 1; background: var(--blue-glow); transform: scale(1.2); }
    90%, 100% { opacity: 0.3; background: #ffffff; transform: scale(1); }
}

/* ==========================================================================
   Device Stack Layout (Vertical screenshots one above the other)
   ========================================================================== */
.device-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.device-mockup-frame.stacked {
    margin: 0;
    transition: var(--transition);
}

.device-mockup-frame.stacked:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--blue-glow);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.18), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

/* Green border glow for Hosteleria stack on hover */
#tpv-hosteleria .device-mockup-frame.stacked:hover {
    border-color: var(--green-accent);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.18), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.device-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #000000;
}

.device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 5;
}

.device-mockup-frame.stacked:hover .device-screen::after {
    left: 150%;
    transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.device-mockup-frame.stacked:hover .device-screen img {
    transform: scale(1.03);
}

.verifactu-stamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1.5px dashed var(--green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
    color: var(--green-accent);
    font-size: 0.55rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-green);
    animation: pulseGlow 2s infinite alternate;
}

/* ==========================================================================
   Product Section: MIM-Factur
   ========================================================================== */
.factur-visual-box {
    background: linear-gradient(135deg, rgba(13, 20, 35, 0.85) 0%, rgba(5, 7, 12, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.factur-visual-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-verifactu);
}

.factur-dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.factur-avatar {
    width: 32px;
    height: 32px;
    background: var(--grad-hero);
    border-radius: 50%;
}

.factur-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.factur-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.factur-stat-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.factur-stat-card.green .value { color: var(--green-accent); }
.factur-stat-card.blue .value { color: var(--blue-glow); }

.factur-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.factur-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.factur-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.factur-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.factur-status.sent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.factur-status.draft {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.factur-aeat-stamp {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--green-glow);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-accent);
}

.factur-aeat-stamp svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-section {
    position: relative;
    background: #050a15;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.contact-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-glow);
}

.contact-card-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-card-content p {
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-wrapper {
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

select.form-control option {
    background-color: #0b0f19;
    color: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--grad-hero);
    border: none;
    color: #05070c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.95rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.btn-submit:hover {
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.35);
    transform: translateY(-3px);
}

/* Alert styles for Form submit */
.form-alert {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: none;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--green-glow);
    color: var(--green-accent);
    display: block;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #030406;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-compliance {
    margin-top: 1.5rem;
}

.footer-verifactu-logo {
    height: 30px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-verifactu-logo:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
    filter: brightness(1.05) drop-shadow(0 0 15px rgba(16, 185, 129, 0.15));
}

.footer-text {
    font-size: 0.95rem;
}

.footer-nav-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-nav-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--blue-glow);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

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

.footer-legal-link:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .verifactu-grid,
    .product-grid,
    .product-grid.reverse,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .product-grid.reverse .product-visual-wrapper {
        order: -1;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 5rem 0;
    }

    /* Mobile Header Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 7, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition);
        z-index: 105;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .btn-contact {
        width: 80%;
    }

    .verifactu-card {
        padding: 2rem;
    }

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

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .target-badges-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpv-grid-mock {
        grid-template-columns: 1fr;
    }
}
