/**
 * Pure Home Page Design (High-End & Professional - 2.0 Redesign)
 * Modern CSS with variables, grid, flexbox, glassmorphism, animations, and SaaS aesthetic.
 */

:root {
    --ep-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --ep-primary-color: #6366f1;
    --ep-primary-hover: #4f46e5;
    --ep-bg-dark: #09090b;
    /* Deep neutral black (Vercel-like) */
    --ep-bg-card: rgba(24, 24, 27, 0.4);
    /* Zinc 900 with opacity */
    --ep-text-main: #f8fafc;
    --ep-text-muted: #a1a1aa;
    /* Zinc 400 */
    --ep-border: rgba(255, 255, 255, 0.08);
    --ep-border-hover: rgba(255, 255, 255, 0.2);
    --ep-glow: rgba(99, 102, 241, 0.35);
    --ep-glow-alt: rgba(168, 85, 247, 0.35);
    --ep-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset / Base in scope of our wrapper */
.ep-home-wrapper {
    font-family: var(--ep-font);
    color: var(--ep-text-main);
    background-color: var(--ep-bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ep-home-wrapper *,
.ep-home-wrapper *::before,
.ep-home-wrapper *::after {
    box-sizing: border-box;
}

/* Background ambient glows & Grid */
.ep-bg-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.ep-home-wrapper::before,
.ep-home-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    animation: floatBlob 20s infinite alternate;
}

.ep-home-wrapper::before {
    top: -150px;
    left: calc(50% - 600px);
    background: var(--ep-glow);
}

.ep-home-wrapper::after {
    top: -150px;
    right: calc(50% - 600px);
    background: var(--ep-glow-alt);
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 80px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -40px) scale(0.9);
    }
}

/* Container */
.ep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Typography Shared */
.ep-gradient-text {
    background: var(--ep-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ep-section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ep-text-main);
}

.ep-section-subtitle {
    font-size: 1.125rem;
    color: var(--ep-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buttons */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    cursor: pointer;
}

.ep-btn-primary {
    background: var(--ep-text-main);
    color: #000 !important;
    /* contrast on primary */
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.1);
}

.ep-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px 0 rgba(255, 255, 255, 0.25);
    background: #ffffff;
}

.ep-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ep-text-main) !important;
    border: 1px solid var(--ep-border);
    backdrop-filter: blur(10px);
}

.ep-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ep-border-hover);
    transform: translateY(-2px) scale(1.02);
}

/* Sections */
.ep-section {
    padding: 6rem 0;
}

/* Hero Section */
.ep-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    text-align: center;
    padding-top: 10rem;
    position: relative;
}

.ep-hero-content {
    width: 100%;
}

.ep-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ep-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ep-text-muted);
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.ep-badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.ep-hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ep-text-main);
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.ep-hero-subtitle {
    font-size: 1.25rem;
    color: var(--ep-text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
}

.ep-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

/* High-End Mockup Visualization */
.ep-hero-mockup {
    margin-top: 5rem;
    position: relative;
    border-radius: 16px;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: fadeUp 1s ease-out 0.6s both;
    transform: perspective(1200px) rotateX(4deg);
    transform-origin: top center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.5s ease;
}

.ep-hero-mockup:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(-5px);
}

.ep-hero-mockup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--ep-bg-dark));
    pointer-events: none;
    z-index: 10;
}

.ep-mockup-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: relative;
}

.ep-mockup-dots {
    display: flex;
    gap: 8px;
}

.ep-mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3f3f46;
}

.ep-mockup-dots span:nth-child(1) {
    background: #ff5f56;
}

.ep-mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.ep-mockup-dots span:nth-child(3) {
    background: #27c93f;
}

.ep-mockup-url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--ep-text-muted);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.ep-mockup-body {
    display: flex;
    height: 450px;
    text-align: left;
}

.ep-mockup-sidebar {
    width: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ep-mockup-sb-item {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    width: 80%;
}

.ep-mockup-sb-item.active {
    background: rgba(99, 102, 241, 0.15);
    width: 90%;
}

.ep-mockup-content {
    flex: 1;
    padding: 2rem;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
}

.ep-mockup-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ep-mockup-nav-left {
    height: 20px;
    width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ep-mockup-nav-right span {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ep-primary-gradient);
    opacity: 0.8;
}

.ep-mockup-title {
    height: 32px;
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.ep-mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ep-mockup-card {
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.ep-mc-icon {
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.ep-mc-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.ep-mc-line.short {
    width: 60%;
}

.ep-mockup-chart {
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.ep-mc-chart-line {
    position: absolute;
    bottom: -20px;
    left: -10%;
    width: 120%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.2), transparent);
    border-top: 2px solid rgba(168, 85, 247, 0.8);
    border-radius: 50% 50% 0 0;
}

/* Features Grid */
.ep-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.ep-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.ep-feature-card {
    position: relative;
    background: var(--ep-bg-card);
    border: 1px solid var(--ep-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.ep-feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Glowing border effect on hover using inner shadow and border transition */
.ep-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.5s ease;
    pointer-events: none;
}

.ep-feature-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 30, 35, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.ep-feature-card:hover::before {
    background: var(--ep-primary-gradient);
}

.ep-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.ep-feature-card:hover .ep-feature-icon {
    transform: scale(1.05);
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.2);
}

.ep-feature-icon svg {
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
}

.ep-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.ep-feature-card p {
    color: var(--ep-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.ep-cta {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.ep-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ep-cta-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ep-cta-card .ep-section-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.ep-cta-card .ep-section-subtitle {
    margin-bottom: 2.5rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ep-hero {
        padding-top: 8rem;
    }

    .ep-hero-title {
        font-size: 2.5rem;
    }

    .ep-hero-actions {
        flex-direction: column;
    }

    .ep-section {
        padding: 4rem 0;
    }

    .ep-hero-mockup {
        margin-top: 3rem;
        border-right-width: 0;
        border-left-width: 0;
        border-radius: 0;
    }

    .ep-mockup-sidebar {
        display: none;
    }

    .ep-mockup-cards {
        grid-template-columns: 1fr;
    }

    .ep-cta-card {
        padding: 3rem 1.5rem;
    }
}