/* ---- HERO RESET & AMBIENT ---- */
.hero {
    padding: 9rem 2rem 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

/* Override home.css single glow → two-layer glow */
.hero::before {
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 900px;
    background: radial-gradient(ellipse 55% 45% at 42% 28%, rgba(59, 130, 246, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 45% 40% at 62% 68%, rgba(139, 92, 246, 0.09) 0%, transparent 100%);
    filter: blur(36px);
    opacity: 1;
    z-index: -1;
}

/* Purple right-edge accent */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.07) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

/* Dot-grid overlay, masked to fade toward bottom */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, black 30%, transparent 85%);
}

/* ---- BADGE ---- */
.hero-badge {
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(59, 130, 246, 0.06);
    animation: fadeUp 0.55s ease both;
}

/* ---- HERO H1 ---- */
.hero h1 {
    animation: fadeUp 0.55s 0.08s ease both;
}

.logo-flow {
    background: linear-gradient(128deg, #60a5fa 0%, #818cf8 48%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

@keyframes gradient-shift {
    0%   { background-position: 0 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.hero h1 .flow {
    background: linear-gradient(128deg, #60a5fa, #818cf8, #c084fc, #818cf8, #60a5fa);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease-in-out infinite;
}

/* ---- SUBTITLE ---- */
.hero .subtitle {
    animation: fadeUp 0.55s 0.15s ease both;
}

/* ---- PRODUCTS GRID ---- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 840px;
    margin: 3rem auto 0;
    width: 100%;
    animation: fadeUp 0.55s 0.22s ease both;
}

@media (max-width: 680px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- PRODUCT CARDS — gradient border trick ---- */
.product-card {
    position: relative;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
    /* Reset inline border from original markup */
    border: 1px solid transparent;
}

.product-card.card-lib {
    background: linear-gradient(#0d0d1b, #0d0d1b) padding-box,
    linear-gradient(140deg, rgba(59, 130, 246, 0.55) 0%, rgba(59, 130, 246, 0.06) 42%, rgba(20, 20, 50, 0.7) 100%) border-box;
}

.product-card.card-app {
    background: linear-gradient(#0d0d1b, #0d0d1b) padding-box,
    linear-gradient(140deg, rgba(167, 139, 250, 0.55) 0%, rgba(167, 139, 250, 0.06) 42%, rgba(20, 20, 50, 0.7) 100%) border-box;
}

.card-lib:hover {
    transform: translateY(-6px) scale(1.006);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(59, 130, 246, 0.18),
    0 0 100px rgba(59, 130, 246, 0.07);
}

.card-app:hover {
    transform: translateY(-6px) scale(1.006);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.18),
    0 0 100px rgba(167, 139, 250, 0.07);
}

/* Horizontal shine line at top edge */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    border-radius: 100%;
    pointer-events: none;
}

.card-lib::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.75), transparent);
}

.card-app::before {
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.75), transparent);
}

/* ---- ICON ---- */
.product-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-lib .product-icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #60a5fa;
}

.card-app .product-icon {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.22);
    color: #c084fc;
}

/* ---- PRODUCT NAME ---- */
.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-name code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.83em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    display: inline;
}

.card-lib .product-name code {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-app .product-name code {
    color: #c084fc;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

/* ---- PRODUCT DESC ---- */
.product-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ---- FEATURES ---- */
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.product-features li {
    font-size: 0.825rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.5;
}

.product-features li::before {
    content: '›';
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.3;
}

.card-lib .product-features li::before {
    color: #60a5fa;
}

.card-app .product-features li::before {
    color: #c084fc;
}

/* ---- CTA BUTTONS — ghost style matching accent ---- */
.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.cta-lib {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.cta-lib:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.55);
    gap: 0.75rem;
}

.cta-app {
    background: rgba(167, 139, 250, 0.1);
    color: #c084fc;
    border: 1px solid rgba(167, 139, 250, 0.28);
}

.cta-app:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.55);
    gap: 0.75rem;
}

/* ---- DIVIDER HINT ---- */
.divider-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.65;
    max-width: 520px;
    margin-top: 2.5rem;
    animation: fadeUp 0.55s 0.29s ease both;
}

.divider-text strong {
    color: var(--text-secondary);
}

/* ---- ENTRANCE ANIMATIONS ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 680px) {
    .hero {
        padding: 7rem 1.25rem 4rem;
    }
}
