/* =======================================================
   Home page — Hero + Feature grid
   ======================================================= */

.main-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.home-page-section {
    width: min(1200px, 90%);
    padding: clamp(2rem, 6vw, 4rem) 0 3rem;
    margin: 0 auto;
}

/* ------ HERO ------ */
.hero {
    position: relative;
    text-align: center;
    margin-bottom: clamp(3rem, 7vw, 5rem);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--fg-color-second);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 12px #22d3ee;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title .line-1 {
    display: block;
    color: var(--fg-color-first);
}

.hero-title .line-2 {
    display: block;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--fg-color-second);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(167, 139, 250, 0.8);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--fg-color-first);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-glow);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn .arrow {
    transition: transform 0.35s var(--ease-out);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* --- Hero visual orb --- */
.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        transform: translate(-55%, -48%) scale(1.1);
    }
    66% {
        transform: translate(-45%, -52%) scale(0.95);
    }
}

/* ------ FEATURES GRID ------ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    animation: fadeInUp 0.8s var(--ease-out) both;
    cursor: default;
}

.feature-card:nth-child(1) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.7s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.8s;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(139, 92, 246, 0.15),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-medium);
    margin-bottom: 1rem;
    transition: transform 0.4s var(--ease-bounce);
}

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-glow);
    fill: none;
    stroke-width: 2;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg-color-first);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--fg-color-second);
}

/* ------ WELCOME TEXT CARD ------ */
.welcome-card {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

.welcome-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

.welcome-card p {
    margin-bottom: 1rem;
    font-size: var(--small-text);
    line-height: 1.7;
    color: var(--fg-color-second);
}

.welcome-card p:first-of-type {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--fg-color-first);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.welcome-card p:last-child {
    margin-bottom: 0;
}

.welcome-card .signature {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fg-color-muted);
    letter-spacing: 0.03em;
}

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

/* ------ RESPONSIVE ------ */
@media screen and (max-width: 1150px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero-orb {
        width: 320px;
        height: 320px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}
