/* ========================================
   VIGORBOOKS - Modern Accounting Software
   CSS Stylesheet
   ======================================== */

/* CSS Variables - Light Theme */
:root {
    /* Colors */
    --color-primary: #5B5FC7;
    --color-primary-dark: #4A4EB0;
    --color-primary-light: #7B7FD7;
    --color-secondary: #10B981;
    --color-accent: #F59E0B;
    
    /* Background Colors */
    --bg-body: #FAFBFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F9FF;
    --bg-section: #F0F4FF;
    --bg-nav: rgba(255, 255, 255, 0.9);
    
    /* Text Colors - High Contrast */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    /* Borders */
    --border-color: rgba(91, 95, 199, 0.15);
    --border-light: rgba(91, 95, 199, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(91, 95, 199, 0.12);
    --shadow-lg: 0 10px 40px rgba(91, 95, 199, 0.15);
    --shadow-xl: 0 20px 60px rgba(91, 95, 199, 0.2);
    --shadow-glow: 0 0 40px rgba(91, 95, 199, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5B5FC7 0%, #7B7FD7 50%, #9B9FE7 100%);
    --gradient-hero: linear-gradient(135deg, rgba(91, 95, 199, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    --gradient-cta: linear-gradient(135deg, #5B5FC7 0%, #7B7FD7 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1280px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0B0D17;
    --bg-card: #131627;
    --bg-card-hover: #1A1E35;
    --bg-section: #0F1221;
    --bg-nav: rgba(11, 13, 23, 0.95);
    
    /* High Contrast Text for Dark Theme */
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    
    --border-color: rgba(91, 95, 199, 0.25);
    --border-light: rgba(91, 95, 199, 0.12);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(91, 95, 199, 0.35);
    
    --gradient-hero: linear-gradient(135deg, rgba(91, 95, 199, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Gradient Orbs */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    transition: opacity var(--transition-slow);
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -150px;
    animation: floatOrb1 25s infinite ease-in-out;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    bottom: 30%;
    left: -100px;
    animation: floatOrb2 20s infinite ease-in-out;
}

.gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #F472B6, #A855F7);
    top: 60%;
    right: 10%;
    animation: floatOrb3 22s infinite ease-in-out;
}

[data-theme="dark"] .gradient-orb {
    opacity: 0.3;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, -35px) scale(1.08); }
    66% { transform: translate(35px, 20px) scale(0.92); }
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 42px;
    transition: transform var(--transition-normal);
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========================================
   THEME TOGGLE - Animated & Highlighted
   ======================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(91, 95, 199, 0.3);
    animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(91, 95, 199, 0.3); }
    50% { box-shadow: 0 0 30px rgba(91, 95, 199, 0.5); }
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(91, 95, 199, 0.5);
}

.toggle-track {
    width: 52px;
    height: 28px;
    background: linear-gradient(135deg, #FFD93D, #FF9500);
    border-radius: 14px;
    position: relative;
    transition: background var(--transition-normal);
}

[data-theme="dark"] .toggle-track {
    background: linear-gradient(135deg, #1E293B, #334155);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(24px);
    background: #1E293B;
}

.sun-icon, .moon-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    transition: all var(--transition-normal);
}

.sun-icon {
    color: #FF9500;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    color: #FFD93D;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(91, 95, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(91, 95, 199, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: var(--bg-card-hover);
}

.btn-white {
    background: white;
    color: var(--color-primary);
}

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

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

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

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.hero-apps {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.hero-apps span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.app-badges {
    display: flex;
    gap: 12px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.app-badge:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
}

.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91, 95, 199, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: float 6s infinite ease-in-out;
}

.floating-card.card-1 {
    top: 10%;
    left: -80px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: -60px;
    animation-delay: -2s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: -40px;
    animation-delay: -4s;
}

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

.fc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-icon.green { background: linear-gradient(135deg, #10B981, #34D399); }
.fc-icon.blue { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.fc-icon.purple { background: var(--gradient-primary); }

.fc-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.fc-content {
    display: flex;
    flex-direction: column;
}

.fc-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fc-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fc-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.fc-change.positive {
    color: var(--color-secondary);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

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

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    padding: 60px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px 48px;
}

.logo-item {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: all var(--transition-normal);
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.logo-item:hover {
    opacity: 1;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(91, 95, 199, 0.25);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   DASHBOARD SECTION
   ======================================== */
.dashboard-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.dashboard-content .section-badge {
    margin-bottom: 16px;
}

.dashboard-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.dashboard-content .section-description {
    text-align: left;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.dashboard-visuals {
    position: relative;
}

.visual-stack {
    position: relative;
}

.stack-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.stack-img.main {
    width: 100%;
}

.stack-img.overlay-1 {
    position: absolute;
    width: 40%;
    bottom: -20px;
    left: -40px;
    animation: float 5s infinite ease-in-out;
}

.stack-img.overlay-2 {
    position: absolute;
    width: 40%;
    top: -20px;
    right: -40px;
    animation: float 6s infinite ease-in-out reverse;
}

/* ========================================
   SOLUTIONS SECTION
   ======================================== */
.solutions-section {
    padding: var(--section-padding) 0;
}

.solutions-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-image {
    position: relative;
}

.showcase-main {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.solutions-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.solution-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.solution-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.solution-icon.sales { background: linear-gradient(135deg, #10B981, #34D399); }
.solution-icon.purchase { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.solution-icon.inventory { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.solution-icon.payroll { background: linear-gradient(135deg, #EF4444, #F87171); }
.solution-icon.reporting { background: var(--gradient-primary); }
.solution-icon.tax { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }

.solution-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.solution-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
}

.team-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.team-image img {
    width: 100%;
    display: block;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 95, 199, 0.1), transparent);
}

.team-content .section-badge {
    margin-bottom: 16px;
}

.team-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.team-content .section-description {
    text-align: left;
    margin-bottom: 32px;
}

.team-stats {
    display: flex;
    gap: 40px;
}

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

.team-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.team-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-option {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
}

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

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.pricing-switch {
    width: 56px;
    height: 30px;
    background: var(--bg-section);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pricing-switch:hover {
    border-color: var(--color-primary);
}

.switch-ball {
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.pricing-switch.yearly .switch-ball {
    transform: translateX(26px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-normal);
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.pricing-amount {
    text-align: center;
    margin-bottom: 32px;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: top;
}

.price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
}

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

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    color: #FBBF24;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: var(--section-padding) 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--color-primary);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.faq-cta p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
}

.cta-card {
    position: relative;
    background: var(--gradient-cta);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    right: -100px;
    animation: floatOrb1 20s infinite ease-in-out;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -150px;
    left: -50px;
    animation: floatOrb2 18s infinite ease-in-out;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-info .section-description {
    text-align: left;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-section);
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-normal);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-normal);
}

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

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-apps {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        max-width: 700px;
        margin: 0 auto 40px;
    }
    
    .floating-card {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        text-align: center;
    }
    
    .dashboard-content .section-title,
    .dashboard-content .section-description {
        text-align: center;
    }
    
    .feature-list {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    
    .solutions-showcase {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn-ghost,
    .nav-actions .btn-primary {
        display: none;
    }
    
    .theme-toggle {
        padding: 4px 10px 4px 4px;
    }
    
    .toggle-label {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .team-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-card {
        padding: 60px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .app-badges {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */
.nav-link.active {
    color: var(--color-primary);
}
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   SHARED DROPDOWN CHROME
   (chevron, toggle, open/close behaviour)
   ======================================== */
.nav-dropdown,
.nav-mega {
    position: relative;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-chevron {
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-top: 1px;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open  .dropdown-chevron,
.nav-mega:hover     .dropdown-chevron,
.nav-mega.open      .dropdown-chevron {
    transform: rotate(180deg);
}

/* ========================================
   SIMPLE DROPDOWN  (Resources)
   ======================================== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity     var(--transition-normal),
        transform   var(--transition-normal),
        visibility  var(--transition-normal);
    z-index: 300;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Upward caret */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open  .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.dropdown-link:hover {
    background: var(--bg-section);
    color: var(--color-primary);
    transform: translateX(2px);
}

.dropdown-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dropdown-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}
.dropdown-link:hover .dropdown-text strong {
    color: var(--color-primary);
}
.dropdown-text span {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========================================
   MEGA MENU PANEL  (Product)
   ======================================== */
.mega-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: min(740px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity     0.22s ease,
        transform   0.22s ease,
        visibility  0.22s ease;
    z-index: 300;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Upward caret */
.mega-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.nav-mega:hover .mega-panel,
.nav-mega.open  .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 3-column grid: col1 | col2 | demo-card */
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 180px;
    gap: 0 20px;
    align-items: start;
}

/* Divider between content cols and demo card */
.mega-grid > .mega-col:last-of-type {
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

/* ── Column headings ── */
.mega-col-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin: 0 0 10px 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* ── Link list ── */
.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.mega-link:hover {
    background: var(--bg-section);
    transform: translateX(3px);
}

.mega-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.mega-icon svg {
    width: 17px;
    height: 17px;
    color: #fff;
}

.mega-link-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.mega-link-text strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.mega-link:hover .mega-link-text strong {
    color: var(--color-primary);
}
.mega-link-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Demo CTA card ── */
.mega-demo-card {
    background: linear-gradient(160deg, var(--color-primary) 0%, #4338CA 100%);
    border-radius: var(--radius-lg);
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(91, 95, 199, 0.35);
}

/* Subtle shine on the card */
.mega-demo-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.mega-demo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}
.mega-demo-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.mega-demo-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.mega-demo-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    margin: 0;
}

.mega-demo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.mega-demo-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.mega-demo-btn-primary:hover {
    background: rgba(255,255,255,0.92);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mega-demo-btn-ghost {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}
.mega-demo-btn-ghost:hover {
    color: #fff;
}

.mega-demo-note {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}
.mega-demo-note svg {
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
}

/* ========================================
   MOBILE — both dropdown types
   ======================================== */
@media (max-width: 768px) {

    /* ── Simple dropdown ── */
    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        padding: 0;
        width: 100%;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease, padding 0.22s ease;
        backdrop-filter: none;
    }
    .dropdown-menu::before { display: none; }

    .nav-dropdown.open .dropdown-menu {
        max-height: 400px;
        padding: 6px 0 6px 14px;
    }

    .dropdown-link { padding: 8px 8px; }
    .dropdown-icon { width: 28px; height: 28px; min-width: 28px; }
    .dropdown-text span { display: none; }

    /* ── Mega panel → stacked accordion ── */
    .mega-panel {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        padding: 0;
        width: 100%;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease, padding 0.25s ease;
        backdrop-filter: none;
    }
    .mega-panel::before { display: none; }

    .nav-mega.open .mega-panel {
        max-height: 1200px;
        padding: 8px 0 8px 14px;
    }

    /* Stack the 3-col grid vertically on mobile */
    .mega-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Remove column divider */
    .mega-grid > .mega-col:last-of-type {
        padding-right: 0;
        border-right: none;
    }

    .mega-col-heading {
        margin: 10px 0 6px 4px;
    }

    .mega-link {
        padding: 7px 8px;
    }

    .mega-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 6px;
    }
    .mega-icon svg { width: 14px; height: 14px; }

    .mega-link-text strong { font-size: 0.84rem; }
    .mega-link-text span   { display: none; }

    /* Demo card: horizontal on mobile */
    .mega-demo-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        margin-top: 12px;
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .mega-demo-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .mega-demo-card > *:not(.mega-demo-icon) {
        flex: 1;
        min-width: 0;
    }

    .mega-demo-desc { display: none; }

    .mega-demo-actions {
        flex-direction: row;
        gap: 6px;
        margin-top: 4px;
    }

    .mega-demo-btn-primary {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .mega-demo-btn-ghost {
        font-size: 0.76rem;
        padding: 7px 8px;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: var(--radius-sm);
    }

    .mega-demo-note { display: none; }
}

/* ========================================
   PAGE HERO (inner pages)
   Reusable hero for non-homepage pages
   ======================================== */
.page-hero {
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero .section-badge {
    margin-bottom: 20px;
}

.page-hero .page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.page-hero .page-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.page-hero .page-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .page-hero .page-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}


/* ========================================
   MOBILE SLIDE-IN DRAWER NAVIGATION
   Only active at ≤ 768 px. The desktop
   mega-menu / dropdowns are hidden at that
   breakpoint via the existing rules above.
   ======================================== */

/* ── Drawer root ─────────────────────────────────────────── */
.mobile-drawer {
    display: none;              /* hidden on desktop */
}

@media (max-width: 768px) {

    /* Show the hamburger toggle */
    #nav-toggle { display: flex; }

    /* ── Root shell ──────────────────────────────────────── */
    .mobile-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        pointer-events: none;   /* inactive until open */
        visibility: hidden;
        transition: visibility 0s linear 0.35s;
    }

    .mobile-drawer.open {
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }

    /* ── Overlay ─────────────────────────────────────────── */
    .drawer-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;                 /* EXPLICIT: sits below the panel */
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        transition: opacity 0.32s ease;
        /* pointer-events handled in JS via delegation — not here */
    }

    .mobile-drawer.open .drawer-overlay {
        opacity: 1;
    }

    /* ── Sliding panel ───────────────────────────────────── */
    .drawer-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 92vw);
        z-index: 2;                 /* EXPLICIT: always above the overlay */
        background: var(--bg-card, #ffffff);
        box-shadow: -8px 0 48px rgba(0, 0, 0, 0.22);
        transform: translateX(100%);
        transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        /* iOS safe-area: respect home-bar at bottom, notch at top */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-drawer.open .drawer-panel {
        transform: translateX(0);
    }

    /* ── Views container (clips the sliding views) ────────── */
    .drawer-views {
        position: relative;
        flex: 1;
        min-height: 0;          /* prevent flex overflow on some browsers */
        overflow: hidden;
    }

    /* ── Individual view ─────────────────────────────────── */
    .drawer-view {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        /* Must be fully opaque so the parallax .is-left view
           doesn't bleed through the active view */
        background: var(--bg-card, #ffffff);
        transform: translateX(100%);    /* off right by default */
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .drawer-view.is-active {
        transform: translateX(0);       /* fully visible */
    }

    .drawer-view.is-left {
        transform: translateX(-22%);    /* pushed behind — parallax depth */
    }

    /* ── View header row ─────────────────────────────────── */
    .drawer-view-header {
        display: flex;
        align-items: center;
        /* Top padding absorbs iOS notch on devices with Dynamic Island */
        padding: max(16px, env(safe-area-inset-top, 16px)) 20px 16px;
        border-bottom: 1px solid var(--border-color);
        min-height: 64px;
        flex-shrink: 0;
        background: var(--bg-card, #ffffff);   /* explicit bg — never transparent */
    }

    .drawer-view-header--main {
        justify-content: space-between;
    }

    .drawer-view-header--sub {
        gap: 12px;
    }

    /* ── Logo in main header ─────────────────────────────── */
    .drawer-logo img {
        height: 32px;
        width: auto;
    }

    /* ── Close button ────────────────────────────────────── */
    .drawer-close {
        background: var(--bg-section);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-primary);
        flex-shrink: 0;
        transition: background var(--transition-fast),
                    border-color var(--transition-fast),
                    transform var(--transition-fast);
    }

    .drawer-close:hover,
    .drawer-close:active {
        background: var(--bg-card);
        border-color: var(--color-primary);
        transform: scale(1.08);
    }

    .drawer-close svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    /* ── Back button ─────────────────────────────────────── */
    .drawer-back {
        background: none;
        border: none;
        padding: 6px;
        margin-left: -6px;
        cursor: pointer;
        color: var(--color-primary);
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        transition: opacity var(--transition-fast);
    }

    .drawer-back:hover { opacity: 0.75; }

    .drawer-back svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

    /* ── Sub-view title ──────────────────────────────────── */
    .drawer-view-title {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-left: auto;  /* push to right of back button */
        padding-right: 8px;
    }

    /* ── Nav list ────────────────────────────────────────── */
    .drawer-nav {
        list-style: none;
        padding: 12px 0;
        flex-shrink: 0;
    }

    .drawer-nav li { }

    /* ── Nav link (plain anchor) ─────────────────────────── */
    .drawer-nav-link,
    .drawer-nav-trigger {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 12px 20px;
        color: var(--text-primary);
        font-size: 0.975rem;
        font-weight: 500;
        text-decoration: none;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        transition: background var(--transition-fast),
                    color var(--transition-fast);
        border-radius: 0;
        position: relative;
    }

    .drawer-nav-link:hover,
    .drawer-nav-trigger:hover {
        background: var(--bg-section);
        color: var(--color-primary);
    }

    /* ── Coloured icon squares ───────────────────────────── */
    .drawer-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1.1rem;
        line-height: 1;
    }

    /* ── Label + meta wrapper ────────────────────────────── */
    .drawer-nav-label-wrap {
        flex: 1;
        min-width: 0;
    }

    .drawer-nav-label {
        display: block;
        font-size: 0.975rem;
        font-weight: 600;
        color: var(--text-primary);
        transition: color var(--transition-fast);
    }

    .drawer-nav-meta {
        display: block;
        font-size: 0.78rem;
        color: var(--text-muted);
        margin-top: 1px;
    }

    .drawer-nav-link:hover .drawer-nav-label,
    .drawer-nav-trigger:hover .drawer-nav-label {
        color: var(--color-primary);
    }

    /* ── Chevron on trigger items ────────────────────────── */
    .drawer-nav-chevron {
        width: 18px;
        height: 18px;
        stroke: var(--text-muted);
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
        transition: stroke var(--transition-fast),
                    transform var(--transition-fast);
    }

    .drawer-nav-trigger:hover .drawer-nav-chevron {
        stroke: var(--color-primary);
        transform: translateX(3px);
    }

    /* ── Divider ─────────────────────────────────────────── */
    .drawer-divider {
        height: 1px;
        background: var(--border-color);
        margin: 4px 20px;
    }

    /* ── CTA block (bottom of main view) ─────────────────── */
    .drawer-cta {
        padding: 20px;
        border-top: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .drawer-cta-tagline {
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        margin-bottom: 12px;
    }

    .drawer-cta-primary {
        display: block;
        width: 100%;
        padding: 13px 20px;
        background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
        color: #fff;
        font-size: 0.9rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        border-radius: var(--radius-lg);
        margin-bottom: 10px;
        transition: opacity var(--transition-fast), transform var(--transition-fast);
        box-shadow: 0 4px 16px rgba(91, 95, 199, 0.35);
    }

    .drawer-cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }

    .drawer-cta-ghost {
        display: block;
        width: 100%;
        padding: 11px 20px;
        border: 1.5px solid var(--border-color);
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: var(--radius-lg);
        transition: border-color var(--transition-fast),
                    color var(--transition-fast),
                    background var(--transition-fast);
    }

    .drawer-cta-ghost:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
        background: rgba(91, 95, 199, 0.06);
    }

    /* ── Theme row ───────────────────────────────────────── */
    .drawer-theme-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-top: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .drawer-theme-label {
        font-size: 0.85rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .drawer-theme-btn {
        background: var(--bg-section);
        border: 1.5px solid var(--border-color);
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: border-color var(--transition-fast),
                    color var(--transition-fast),
                    background var(--transition-fast);
    }

    .drawer-theme-btn:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* ── Sub-view sections ───────────────────────────────── */
    .drawer-section {
        padding: 16px 20px 8px;
        flex-shrink: 0;
    }

    .drawer-section + .drawer-section {
        border-top: 1px solid var(--border-color);
    }

    .drawer-section-heading {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        color: var(--text-muted);
        margin-bottom: 6px;
        padding: 0 4px;
    }

    /* ── Sub-nav links ───────────────────────────────────── */
    .drawer-subnav {
        list-style: none;
    }

    .drawer-sub-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 8px;
        color: var(--text-secondary);
        font-size: 0.92rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast),
                    color var(--transition-fast);
    }

    .drawer-sub-link:hover {
        background: var(--bg-section);
        color: var(--color-primary);
    }

    .drawer-sub-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .drawer-sub-text {
        font-size: 0.92rem;
        font-weight: 500;
    }

    /* ── Demo strip (bottom of Product view) ─────────────── */
    .drawer-demo-strip {
        margin: 12px 20px 20px;
        padding: 16px;
        background: linear-gradient(135deg, rgba(91,95,199,0.12) 0%, rgba(124,58,237,0.12) 100%);
        border: 1px solid rgba(91, 95, 199, 0.25);
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        gap: 14px;
        flex-shrink: 0;
    }

    .drawer-demo-strip-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--color-primary), #7c3aed);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .drawer-demo-strip-body {
        flex: 1;
        min-width: 0;
    }

    .drawer-demo-strip-body strong {
        display: block;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 2px;
    }

    .drawer-demo-strip-body span {
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .drawer-demo-strip-btn {
        flex-shrink: 0;
        padding: 7px 14px;
        background: var(--color-primary);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 700;
        text-decoration: none;
        border-radius: var(--radius-md);
        white-space: nowrap;
        transition: opacity var(--transition-fast);
    }

    .drawer-demo-strip-btn:hover { opacity: 0.88; }

    /* ── Hide old desktop nav-menu on mobile (drawer replaces it) ── */
    .nav-menu { display: none !important; }

} /* end @media (max-width: 768px) */

/* ========================================
   DRAWER POLISH — icons, label layout,
   animated demo strip
   ======================================== */

@media (max-width: 768px) {

    /* ── Label + meta stacked column ────────────────────── */
    .drawer-nav-label-wrap {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
        text-align: left;
    }

    /* Override the stray .drawer-nav-meta that's a direct sibling
       of the icon (old pattern) — no longer used, but safe guard */
    .drawer-nav-label-wrap .drawer-nav-meta {
        font-size: 0.74rem;
        color: var(--text-muted);
    }

    /* ── Icon sizing — SVGs fill the icon square ─────────── */
    .drawer-nav-icon {
        font-size: 0;            /* suppress any inline text */
        border-radius: 10px;
    }

    .drawer-nav-icon svg {
        display: block;
        flex-shrink: 0;
    }

    .drawer-sub-icon {
        font-size: 0;
        border-radius: 8px;
    }

    .drawer-sub-icon svg {
        display: block;
        flex-shrink: 0;
    }

    /* ── Sub-link text: label + description stacked ──────── */
    .drawer-sub-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .drawer-sub-text strong {
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
    }

    .drawer-sub-text span {
        font-size: 0.74rem;
        color: var(--text-muted);
        line-height: 1.3;
    }

    /* ── Pulsing play demo strip ─────────────────────────── */

    /* Replace the old gradient-square icon with a round play button */
    .drawer-demo-strip-play {
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), #7c3aed);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        flex-shrink: 0;
        /* Offset the play triangle visually */
        padding-left: 2px;
    }

    /* Pulsing ring */
    .drawer-play-pulse {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid rgba(91, 95, 199, 0.45);
        animation: drawer-play-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes drawer-play-pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0;
            transform: scale(1.45);
        }
    }

    /* Second outer ring (offset timing) */
    .drawer-play-pulse::after {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 1.5px solid rgba(91, 95, 199, 0.2);
        animation: drawer-play-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) 0.6s infinite;
    }

    /* Strip layout refinements */
    .drawer-demo-strip {
        align-items: center;
    }

    .drawer-demo-strip-body strong {
        font-size: 0.85rem;
    }

    .drawer-demo-strip-btn {
        padding: 7px 13px;
        font-size: 0.78rem;
        letter-spacing: 0.01em;
        border-radius: var(--radius-md);
    }

} /* end @media (max-width: 768px) */

/* ── Watch Demo CTA play button ──────────────────────────── */
@media (max-width: 768px) {

    .drawer-cta-demo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    /* Inline round play circle */
    .drawer-cta-play {
        position: relative;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(91, 95, 199, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--color-primary);
        padding-left: 1px;  /* optical offset for play triangle */
    }

    /* Pulsing ring — same keyframe as drawer-demo-strip */
    .drawer-cta-play-pulse {
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 1.5px solid rgba(91, 95, 199, 0.4);
        animation: drawer-play-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) 0.4s infinite;
    }

    /* Slightly darker play circle on hover */
    .drawer-cta-demo:hover .drawer-cta-play {
        background: rgba(91, 95, 199, 0.25);
    }

} /* end @media */


/* ============================================================
   CONTACT FORM — ENHANCED
   ============================================================ */

/* Honeypot: visually and functionally hidden */
.cf-honey {
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1 !important;
}

/* Form header inside card */
.contact-form-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.contact-form-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-form-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Two-column field row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Required field asterisk */
.req {
    color: #e85d4a;
    margin-left: 2px;
    font-weight: 600;
}

/* Select dropdown */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.form-group select {
    width: 100%;
    padding: 14px 40px 14px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    line-height: 1.5;
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.1);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Inline error message */
.cf-error {
    background: rgba(232, 93, 74, 0.08);
    border: 1px solid rgba(232, 93, 74, 0.25);
    border-radius: var(--radius-md);
    color: #c0392b;
    font-size: 0.88rem;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* Submit button — loading state */
.cf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.cf-submit-btn.loading .cf-btn-icon  { display: none !important; }
.cf-submit-btn.loading .cf-btn-spinner { display: inline-block !important; animation: cf-spin 0.75s linear infinite; }
.cf-submit-btn:disabled { opacity: 0.72; cursor: not-allowed; }

@keyframes cf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   CONTACT SUCCESS MODAL
   ============================================================ */

.cf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: cf-overlay-in 0.22s ease;
}

.cf-modal-overlay.hiding {
    animation: cf-overlay-out 0.18s ease forwards;
}

@keyframes cf-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes cf-overlay-out { from { opacity: 1; } to { opacity: 0; } }

.cf-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 44px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: cf-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-modal-overlay.hiding .cf-modal {
    animation: cf-modal-out 0.18s ease forwards;
}

@keyframes cf-modal-in {
    from { opacity: 0; transform: scale(0.86) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes cf-modal-out {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.92); }
}

/* Close button */
.cf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    padding: 0;
}

.cf-modal-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

/* Success check icon */
.cf-modal-icon {
    width: 74px;
    height: 74px;
    background: rgba(16, 185, 129, 0.10);
    border: 1.5px solid rgba(16, 185, 129, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #10b981;
}

.cf-modal-icon svg { width: 32px; height: 32px; }

.cf-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cf-modal > p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    padding: 0 4px;
}

/* Demo CTA block inside modal */
.cf-modal-cta {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 20px 20px 22px;
}

.cf-modal-cta-label {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.cf-modal-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    padding: 10px 22px 10px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(91, 95, 199, 0.25);
}

.cf-modal-demo-btn:hover {
    background: #4a4eb5;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(91, 95, 199, 0.38);
    color: #fff;
}

/* Animated play button inside modal */
.cf-demo-play {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.cf-demo-play svg {
    position: relative;
    z-index: 1;
    margin-left: 2px;
}

.cf-demo-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: cf-pulse 1.9s ease-out infinite;
}

@keyframes cf-pulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cf-modal {
        padding: 42px 24px 32px;
    }

    .cf-modal h3 {
        font-size: 1.3rem;
    }
}
