* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-dark: #0f172a;
    --primary-blue: #1e3a8a;
    --accent-blue: #3b82f6;
    --light-blue: #60a5fa;
    --cyan: #06b6d4;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --max-width: 1400px;
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a0f1d 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* Background animations */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s ease;
}

.glow-1 { top: -200px; right: -200px; background: var(--accent-blue); }
.glow-2 { bottom: 10%; left: -200px; background: var(--cyan); }

/* Header - Mobile First (Sticky) */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    transition: all 0.3s ease;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logo-container:hover .logo-icon {
    transform: rotate(5deg) scale(1.1);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.menu-btn {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

/* Back to Main Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.back-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .lang-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

.lang-toggle:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.back-btn-text {
    display: none;
}

@media (min-width: 480px) {
    .back-btn-text {
        display: inline;
    }
}

/* Utility classes for responsive display */
.desktop-only {
    display: none !important;
}

@media (min-width: 769px) {
    .desktop-only {
        display: flex !important;
    }
}

.mobile-only {
    display: flex !important;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 4px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.whatsapp-icon:hover,
.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7), 0 0 0 6px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon:active {
    transform: scale(0.95);
}

.whatsapp-icon svg {
    color: white;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.whatsapp-ping {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

.whatsapp-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.2);
    border-radius: 50%;
    animation: whatsapp-ping-2 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: 0.5s;
}

@keyframes whatsapp-ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes whatsapp-ping-2 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70%, 100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Responsive Adjustments */
@media (max-width: 639px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        z-index: 99999 !important;
    }
    
    .whatsapp-icon {
        width: 54px;
        height: 54px;
        box-shadow: 0 3px 15px rgba(37, 211, 102, 0.5), 0 0 0 3px rgba(37, 211, 102, 0.2);
    }
    
    .whatsapp-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-ping {
        width: 54px;
        height: 54px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        z-index: 99999 !important;
    }
    
    .whatsapp-icon {
        width: 58px;
        height: 58px;
    }
}

@media (min-width: 1024px) {
    .whatsapp-float {
        z-index: 99999 !important;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--cyan);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--cyan);
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
    .mobile-nav { display: none !important; }
}

/* Main content container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Typography Mobile */
h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 600px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(59,130,246,0.5);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(59,130,246,0.1);
    font-weight: 600;
}

/* Stats - Mobile Grid Layout */
.stats-container {
    margin: 2rem 0;
    width: 100%;
}

.stats-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .stats-scroll {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .stats-scroll::-webkit-scrollbar {
        display: none;
    }
}

.stat-card {
    flex: 0 0 auto;
    min-width: 0;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    width: 100%;
}

@media (min-width: 640px) {
    .stat-card {
        min-width: 140px;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cyan);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 2.2rem;
    }
}

.stat-label {
    font-size: 0.55rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    display: block;
    word-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Cards通用 */
.card {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 1rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.feature-list li:hover {
    color: var(--light-blue);
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
    transition: transform 0.3s;
}

.feature-list li:hover:before {
    transform: translateX(5px);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-left: 3px solid var(--cyan);
    padding: 1.25rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Product section */
.product-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.app-mockup {
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 300px;
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-frame {
    width: 100%;
    max-width: 260px;
    height: 460px;
    background: #000;
    border: 3px solid #333;
    border-radius: 24px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.phone-header {
    height: 45px;
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.phone-content {
    padding: 1.25rem;
    height: calc(100% - 45px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mockup-item {
    background: rgba(255,255,255,0.1);
    height: 55px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.mockup-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.mockup-qr {
    width: 130px;
    height: 130px;
    background: white;
    margin: 1rem auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-item {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.metric-item:hover {
    border-color: var(--cyan);
    transform: scale(1.02);
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--cyan);
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.team-member {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.team-member:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.team-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--cyan));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.team-member:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Contact */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-item-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.contact-item-large:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
}

.contact-item-large:active {
    transform: scale(0.98);
}

.contact-icon-large {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.contact-item-large:hover .contact-icon-large {
    background: var(--accent-blue);
    transform: rotate(10deg);
}

.contact-info-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--cyan));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin: 0.5rem 0;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--cyan);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

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

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

/* ============================================
   TABLET STYLES (768px - 1023px)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Stats grid en tablet */
    .stats-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    /* Services en 2 columnas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Team en 4 columnas */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Contacto en 2 columnas */
    .contact-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-item-large {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .contact-icon-large {
        margin-bottom: 0.5rem;
    }
    
    /* Producto lado a lado */
    .product-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .app-mockup {
        margin: 0;
        order: 2;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Header */
    .menu-btn {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    body {
        background: linear-gradient(135deg, #050811 0%, var(--primary-dark) 50%, #0f172a 100%);
    }
    
    .bg-grid {
        background-size: 60px 60px;
        opacity: 0.6;
    }
    
    .container {
        padding: 0 3rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    /* Header transparente en desktop */
    header {
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 1.5rem 3rem;
    }
    
    header.scrolled {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 3.5rem;
        max-width: 800px;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    /* Hero section desktop */
    .hero {
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 4rem 0;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .hero .stats-scroll {
        margin-top: 3rem;
        max-width: 700px;
    }
    
    /* Layout de 2 columnas para contenido mixto */
    .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .card {
        padding: 2rem;
    }
    
    /* Producto destacado */
    .product-section {
        position: relative;
    }
    
    .product-hero {
        max-width: 900px;
        margin: 0 auto 3rem;
        padding: 3rem;
    }
    
    .product-hero h3 {
        font-size: 2.5rem;
    }
    
    /* Features en 2 columnas */
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Team cards más grandes */
    .team-member {
        padding: 2rem 1.5rem;
    }
    
    .team-avatar {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
    
    /* Contacto */
    .contact-section-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    .contact-list {
        grid-template-columns: 1fr;
    }
    
    .contact-item-large {
        flex-direction: row;
        text-align: left;
    }
    
    /* Botones en línea */
    .btn-group {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn {
        width: auto;
        padding: 1rem 2.5rem;
    }
    
    /* Footer grid */
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
        text-align: left;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 3rem;
    }
    
    footer {
        padding: 4rem 0 2rem;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    :root {
        --max-width: 1600px;
    }
    
    h2 {
        font-size: 4rem;
    }
    
    .container {
        padding: 0 4rem;
    }
}

/* Print styles */
@media print {
    body { background: white; color: black; }
    .bg-grid, .bg-glow { display: none; }
    header { position: static; background: white; border-bottom: 1px solid #ccc; }
    .card { break-inside: avoid; border: 1px solid #ddd; background: white; color: black; }
    .btn { display: none; }
}

/* ==========================================
   RESPONSIVE ADDITIONAL FIXES
   ========================================== */

/* Small phones (up to 375px) */
@media (max-width: 375px) {
    html { font-size: 14px; }
    .phone-frame {
        width: 140px !important;
        height: 280px !important;
    }
    h2 { font-size: 1.75rem !important; }
    .stat-number { font-size: 2rem !important; }
}

/* Tablets landscape and small laptops */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container { padding: 0 3rem; }
    .grid-2 { gap: 2rem; }
    .card { padding: 1.75rem; }
}

/* Ensure images don't overflow */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly buttons on mobile */
@media (hover: none) and (pointer: coarse) {
    .btn, button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 4rem 0; }
    .bg-glow { display: none; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-glow { display: none; }
}

/* Dark mode support (already dark, but ensure consistency) */
@media (prefers-color-scheme: dark) {
    body { background: linear-gradient(180deg, var(--primary-dark) 0%, #0a0f1d 100%); }
}

/* ==========================================
   MOBILE SPECIFIC FIXES
   ========================================== */
@media (max-width: 639px) {
    /* Stats fixes for mobile */
    .stats-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .stats-scroll {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        width: 100%;
        min-width: 0;
        padding: 0.875rem 0.375rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.1px;
    }
}
