/* =====================================================
   HUBBLETECH SOLUTIONS - Premium Enterprise Stylesheet
   Version: 2.0
   ===================================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --color-primary: #0f172a;
    --color-secondary: #3b82f6;
    --color-accent: #8b5cf6;
    --color-cyan: #06b6d4;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 70%);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --nav-height: 80px;
}


/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-primary);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}


/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 1001;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #67e8f9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Scrolled state: revert brand colors to light theme */
.navbar.scrolled .brand-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .brand-tagline {
    color: #64748b;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-links > li > a,
.nav-links > li > .dropdown-trigger {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.nav-links > li > a:hover,
.nav-links > li > .dropdown-trigger:hover,
.nav-links > li > a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Scrolled state: revert nav links to dark/light theme */
.navbar.scrolled .nav-links > li > a,
.navbar.scrolled .nav-links > li > .dropdown-trigger {
    color: #475569;
}

.navbar.scrolled .nav-links > li > a:hover,
.navbar.scrolled .nav-links > li > .dropdown-trigger:hover,
.navbar.scrolled .nav-links > li > a.active {
    color: var(--color-secondary);
    background: rgba(59, 130, 246, 0.06);
}


/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 300px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    pointer-events: none;
}

.navbar.scrolled .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-xl);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .dropdown-item:hover {
    background: var(--gradient-card);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #67e8f9;
    flex-shrink: 0;
}

.navbar.scrolled .dropdown-icon {
    background: var(--gradient-card);
    color: var(--color-secondary);
}

.dropdown-content strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
}

.navbar.scrolled .dropdown-content strong {
    color: var(--color-primary);
}

.dropdown-content small {
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.8);
}

.navbar.scrolled .dropdown-content small {
    color: #64748b;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 4px;
}


/* Nav CTA button glow in top state */
.navbar .nav-cta {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.navbar.scrolled .nav-cta {
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
        transition: var(--transition-base);
        padding: var(--space-2xl);
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-links {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .nav-links > li > a,
    .nav-links > li > .dropdown-trigger {
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-lg);
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        min-width: 100%;
    }
    
    .has-dropdown.active .dropdown-menu { display: block; }
    
    .nav-cta { width: 100%; text-align: center; justify-content: center; }
}


/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary {
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid rgba(15, 23, 42, 0.15);
}

.btn-outline:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-white {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: var(--space-5xl) 0 var(--space-4xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    opacity: 0.6;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: left;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}


/* =====================================================
   SECTIONS (Generic)
   ===================================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-dark {
    background: var(--color-primary);
    color: #ffffff;
}

.section-gray {
    background: #f8fafc;
}

.section-gradient {
    background: var(--gradient-card);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   FEATURE CARDS
   ===================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.15);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-secondary);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.7;
}


/* =====================================================
   PRICING CARDS
   ===================================================== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.pricing-toggle span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.pricing-toggle span.active {
    color: var(--color-primary);
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
}

.toggle-switch.active {
    background: var(--gradient-primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
    left: 27px;
}

.pricing-save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .pricing-grid[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pricing-grid[style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}

.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-secondary);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.pricing-description {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: var(--space-lg);
}

.pricing-price {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid #f1f5f9;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.pricing-price .period {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-left: 4px;
}

.pricing-features {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.88rem;
    color: #475569;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}


/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.form-control::placeholder {
    color: #94a3b8;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

/* =====================================================
   MODAL / POPUP
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

.modal {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}


/* =====================================================
   ABOUT / TEAM SECTION
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-primary);
    padding: var(--space-2xl);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.value-item .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.value-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
    pointer-events: none;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.contact-info-item .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.95rem;
    font-weight: 500;
}


/* =====================================================
   PRODUCT PAGE HERO
   ===================================================== */
.product-hero {
    padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 50px 50px;
}

.product-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.product-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.product-hero .tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-hero .status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.product-hero .status-badge.coming-soon {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* Product Features List */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.product-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.15);
}

.product-feature-item .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.product-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-feature-item p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-primary);
    color: #ffffff;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-description {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-md);
}

.footer-contact ul li svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}


/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 60%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* =====================================================
   PAGE HEADER (for inner pages)
   ===================================================== */
.page-header {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

/* =====================================================
   SUCCESS / ALERT MESSAGES
   ===================================================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: var(--space-xl);
}

.admin-login-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-2xl);
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.admin-login-card .logo-area {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.admin-login-card .logo-area h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: var(--space-md);
}

.admin-login-card .logo-area p {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.otp-input-group {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-xl) 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    outline: none;
}

.otp-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}


/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--color-primary);
    padding: var(--space-xl);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 4px;
}

.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-sidebar .nav-item.active {
    background: var(--gradient-primary);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: var(--space-xl);
    background: #f8fafc;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition-base);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.admin-stat-card .stat-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(59, 130, 246, 0.02);
}

.status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new { background: rgba(59, 130, 246, 0.1); color: var(--color-secondary); }
.status-read { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.status-replied { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.status-closed { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.status-approved { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }

@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}


/* =====================================================
   ANIMATIONS & UTILITIES
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: #64748b; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 99;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .spinner {
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading .btn-text {
    opacity: 0;
}

/* Decorative blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.4;
}

.blob-blue {
    background: rgba(59, 130, 246, 0.3);
}

.blob-purple {
    background: rgba(139, 92, 246, 0.3);
}

.blob-cyan {
    background: rgba(6, 182, 212, 0.3);
}
