/* CSS Reset and Base Styles - Performance Optimized */
html {
    scroll-behavior: smooth;
    font-display: swap;
}

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

/* Performance optimizations */
img, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

/* Reduce layout shifts */
.hero-bg-shapes,
.hero-grid,
.hero-connections {
    contain: layout style paint;
}

:root {
    /* Flowmai Brand Colors - Enhanced Contrast */
--flowmai-primary: #3ECF8E;      /* Mint Green - Primary CTAs */
--flowmai-accent: #4F9DF7;       /* Sky Blue - Secondary CTAs */
--flowmai-secondary: #FFF8F0;    /* Warm Sand - Backgrounds */
--flowmai-neutral: #FFF8F0;      /* Warm Sand - Neutral backgrounds */
--flowmai-dark: #1A1F36;         /* Midnight Navy - Text/headings */
--flowmai-text: #6B7280;         /* Enhanced Slate Gray - Better contrast */
--flowmai-coral: #FFF3C4;        /* Pale Yellow - Optimistic & Energetic */
    
    /* Enhanced color palette */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic color system */
    --text-primary: var(--flowmai-dark);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-inverse: var(--white);
    
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-accent: var(--flowmai-secondary);
    
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    --border-accent: var(--flowmai-accent);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    font-size: 1rem;
}

/* Enhanced text hierarchy */
p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.small-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--flowmai-dark);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
}

/* Scroll Animation Classes */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays for multiple elements */
.scroll-stagger-1 { transition-delay: 0.1s; }
.scroll-stagger-2 { transition-delay: 0.2s; }
.scroll-stagger-3 { transition-delay: 0.3s; }
.scroll-stagger-4 { transition-delay: 0.4s; }

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--flowmai-accent);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Allow shapes to move behind hero text */
.hero .container {
    position: relative;
    z-index: auto;
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    padding: 2rem 20px;
    margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero .container {
        padding: 1.5rem 15px;
    }
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--flowmai-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--flowmai-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--flowmai-primary), var(--flowmai-accent));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--flowmai-accent);
    transform: translateY(-1px);
}

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

.nav-links a:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--flowmai-secondary) 0%, rgba(255, 248, 240, 0.7) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure no clipping of child elements */
    clip-path: none;
    -webkit-clip-path: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(62, 207, 142, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 157, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 243, 196, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 248, 240, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
}





/* Floating geometric shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.hero-bg-shape {
    position: absolute;
    opacity: 0.25;
    animation: float-shape 8s ease-in-out infinite;
    will-change: transform;
}

.hero-bg-shape:nth-child(1) {
    top: 18%;
    left: 12%;
    width: 72px;
    height: 72px;
    background: linear-gradient(45deg, var(--flowmai-primary), var(--flowmai-accent));
    border-radius: 50%;
    animation-delay: 0s;
}

.hero-bg-shape:nth-child(2) {
    top: 72%;
    left: 88%;
    width: 58px;
    height: 58px;
    background: linear-gradient(45deg, var(--flowmai-accent), var(--flowmai-secondary));
    border-radius: 20% 80% 80% 20% / 20% 80% 80% 20%;
    animation-delay: 2s;
}

.hero-bg-shape:nth-child(3) {
    top: 32%;
    left: 78%;
    width: 46px;
    height: 46px;
    background: linear-gradient(45deg, var(--flowmai-secondary), var(--flowmai-primary));
    border-radius: 50%;
    animation-delay: 4s;
}

.hero-bg-shape:nth-child(4) {
    top: 85%;
    left: 22%;
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, var(--flowmai-primary), var(--flowmai-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 6s;
}

.hero-bg-shape:nth-child(5) {
    top: 48%;
    left: 62%;
    width: 52px;
    height: 52px;
    background: linear-gradient(45deg, var(--flowmai-accent), var(--flowmai-secondary));
    border-radius: 20% 80% 17% 60% / 75% 20% 65% 15%;
    animation-delay: 1s;
}

.hero-bg-shape:nth-child(6) {
    top: 8%;
    left: 68%;
    width: 38px;
    height: 38px;
    background: linear-gradient(45deg, var(--flowmai-secondary), var(--flowmai-accent));
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    animation-delay: 3s;
}

.hero-bg-shape:nth-child(7) {
    top: 65%;
    left: 8%;
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, var(--flowmai-primary), var(--flowmai-secondary));
    border-radius: 50%;
    animation-delay: 5s;
}

.hero-bg-shape:nth-child(8) {
    top: 25%;
    left: 45%;
    width: 42px;
    height: 42px;
    background: linear-gradient(45deg, var(--flowmai-accent), var(--flowmai-primary));
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    animation-delay: 7s;
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.25;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1); 
        opacity: 0.4;
    }
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(79, 157, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 157, 247, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}



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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--flowmai-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    overflow: visible;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--flowmai-accent), var(--flowmai-secondary));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--flowmai-dark);
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.02em;
    /* Improve rendering quality */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: never;
    -webkit-font-smoothing: subpixel-antialiased;
}

.btn::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;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--flowmai-primary) 0%, var(--flowmai-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(62, 207, 142, 0.25);
    animation: subtle-pulse 4s ease-in-out infinite;
    /* Improve text rendering */
    text-rendering: optimizeLegibility;
    font-smooth: never;
    -webkit-font-smoothing: subpixel-antialiased;
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(62, 207, 142, 0.25); 
    }
    50% { 
        box-shadow: 0 8px 25px rgba(62, 207, 142, 0.35); 
    }
}

@keyframes subtle-pulse-secondary {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(79, 157, 247, 0.15); 
    }
    50% { 
        box-shadow: 0 8px 25px rgba(79, 157, 247, 0.25); 
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--flowmai-dark) 0%, var(--flowmai-primary) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(26, 31, 54, 0.4), 0 0 20px rgba(62, 207, 142, 0.3);
    animation: none;
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary:focus {
    outline: 3px solid var(--flowmai-accent);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(62, 207, 142, 0.25);
}

.btn-secondary:focus {
    outline: 3px solid var(--flowmai-accent);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(79, 157, 247, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--flowmai-accent);
    border: 2px solid var(--flowmai-accent);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(79, 157, 247, 0.15);
    animation: subtle-pulse-secondary 4s ease-in-out infinite;
    /* Improve text rendering */
    text-rendering: optimizeLegibility;
    font-smooth: never;
    -webkit-font-smoothing: subpixel-antialiased;
}

.btn-secondary:hover {
    background: var(--flowmai-accent);
    color: var(--white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(79, 157, 247, 0.3);
    border-color: var(--flowmai-accent);
    animation: none;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

/* Typography Hierarchy - 6-Level System */
h1, h2, h3, h4, h5, h6 {
    color: var(--flowmai-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 2.8rem; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: 1.8rem; 
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4 { 
    font-size: 1.4rem; 
    font-weight: 600; 
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5 { 
    font-size: 1.2rem; 
    font-weight: 500; 
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h6 { 
    font-size: 1rem; 
    font-weight: 500; 
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Pale Yellow highlight for optimistic elements */
.coral-highlight {
    color: var(--flowmai-coral);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
}

h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; }
h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }
h5 { font-size: 1.2rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* Sections */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
    position: relative;
    line-height: 1.2;
}

.section-title .accent {
    color: var(--flowmai-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--flowmai-accent), var(--flowmai-secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.section-title:hover::after {
    width: 80px;
    background: linear-gradient(90deg, var(--flowmai-primary), var(--flowmai-accent));
    box-shadow: 0 2px 8px rgba(79, 157, 247, 0.3);
}



/* Section Spacing System - 8pt Grid */
.section-spacing-xs { padding: 2rem 0; }
.section-spacing-sm { padding: 4rem 0; }
.section-spacing-md { padding: 6rem 0; }
.section-spacing-lg { padding: 8rem 0; }
.section-spacing-xl { padding: 10rem 0; }

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--flowmai-secondary) 100%);
    position: relative;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-grid .feature-card {
    flex: 1;
    min-width: calc(25% - 1.125rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-grid.has-expanded .feature-card:not(.expanded) {
    flex: 1;
    min-width: calc(25% - 1.125rem);
    order: 2;
}

.features-grid.has-expanded .feature-card.expanded {
    flex: 1 1 100%;
    order: 1;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .features-grid .feature-card {
        min-width: calc(50% - 0.75rem);
    }
    
    .features-grid.has-expanded .feature-card:not(.expanded) {
        min-width: calc(50% - 0.75rem);
    }
    
    .features-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid .feature-card {
        min-width: 100%;
    }
    
    .features-grid.has-expanded .feature-card:not(.expanded) {
        min-width: 100%;
    }
    
    .features-grid {
        gap: 2rem;
    }
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(246, 249, 252, 0.8) 100%);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--flowmai-accent);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(78, 168, 222, 0.12), 0 2px 4px rgba(29, 43, 83, 0.05);
    text-align: center;
    cursor: pointer;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--flowmai-accent), var(--flowmai-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(78, 168, 222, 0.2), 0 4px 8px rgba(29, 43, 83, 0.08);
    border-color: var(--flowmai-secondary);
}

.feature-card:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

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


/* Expanded card state */
.feature-card.expanded {
    height: auto;
    min-height: 320px;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(78, 168, 222, 0.25), 0 8px 16px rgba(29, 43, 83, 0.15);
    border-color: var(--flowmai-secondary);
    border-width: 3px;
    z-index: 10;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(168, 230, 207, 0.05) 100%);
}

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

/* Card details - hidden by default */
.card-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    text-align: left;
}

.feature-card.expanded .card-details {
    opacity: 1;
    max-height: 300px;
}

/* Expand indicator */
.expand-indicator {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.3rem;
    color: var(--flowmai-accent);
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    background: linear-gradient(135deg, var(--white) 0%, rgba(78, 168, 222, 0.1) 100%);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--flowmai-accent);
    box-shadow: 0 2px 8px rgba(78, 168, 222, 0.2);
}

.feature-card.expanded .expand-indicator {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--flowmai-accent) 0%, var(--flowmai-secondary) 100%);
    color: white;
    border-color: var(--flowmai-secondary);
    box-shadow: 0 4px 12px rgba(78, 168, 222, 0.3);
}



.feature-card:focus {
    outline: 3px solid var(--flowmai-accent);
    outline-offset: 2px;
    border-color: var(--flowmai-accent);
    box-shadow: 0 0 0 3px rgba(79, 157, 247, 0.2);
}

.feature-card:hover .expand-indicator {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--flowmai-accent) 0%, var(--flowmai-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(78, 168, 222, 0.4);
}

.feature-card:focus .expand-indicator {
    background: var(--flowmai-accent);
    color: white;
}

/* Use cases styling */
.use-cases {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.use-cases li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--flowmai-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.use-cases li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(34, 197, 94, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--flowmai-accent), var(--flowmai-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: center;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    display: none; /* Hidden until later date */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--flowmai-secondary);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 43, 83, 0.06);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--flowmai-accent);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--flowmai-accent);
}

.testimonial-card:active {
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-card cite {
    color: var(--flowmai-primary);
    font-weight: 600;
    font-style: normal;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--flowmai-secondary) 100%);
    border-top: 1px solid var(--flowmai-secondary);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(78, 168, 222, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(168, 230, 207, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 8rem 0 6rem 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 248, 240, 0.4) 100%);
    text-align: center;
    border-top: 1px solid var(--flowmai-secondary);
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--flowmai-secondary), var(--flowmai-accent));
    border-radius: 50% 20% 50% 20%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite reverse;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--flowmai-dark);
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--flowmai-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Section Transitions & Dividers - Enhanced */
.features::before,
.testimonials::before,
.about::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--flowmai-primary) 20%, var(--flowmai-accent) 50%, var(--flowmai-primary) 80%, transparent 100%);
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(62, 207, 142, 0.2);
}

/* Section content spacing */
.section-content {
    margin-top: 3rem;
}

.section-content-sm {
    margin-top: 2rem;
}

.section-content-lg {
    margin-top: 4rem;
}







/* Contact Form Styling */
.contact-form {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--flowmai-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--flowmai-dark);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--flowmai-accent);
    box-shadow: 0 0 0 3px rgba(79, 157, 247, 0.1);
    transform: translateY(-1px) scale(1.01);
    transition: all 0.2s ease;
}

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

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--flowmai-text);
    font-style: italic;
}

.error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #E53E3E;
    font-weight: 500;
    min-height: 1.2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox {
    width: auto;
    margin: 0;
    accent-color: var(--flowmai-accent);
}

.checkbox-label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--flowmai-dark);
}

.form-actions {
    text-align: center;
    margin-top: 2.5rem;
}

/* Progressive Disclosure Styles */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.8;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--flowmai-primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(62, 207, 142, 0.3);
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: var(--flowmai-accent);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--flowmai-dark);
    font-weight: 600;
}

/* Progress line between steps */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: calc(100% - 32px);
    height: 2px;
    background: var(--gray-200);
    z-index: -1;
}

.progress-step.completed:not(:last-child)::after {
    background: var(--flowmai-accent);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    color: var(--flowmai-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-description {
    color: var(--flowmai-text);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-next, .btn-prev {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-next:hover .btn-arrow {
    transform: translateX(2px);
}

.btn-prev:hover .btn-arrow {
    transform: translateX(-2px);
}

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

.btn-submit {
    min-width: 280px;
    margin-bottom: 1rem;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--flowmai-text);
    margin: 0;
    font-style: italic;
}

.contact-alternative {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.alternative-text {
    color: var(--flowmai-text);
    font-size: 0.95rem;
}

.contact-email {
    color: var(--flowmai-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--flowmai-primary);
    text-decoration: underline;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.contact-email:active {
    transform: translateY(0);
}

/* Form Validation States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: var(--flowmai-primary);
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.1);
}

/* Contact Page Specific Styles */
.logo-link {
    text-decoration: none;
    color: inherit;
}



.workshop-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.benefit-text {
    font-weight: 600;
    color: var(--flowmai-dark);
    text-align: center;
}

.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--flowmai-secondary) 100%);
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--flowmai-text);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.workshop-details {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--flowmai-secondary) 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 31, 54, 0.05);
}



.detail-card h3 {
    color: var(--flowmai-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.detail-card p {
    color: var(--flowmai-text);
    margin: 0;
    line-height: 1.5;
}

.contact-alternative h3 {
    color: var(--flowmai-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.nav-links a[aria-current="page"] {
    color: var(--flowmai-primary);
    font-weight: 700;
}

/* Homepage Contact CTA Styling */
.contact-cta {
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
}

.btn-large {
    font-size: 1.4rem;
    padding: 1.25rem 2.5rem;
    min-width: 320px;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--flowmai-text);
    font-size: 1rem;
    margin: 1rem 0 2rem;
    font-style: italic;
}

.contact-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.contact-text {
    color: var(--flowmai-text);
    font-size: 1rem;
    margin: 0;
}

/* Form Success Message Styling */
.success-title {
    color: var(--flowmai-primary);
    margin-bottom: 1rem;
}

.success-note {
    margin-top: 1rem;
    font-style: italic;
    color: var(--flowmai-text);
}

.success-actions {
    margin-top: 2rem;
}

.success-back-btn {
    text-decoration: none;
}

.form-success-container {
    text-align: center;
    padding: 3rem;
    background: var(--flowmai-secondary);
    border-radius: 16px;
    border: 2px solid var(--flowmai-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form {
        margin: 2rem auto 1rem;
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .btn-submit {
        min-width: 100%;
    }
    

    
    .workshop-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    /* Progressive disclosure mobile adjustments */
    .form-progress {
        padding: 0;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-next, .btn-prev {
        width: 100%;
        justify-content: center;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background: var(--flowmai-primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.footer:hover {
    background: linear-gradient(135deg, var(--flowmai-primary) 0%, #2ecf8e 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--flowmai-accent) 20%, var(--flowmai-secondary) 50%, var(--flowmai-accent) 80%, transparent 100%);
    opacity: 0.3;
}

/* Responsive Design */
/* Hero Background Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 80px 0;
    }
    
    .hero-bg-shape {
        opacity: 0.05;
    }
    
    .hero-grid {
        background-size: 30px 30px;
        opacity: 0.3;
    }
    
    .hero-connection {
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 280px;
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 60px 0;
    }
    
    .features, .testimonials {
        padding: 80px 0;
    }
    
    .about {
        padding: 70px 0;
    }
    
    .contact {
        padding: 80px 0 60px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Additional animations and improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to sections */
.features-grid {
    animation: fadeInUp 0.8s ease-out;
}

.testimonials-grid {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-text {
    animation: slideInFromLeft 0.8s ease-out 0.3s both;
}

/* Improve section backgrounds */
.features {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--flowmai-secondary) 100%);
}

.testimonials {
    background: var(--white);
    position: relative;
}



/* Enhance typography */
.feature-card h3,
.section-title {
    text-rendering: optimizeLegibility;
}

/* Subtle gradient text effect */
.hero-title {
    background: linear-gradient(135deg, var(--flowmai-primary) 0%, var(--flowmai-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Better focus states for accessibility */
.btn:focus,
.nav-links a:focus {
    outline: 3px solid var(--flowmai-accent);
    outline-offset: 2px;
}

/* Enhanced color emphasis for hierarchy */
.text-emphasis {
    color: var(--flowmai-primary);
    font-weight: 600;
}

.text-accent {
    color: var(--flowmai-accent);
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Enhanced contrast for important elements */
.important-text {
    color: var(--text-primary);
    font-weight: 600;
}

.secondary-text {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Strategic color emphasis */
.highlight-primary {
    color: var(--flowmai-primary);
    font-weight: 700;
}

.highlight-accent {
    color: var(--flowmai-accent);
    font-weight: 600;
}

.highlight-dark {
    color: var(--text-primary);
    font-weight: 700;
} 
