/* Modern Design - White Background Theme */

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

/* Hide scrollbar for all browsers */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Body Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Background Elements */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    filter: blur(40px);
    animation: float-shape 20s infinite ease-in-out;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) rotate(270deg) scale(1.05);
    }
}

.shape:nth-child(1) {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation-duration: 25s;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.05), transparent);
}

.shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-duration: 30s;
    animation-delay: -5s;
    background: radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.05), transparent);
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 10%;
    animation-duration: 35s;
    animation-delay: -10s;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04), transparent);
}

.shape:nth-child(4) {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 5%;
    animation-duration: 40s;
    animation-delay: -15s;
    background: radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.04), transparent);
}

/* Hero Section */
.container.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    text-align: center;
    max-width: 800px;
    animation: content-slide-in 1.2s ease-out;
}

@keyframes content-slide-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo with Advanced Animation */
.logo {
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

.logo::before {
    content: 'ZEN-AI';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(25px);
    opacity: 0.5;
    animation: logo-shadow 3s ease-in-out infinite;
}

@keyframes logo-shadow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(10px) scale(1.05);
        opacity: 0.5;
    }
}

/* Subtitle with Animation */
.subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-in 1s ease-out 0.3s forwards;
    letter-spacing: -0.5px;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Typing Animation */
.status {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 4rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    border-right: 3px solid #3b82f6;
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 6s steps(40, end) infinite, 
               blink-caret 0.75s step-end infinite,
               fade-in 1s ease-out 0.6s forwards;
}

@keyframes typing {
    0%, 90%, 100% { 
        width: 0;
    }
    30%, 60% { 
        width: 100%;
        max-width: 26em;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #3b82f6 }
}

/* Modern Buttons with Hover Effects */
.buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.9s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #3b82f6;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

/* Hero Divider */
.hero-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: -10vh auto 6rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Extra Sections */
.extra-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
}

.extra-sections section {
    margin-bottom: 6rem;
    padding: 5rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.extra-sections section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.extra-sections section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.extra-sections section:hover::before {
    transform: scaleX(1);
}

/* Section Headings */
.extra-sections h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

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

.feature-card {
    background: #fafbfc;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #3b82f6;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: white;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

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

/* Dashboard Preview */
.dashboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-mockup {
    background: #fafbfc;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.dashboard-mockup:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.dashboard-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.dashboard-mockup:hover .dashboard-image {
    transform: scale(1.05);
}

/* Dashboard Features List */
.dashboard-features ul {
    list-style: none;
}

.dashboard-features li {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.1rem;
    color: #475569;
    transition: all 0.3s ease;
}

.dashboard-features li:hover {
    color: #1e293b;
    transform: translateX(5px);
}

.dashboard-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-features li::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* API Keys Section */
.keys-management {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.keys-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    position: relative;
    padding-bottom: 1rem;
}

.keys-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.keys-preview {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.keys-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.keys-preview:hover .keys-image {
    transform: scale(1.05);
}

/* Compatibility Section */
.framework-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.logo-placeholder {
    background: #fafbfc;
    padding: 2rem 1rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    color: #475569;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-placeholder:hover {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

/* Code Example */
.code-example {
    position: relative;
    margin-top: 2rem;
}

.code-example::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 20px 0 0 #f59e0b, 40px 0 0 #10b981;
    z-index: 10;
}

code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 3rem 2rem 2rem;
    border-radius: 16px;
    display: block;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    line-height: 1.7;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.step {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    animation: pulse-number 2s infinite;
}

@keyframes pulse-number {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* CTA Section */
.cta-button {
    text-align: center;
    margin-top: 4rem;
}

.cta-button .btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* Footer */
.footer {
    background: #fafbfc;
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #8b5cf6;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-container,
    .keys-management {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo {
        font-size: 5rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .extra-sections section {
        padding: 3rem 2rem;
    }
    
    .logo {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .status {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    .extra-sections h2 {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Entrance Animations for Sections */
.extra-sections section {
    opacity: 0;
    transform: translateY(50px);
    animation: section-fade-in 0.8s ease-out forwards;
}

.extra-sections section:nth-child(1) { animation-delay: 0.1s; }
.extra-sections section:nth-child(2) { animation-delay: 0.2s; }
.extra-sections section:nth-child(3) { animation-delay: 0.3s; }
.extra-sections section:nth-child(4) { animation-delay: 0.4s; }
.extra-sections section:nth-child(5) { animation-delay: 0.5s; }
.extra-sections section:nth-child(6) { animation-delay: 0.6s; }

@keyframes section-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e293b;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading Animation for Images */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Micro-interactions */
.feature-card,
.step,
.logo-placeholder {
    cursor: pointer;
}

/* Parallax Effect for Shapes */
@media (min-width: 768px) {
    .shape {
        will-change: transform;
    }
}