/* ==========================================================================
   Business Evolution AI - Landing Page Styles
   ========================================================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-blue: #52C3F1;
    --secondary-blue: #2AA3D1;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-gray: #333333;
    --text-light-gray: #666666;
    --gradient: linear-gradient(135deg, #52C3F1 0%, #2AA3D1 100%);
    --shadow: 0 4px 20px rgba(82, 195, 241, 0.1);
    --shadow-hover: 0 8px 30px rgba(82, 195, 241, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
}

.loading-bars .bar {
    width: 16px;
    background: #52C3F1;
    border-radius: 2px;
    animation: loading-bounce 1.2s infinite ease-in-out;
}

.loading-bars .bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.loading-bars .bar:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.loading-bars .bar:nth-child(3) { animation-delay: 0.2s; height: 60px; }
.loading-bars .bar:nth-child(4) { animation-delay: 0.3s; height: 80px; }

@keyframes loading-bounce {
    0%, 50%, 100% { transform: scaleY(0.4); }
    25% { transform: scaleY(1); }
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8feff 100%);
}

.hero .container {
    text-align: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.logo {
    max-height: 140px;
    width: auto;
}



/* Tagline */
.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--black);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.tagline .highlight {
    color: var(--primary-blue);
    position: relative;
}

.tagline .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    animation: underlineGrow 0.8s ease 1.8s forwards;
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* Tagline Italic Line */
.tagline-italic {
    font-style: italic;
    color: #52C3F1;
}

/* Underline Style */
.underline {
    text-decoration: underline;
    text-decoration-color: #52C3F1;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Description */
.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light-gray);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

/* Email Signup */
.email-signup {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border: 2px solid #52C3F1;
    border-radius: 16px;
    box-shadow: 
        0 0 20px rgba(82, 195, 241, 0.3),
        inset 0 1px 0 rgba(82, 195, 241, 0.1);
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.email-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(82, 195, 241, 0.05) 50%, transparent 70%);
    border-radius: 14px;
    pointer-events: none;
}

.email-signup:hover {
    box-shadow: 
        0 0 30px rgba(82, 195, 241, 0.4),
        inset 0 1px 0 rgba(82, 195, 241, 0.2);
    transform: translateY(-2px);
}

.email-signup:hover::before {
    background: linear-gradient(45deg, transparent 20%, rgba(82, 195, 241, 0.1) 50%, transparent 80%);
}

.email-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(82, 195, 241, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    outline: none;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(82, 195, 241, 0.2);
    background: var(--white);
}

.form-input::placeholder {
    color: #999;
}

#firstName {
    flex: 0.8; /* Slightly smaller than email field */
}

#email {
    flex: 1.2; /* Slightly larger for email field */
}

.submit-btn {
    padding: 18px 36px;
    background: var(--gradient);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0 auto;
}

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

.submit-btn:active {
    transform: translateY(0);
}

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

.submit-btn.loading .loading-spinner {
    opacity: 1;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* GDPR Notice */
.gdpr-notice {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits {
    padding: 100px 0;
    background: var(--light-gray);
}

.benefits-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.benefit-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(82, 195, 241, 0.1) 0%, rgba(42, 163, 209, 0.1) 100%);
    border-radius: 50%;
}

.icon-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.mini-bar {
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: miniGrow 1.5s ease infinite;
}

.mini-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.mini-bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.mini-bar:nth-child(3) { height: 16px; animation-delay: 0.4s; }

@keyframes miniGrow {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1.2); }
}

.benefit-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--black);
}

.benefit-item p {
    color: var(--text-light-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary-blue);
}

/* ==========================================================================
   Background Pattern
   ========================================================================== */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.pattern-bars {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 300px;
}

.pattern-bar {
    width: 20px;
    background: var(--gradient);
    border-radius: 10px;
    animation: patternFloat 8s ease-in-out infinite;
}

.pattern-bar:nth-child(1) { height: 100px; animation-delay: 0s; }
.pattern-bar:nth-child(2) { height: 150px; animation-delay: 1s; }
.pattern-bar:nth-child(3) { height: 200px; animation-delay: 2s; }
.pattern-bar:nth-child(4) { height: 250px; animation-delay: 3s; }
.pattern-bar:nth-child(5) { height: 300px; animation-delay: 4s; }

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

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .tagline {
        font-size: 1.6rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .email-signup {
        padding: 30px 20px;
    }
    
    .email-signup:hover {
        transform: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    #firstName,
    #email {
        flex: 1; /* Equal width on mobile */
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .benefits-title {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .logo-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .email-signup {
        padding: 25px 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .benefits {
        padding: 60px 0;
    }
    
    .benefit-item {
        padding: 30px 20px;
    }
    
    .logo {
        max-height: 100px;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .loading-bars {
        height: 60px;
        gap: 10px;
    }
    
    .loading-bars .bar {
        width: 14px;
    }
    
    .loading-bars .bar:nth-child(1) { height: 15px; }
    .loading-bars .bar:nth-child(2) { height: 30px; }
    .loading-bars .bar:nth-child(3) { height: 45px; }
    .loading-bars .bar:nth-child(4) { height: 60px; }
}

/* ==========================================================================
   Button Ripple Effect
   ========================================================================== */
.submit-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form Input Error States */
.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
} 

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .tagline {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-input {
        padding: 16px 20px;
    }
    
    .submit-btn {
        padding: 16px 24px;
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Confetti Animation Styles */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    animation-fill-mode: forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Power-up Effect Styles */
.power-up-boost {
    animation: powerUpPulse 0.6s ease-out;
    transform-origin: center;
}

@keyframes powerUpPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(82, 195, 241, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(82, 195, 241, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px 20px rgba(82, 195, 241, 0);
    }
}

.power-up-bar {
    animation: powerUpBar 0.8s ease-out;
    position: relative;
    overflow: visible;
}

@keyframes powerUpBar {
    0% {
        transform: scaleY(1);
        filter: brightness(1);
    }
    30% {
        transform: scaleY(1.5);
        filter: brightness(1.5) drop-shadow(0 0 8px #52C3F1);
    }
    60% {
        transform: scaleY(1.3);
        filter: brightness(1.3) drop-shadow(0 0 6px #52C3F1);
    }
    100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
}

/* Enhanced power-up glow effect */
.power-up-bar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #52C3F1, #2AA3D1, #FFD700);
    border-radius: inherit;
    z-index: -1;
    animation: powerUpGlow 0.8s ease-out;
    opacity: 0;
}

@keyframes powerUpGlow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Success message enhancement */
.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    position: relative;
    overflow: hidden;
}

.form-message.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: successShimmer 2s ease-in-out;
}

@keyframes successShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
} 