/* ===================================
   FLEXIT LANDING PAGE - STYLES
   Modern, Premium Design
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Flexit Blue Theme */
    --primary-50: #e6f0ff;
    --primary-100: #b3d1ff;
    --primary-200: #80b3ff;
    --primary-300: #4d94ff;
    --primary-400: #1a75ff;
    --primary-500: #0056e6;
    --primary-600: #0044b3;
    --primary-700: #003380;
    --primary-800: #00214d;
    --primary-900: #00101a;
    
    /* Accent Colors - Cyan/Teal */
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
    
    /* Background Colors */
    --bg-dark: #0a0f1c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Border Colors */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(6, 182, 212, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0056e6 0%, #0891b2 100%);
    --gradient-bg: linear-gradient(180deg, #0a0f1c 0%, #0d1528 50%, #111827 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    
    /* Shadows */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 60px rgba(6, 182, 212, 0.15);
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-bg);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-600);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-600);
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-500);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* ===================================
   CONTAINER
   =================================== */

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

/* ===================================
   HEADER
   =================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    animation: fadeInDown 0.8s ease;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition-base);
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 230, 0.3);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* Header Right Group */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===================================
   LANGUAGE BANNER
   =================================== */

.lang-banner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 86, 230, 0.3);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 230, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

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

@keyframes glowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(0, 168, 255, 0.6));
    }
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.title-line {
    color: var(--text-secondary);
    animation: slideUp 0.8s ease both;
}

.title-line:first-child {
    animation-delay: 0.1s;
}

.title-line:last-of-type {
    animation-delay: 0.3s;
}

.title-highlight {
    display: inline;
    font-size: inherit;
    font-weight: 800;
    color: #00a8ff;
    letter-spacing: -0.02em;
    animation: slideUp 0.8s ease 0.2s both, textGlow 3s ease-in-out infinite;
    position: relative;
    text-shadow: 
        0 0 15px rgba(0, 168, 255, 0.5),
        0 0 30px rgba(0, 168, 255, 0.3);
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 
            0 0 15px rgba(0, 168, 255, 0.5),
            0 0 30px rgba(0, 168, 255, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 25px rgba(0, 212, 255, 0.7),
            0 0 50px rgba(0, 212, 255, 0.4);
    }
}

.ventit-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2rem;
    animation: slideUp 0.8s ease 0.4s both;
}

.ventit-logo {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    animation: glowPulse 3s ease-in-out infinite;
}

.flexit-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: slideUp 0.8s ease 0.5s both;
}

.flexit-tagline {
    font-size: 1rem;
    color: var(--accent-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.flexit-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    animation: slideUp 0.8s ease 0.6s both;
}

.flexit-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

/* Mobile: 2 columns grid for features */
@media (max-width: 768px) {
    .flexit-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .flexit-feature {
        justify-content: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }
}

.flexit-feature:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: var(--accent-400);
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.1rem;
}

/* Manufacturer Banner */
.manufacturer-banner {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    text-decoration: none;
}

.manufacturer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 86, 230, 0.1) 0%, rgba(0, 168, 255, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.manufacturer-banner:hover .manufacturer-content {
    background: linear-gradient(135deg, rgba(0, 86, 230, 0.2) 0%, rgba(0, 168, 255, 0.1) 100%);
    border-color: var(--accent-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 230, 0.2);
}

.manufacturer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.manufacturer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-400);
}

.manufacturer-banner:hover .manufacturer-link {
    color: var(--accent-300);
}

.external-icon {
    opacity: 0.7;
    transition: var(--transition-base);
}

.manufacturer-banner:hover .external-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ===================================
   CARDS SECTION
   =================================== */

.cards-section {
    padding: 2rem 0 4rem;
}

.cards-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease 0.7s both;
}

.cards-intro-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cards-intro-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

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

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

/* Highlighted Card (Wizard) */
.card.card-highlight {
    border-color: var(--accent-500);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.card.card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-400), var(--accent-600));
}

.card.card-highlight:hover {
    border-color: var(--accent-400);
    box-shadow: var(--shadow-card-hover), 0 0 40px rgba(6, 182, 212, 0.25);
}

/* Dual choice card */
.card.card-dual {
    cursor: default;
}

.card.card-dual:hover {
    transform: none;
}

.card-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.choice-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.choice-link:hover {
    background: rgba(0, 168, 255, 0.08);
    border-color: var(--accent-400);
    transform: translateX(4px);
}

.choice-link .choice-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.choice-know .choice-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.choice-help .choice-icon {
    background: rgba(0, 168, 255, 0.2);
    color: var(--accent);
}

.choice-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.choice-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.choice-content small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.choice-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.choice-link:hover .choice-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

@media (max-width: 480px) {
    .choice-link {
        padding: 0.875rem 1rem;
    }
    
    .choice-link .choice-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .choice-content strong {
        font-size: 0.85rem;
    }
    
    .choice-content small {
        font-size: 0.75rem;
    }
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-400), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover .card-glow {
    opacity: 1;
}

.card-content {
    padding: 2rem;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 86, 230, 0.3);
}

.card-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-400);
    transition: var(--transition-fast);
}

.card:hover .card-cta {
    gap: 0.75rem;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.card:hover .arrow-icon {
    transform: translateX(4px);
}

/* ===================================
   TRUST SECTION
   =================================== */

.trust-section {
    padding: 2rem 0;
    animation: fadeIn 1s ease 0.6s both;
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    font-size: 2rem;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    animation: fadeIn 1s ease 0.8s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-address .footer-company {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.9;
}

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

.footer-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

.footer-icon {
    width: 18px;
    height: 18px;
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .lang-banner {
        gap: 0.15rem;
        padding: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.5rem;
        gap: 0.25rem;
    }
    
    .lang-code {
        font-size: 0.75rem;
    }
    
    .lang-flag {
        font-size: 1rem;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero::before {
        width: 300px;
        height: 300px;
    }
    
    .title-highlight::after {
        width: 80px;
        height: 3px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-items {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .trust-divider {
        width: 60px;
        height: 1px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.5;
    }
    
    .ventit-logo {
        height: 36px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shape {
        animation: none;
    }
}

/* Focus States */
.card:focus-visible,
.footer-link:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(255, 255, 255, 0.1);
        --border-subtle: rgba(255, 255, 255, 0.3);
    }
}
