/* فونت لوکال Inter – مقاوم در برابر قطعی اینترنت */
@font-face {
    font-family: 'Inter';
    src: url("../downloaded/fonts/inter/Inter-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url("../downloaded/fonts/inter/Inter-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url("../downloaded/fonts/inter/Inter-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1E3A8A;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --primary-ultralight: #EFF6FF;
    --secondary: #06B6D4;
    --accent: #0EA5E9;
    --purple: #6366F1;
    --dark: #0F172A;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --surface-dark: #F1F5F9;
    --surface-darker: #E2E8F0;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --gradient: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --shadow-sm: 0 1px 3px rgba(30, 58, 138, 0.05);
    --shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    --shadow-lg: 0 20px 60px rgba(30, 58, 138, 0.12);
    --shadow-xl: 0 25px 80px rgba(30, 58, 138, 0.15);
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --attention: #FBBF24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Loader Styles */
.huge-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    gap: 3rem;
}

.loader-counter {
    font-size: 12rem; 
    font-weight: 900; 
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.loader-text {
    font-size: 2.5rem;
    color: var(--text-secondary);
    font-weight: 600; 
    text-align: center;
    min-height: 2rem; 
    text-transform: uppercase;
    letter-spacing: 0.15em; 
}

.loader-progress {
    width: 500px;
    height: 7px;
    background: var(--surface-dark);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.5);
}

/* Split Screen Animation */
.split-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: none;
}

.split-left, .split-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: center top;
}

.split-left {
    left: 0;
    background: var(--gradient-dark);
}

.split-right {
    right: 0;
    background: linear-gradient(135deg, #000 0%, #06B6D4 100%);
}

/* Welcome Text */
.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0;
    z-index: 9999;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2em; 
    text-shadow: 0 8px 32px rgba(30, 58, 138, 0.4); 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9990;
    transition: width 0.3s ease;
}

/* Navbar Styles */
.navbar-cresta {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    padding: 1.5rem 0;
    border-radius: 0;
    transition: all 0.4s ease-in-out;
    z-index: 999;
}

.navbar-cresta.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.08);
    border-radius: 50px;
    width: 90%;
    margin: 10px auto;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.navbar-cresta.scrolled .navbar-brand {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: rotate(15deg);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-ultralight);
}

.navbar-cresta.scrolled .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
}

.nav-cta {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.navbar-cresta.scrolled .nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-cresta {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px 100px;
    overflow: hidden;
    border-radius: 1000px 1000px 0 0;
    background: linear-gradient(180deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        rgba(30, 58, 138, 0.05) 30%, 
        rgba(30, 58, 138, 0.02) 70%, 
        transparent 100%);
    margin: 140px 70px 0 70px;
}

.hero-bg-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, 
        rgba(30, 58, 138, 0.08) 0%,
        rgba(30, 58, 138, 0.04) 30%,
        rgba(30, 58, 138, 0.01) 70%,
        transparent 100%);
    border-radius: 8px 8px 0 0;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.background-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.05) 0%, transparent 60%);
    animation: moveGradients 15s ease-in-out infinite alternate;
    opacity: 1;
}

@keyframes moveGradients {
    0% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
        background-size: 60% 60%, 50% 50%, 70% 70%;
    }
    100% { 
        background-position: 100% 100%, 0% 0%, 80% 20%;
        background-size: 50% 50%, 60% 60%, 80% 80%;
    }
}

.hero-badge { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.6rem; 
    padding: 0.7rem 1.5rem; 
    border-radius: 999px; 
    background: rgba(255,255,255,0.6); 
    border: 1px solid rgba(0,0,0,0.08); 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    margin: 0 auto 2rem auto;
    backdrop-filter: blur(10px); 
    text-align: center;
    width: fit-content;
}

.hero-content { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    padding: 0 2rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content.collapsed {
    max-width: 600px;
    transform: scale(0.95);
    padding: 0 4rem;
}

.hero-badge.collapsed {
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.2rem; 
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.hero-subtitle { 
    font-size: 1.25rem; 
    color: var(--text-secondary); 
    line-height: 1.6; 
    max-width: 700px; 
    margin: 0 auto 2.5rem; 
    text-align: center;
}

.hero-actions { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 1.2rem; 
    flex-wrap: wrap; 
    width: 100%;
}

.btn-cresta { 
    background: var(--gradient); 
    color: #fff; 
    padding: 1rem 2.2rem; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 1.05rem; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    transition: all 0.3s ease; 
    border: none;
}

.btn-cresta:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-lg); 
    color: white;
}

.btn-cresta-outline { 
    background: transparent; 
    border: 2px solid var(--border); 
    color: var(--text-secondary); 
    padding: 1rem 2.2rem; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 1.05rem; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    transition: all 0.3s ease; 
}

.btn-cresta-outline:hover { 
    background: var(--surface); 
    border-color: var(--primary-light); 
    transform: translateY(-3px); 
    color: var(--primary);
}

.hero-title.collapsed {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle.collapsed {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions.collapsed {
    gap: 1rem;
}

.hero-actions.collapsed .btn-cresta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.hero-actions.collapsed .btn-cresta-outline {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Card Styles */
.cresta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cresta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cresta-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.cresta-card:hover::before {
    opacity: 0.02;
}

/* Feature Cards */
.feature-card-whimsical {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.feature-card-whimsical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-card-whimsical:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card-whimsical:hover::before {
    transform: scaleY(1);
}

.feature-card-whimsical.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: scale(0.95);
}

.feature-card-whimsical.active:hover {
    transform: scale(0.95) translateY(-4px);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-ultralight);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card-whimsical:hover .feature-icon-wrapper {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.feature-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.highlight-item i {
    color: var(--success);
    font-size: 0.9rem;
}

.highlight-item span {
    flex: 1;
}

.feature-loader {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}
.feature-loader .loader-progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    border-radius: 0 0 16px 16px;
    transition: width 0.8s ease;
    position: relative;
}
.feature-loader::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card-whimsical.loading .feature-loader::before {
    opacity: 1;
    animation: borderPulse 1.5s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}
.feature-card-whimsical.loading {
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.1);
}

/* Section Styles */
.section-cresta {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Model Cards */
.model-card {
    text-align: left;
}

.model-icon {
    width: 70px;
    height: 70px;
    background: var(--surface-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all 0.4s ease;
}

.model-card:hover .model-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

/* About Section */
#about {
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-ultralight) 0%, rgba(255, 255, 255, 0.8) 50%, var(--surface) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    margin: 100px 20px 60px 20px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

#about .container {
    position: relative;
    z-index: 1;
}

#about .feature-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#about .feature-item.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-light);
    box-shadow: 
        0 12px 40px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#about .feature-item.previous {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(226, 232, 240, 0.6);
}

#about .section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#about .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

#about .btn-about {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: 2px solid rgba(30, 58, 138, 0.2);
    color: white;
    box-shadow: var(--shadow);
}

#about .btn-about:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

#about .row.align-items-center {
    align-items: center !important; 
    min-height: 60vh;
}

#about .animated-features-container {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-features-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.min-vh-70 {
    min-height: 70vh !important;
}

#about .superhuman-content {
    padding: 2rem 0;
}

.feature-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.feature-item.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.feature-item.previous {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.9);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item.active .feature-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item.previous .feature-title {
    background: var(--text-muted);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-item.active .feature-description {
    color: var(--text-primary);
}

.feature-item.previous .feature-description {
    color: var(--text-muted);
}

/* Animation indicators */
.animation-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator.previous {
    background: var(--text-muted);
}

/* Superhuman Section */
.btn-wrapper-left {
    display: flex;
    justify-content: flex-start;  
    align-items: center;
    width: 100%;
    margin-top: 1rem;             
}

.btn-about {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: 2px solid var(--border); 
    color: white; 
    padding: 0.6rem 1.4rem;  
    font-size: 0.9rem;           
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-about:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-small-center {
    padding: 0.5rem 1.2rem;  
    font-size: 0.9rem;
    border-radius: 10px;
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.workflow-step {
    text-align: center;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--surface-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.workflow-step:hover .step-number {
    background: var(--gradient);
    color: white;
    transform: scale(1.15);
}

/* Video Demo */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.video-overlay:hover {
    background: rgba(30, 58, 138, 0.08);
}

.play-button {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.video-overlay:hover .play-button {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

/* Marketplace Visual */
.marketplace-visual {
    position: relative;
    height: 450px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 85px;
    height: 85px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.7rem;
    animation: float-element 8s ease-in-out infinite;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.floating-element:hover {
    background: var(--gradient);
    color: white;
    transform: scale(1.15);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

@keyframes float-element {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    33% { 
        transform: translateY(-20px) rotate(3deg) scale(1.05); 
    }
    66% { 
        transform: translateY(-10px) rotate(-2deg) scale(1.02); 
    }
}

/* FAQ Section */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.faq-question:hover {
    background: var(--primary-ultralight);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-secondary);
}

.faq-answer.active {
    padding: 0 2rem 2rem;
    max-height: 300px;
}

/* Footer Social Links */
.footer-cresta .social-links {
    display: flex !important;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-cresta .social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-cresta .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-cresta .social-links i {
    font-size: 1.2rem;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Footer */
.footer-cresta {
    background: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
    position: relative;
    color: white;
}

.footer-cresta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient);
    opacity: 0.5;
}

.footer-cresta .navbar-brand {
    color: white !important;
}

.footer-cresta .logo-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-cresta .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-cresta h5 {
    color: white !important;
}

.footer-cresta a.text-muted.text-decoration-none {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.footer-cresta a.text-muted.text-decoration-none:hover {
    color: white !important;
}

.footer-cresta .border-top.border-secondary {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-cresta {
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Contact Modal */
.contact-modal .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    box-shadow: var(--shadow-xl);
}

.contact-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2.5rem 1.5rem;
}

.contact-modal .modal-body {
    padding: 1.5rem 2.5rem 2.5rem;
}

.contact-modal .form-control {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-modal .form-control:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-cresta {
        margin: 140px 40px 0 40px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .hero-cresta {
        margin: 120px 20px 0 20px;
        padding: 20px 20px 80px;
    }
    
    .section-cresta {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .navbar-cresta.scrolled {
        width: 95%;
    }
    
    #about {
        margin: 80px 15px 40px 15px;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-cresta {
        margin: 100px 10px 0 10px;
        padding: 15px 15px 60px;
        border-radius: 500px 500px 0 0;
    }
    
    .hero-title { 
        font-size: 2.5rem; 
        text-align: center; 
    } 
    
    .hero-subtitle { 
        font-size: 1.1rem; 
    } 
    
    .hero-actions { 
        flex-direction: column; 
        gap: 1rem; 
    } 
    
    .btn-cresta, .btn-cresta-outline { 
        width: 100%; 
        justify-content: center; 
    } 
    
    .hero-bg-curve { 
        width: 250%; 
        height: 160%; 
        top: -70%; 
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .navbar-cresta.scrolled {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .loader-counter {
        font-size: 8rem;
    }
    
    .loader-text {
        font-size: 1.8rem;
    }
    
    .loader-progress {
        width: 300px;
    }
    
    .welcome-text {
        font-size: 10rem;
    }
    
    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    #about .section-title {
        font-size: 2.2rem;
    }
    
    .animated-features-container {
        height: 300px;
    }
    
    .feature-item {
        padding: 2rem;
    }
}

@media (max-width: 576px) { 
    .hero-cresta {
        margin: 80px 5px 0 5px;
        padding: 10px 10px 40px;
        border-radius: 300px 300px 0 0;
    }
    
    .hero-title { 
        font-size: 2.2rem; 
    } 
    
    .hero-subtitle { 
        font-size: 1rem; 
    } 
    
    .btn-cresta, .btn-cresta-outline { 
        padding: 0.9rem 1.8rem; 
        font-size: 0.95rem; 
    } 
    
    .hero-bg-curve { 
        width: 300%; 
        height: 180%; 
        top: -80%; 
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cresta-card {
        padding: 2rem;
    }
    
    .feature-card-whimsical {
        padding: 1.25rem;
    }
    
    .loader-counter {
        font-size: 6rem;
    }
    
    .loader-text {
        font-size: 1.5rem;
    }
    
    .loader-progress {
        width: 250px;
    }
    
    .welcome-text {
        font-size: 7rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .fab {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    #about {
        margin: 60px 10px 30px 10px;
        padding: 40px 0;
    }
    
    #about .section-title {
        font-size: 1.8rem;
    }
    
    .animated-features-container {
        height: 250px;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .loader-counter {
        font-size: 5rem;
    }
    
    .loader-text {
        font-size: 1.2rem;
    }
    
    .loader-progress {
        width: 200px;
    }
    
    .welcome-text {
        font-size: 5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Text Selection */
::selection {
    background: rgba(30, 58, 138, 0.1);
    color: var(--text-primary);
}