/* style.css */
:root {
    --primary: #5945e6;
    --primary-light: #7c6df2;
    --bg-color: #fcfcfd;
    --surface-color: #ffffff;
    --text-main: #1a1a24;
    --text-muted: #6b6b7b;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 16px rgba(89, 69, 230, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(89, 69, 230, 0.35);
}

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

.btn-outline:hover {
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    border-color: rgba(0,0,0,0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 252, 253, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

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

.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    padding-right: 1.2rem;
}

.lang-switcher:focus {
    outline: none;
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 0.6rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.brand-logo {
    max-height: 48px;
    width: auto;
}

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

/* Subtle background glowing orb */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(89, 69, 230, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(89, 69, 230, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
}

.hero-content p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 650px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-device {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

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

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 300px;
    background: #f1f2f6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-image img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.virtual-bg {
    background: radial-gradient(circle at center, #ffffff 0%, #e8e9f1 100%);
}

.virtual-logo {
    max-width: 60% !important;
    opacity: 0.8;
}

.card-content {
    padding: 2.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e7f5ff;
    color: #1971c2;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.status-badge.virtual {
    background: #d3f9d8;
    color: #2b8a3e;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-legal p, .footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary);
}

.btn-icon {
    display: none;
}

/* Responsive */
@media (max-width: 650px) {
    .nav-actions {
        gap: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.6rem;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .contact-btn .btn-text {
        display: none;
    }
    
    .contact-btn .btn-icon {
        display: block;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 900px) {
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .badge {
        margin: 0 auto 1.5rem;
    }
    
    .floating-device {
        max-width: 80%;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

/* Reveal on Scroll classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover {
    color: var(--text-main);
}

.popup-content h3 {
    margin-bottom: 2rem;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-actions .btn {
    width: 100%;
}
