/* hanun.ai - Glassmorphism Frosted SaaS */
/* Palette: #e0e7ff, #ddd6fe, #ede9fe, rgba(255,255,255,0.3), #1e1b4b, #7c3aed, #6b7280, #ffffff */

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 50%, #ede9fe 100%);
    background-attachment: fixed;
    color: #1e1b4b;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Neural network canvas background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
}

/* Floating data particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: floatParticle 8s ease-in-out infinite;
}

.p1 { top: 12%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.p2 { top: 25%; right: 15%; animation-delay: 1s; animation-duration: 9s; }
.p3 { top: 45%; left: 30%; animation-delay: 2s; animation-duration: 6s; }
.p4 { top: 60%; right: 25%; animation-delay: 0.5s; animation-duration: 8s; }
.p5 { top: 75%; left: 18%; animation-delay: 3s; animation-duration: 10s; }
.p6 { top: 35%; right: 8%; animation-delay: 1.5s; animation-duration: 7.5s; }
.p7 { top: 85%; left: 55%; animation-delay: 2.5s; animation-duration: 9.5s; }
.p8 { top: 15%; right: 40%; animation-delay: 4s; animation-duration: 6.5s; }

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(15px, -20px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, -35px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(20px, -15px) scale(1.1);
        opacity: 0.7;
    }
}

/* Glassmorphism panel base */
.glass-panel {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-panel {
    text-align: center;
    min-width: 340px;
    padding: 3.5rem 4rem;
    animation: panelAppear 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes panelAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: #1e1b4b;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tagline {
    font-size: 1rem;
    color: #7c3aed;
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
    animation: taglineFade 1.5s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes taglineFade {
    to {
        opacity: 1;
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

/* Connecting line between cards */
.features-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.2), transparent);
    z-index: 0;
}

.features-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Gradient border glass card */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    z-index: 1;
}

/* Gradient border using pseudo-element */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #7c3aed);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

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

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.85rem;
    color: #4338ca;
    opacity: 0.7;
    line-height: 1.6;
}

/* ===== METRICS SECTION ===== */
.metrics {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.metrics-panel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
    padding: 3rem 2rem;
}

.metric {
    min-width: 100px;
}

.metric-val {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 2rem;
    color: #7c3aed;
    display: block;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
    display: block;
}

/* ===== UNITE / CLOSING SECTION ===== */
.unite {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.04));
}

.unite-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.integration-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.integration-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

.close-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #7c3aed;
    margin-bottom: 0.6rem;
}

.close-brand {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    letter-spacing: 0.05em;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .glass-card {
        max-width: 100%;
        min-width: auto;
    }

    .features-connector {
        display: none;
    }

    .hero-panel {
        min-width: auto;
        padding: 2.5rem 2rem;
    }

    .metrics-panel {
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .metric-val {
        font-size: 1.5rem;
    }

    .unite-icons {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 2.2rem;
    }

    .metrics-panel {
        flex-direction: column;
        align-items: center;
    }
}
