body {
    background: var(--background-color-home);
    margin: 0;
}

.home-parent {
    min-height: 100%;
    box-sizing: border-box;
    padding: clamp(16px, 2.5vw, 24px) clamp(20px, 4vw, 48px) 32px;
    background-color: #f4f7fb;
    background-image:
        radial-gradient(at 85% -10%, rgba(29, 119, 185, 0.07) 0%, transparent 50%),
        radial-gradient(at 0% 20%, rgba(241, 90, 34, 0.05) 0%, transparent 45%);
}

.home-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto clamp(20px, 3vw, 28px);
    padding: clamp(24px, 4vw, 40px) clamp(28px, 5vw, 56px);
    border-radius: 24px;
    overflow: hidden;
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow: 0 24px 48px -24px rgba(0, 28, 55, 0.55);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(at top right, black, transparent 75%);
    mask-image: radial-gradient(at top right, black, transparent 75%);
}

.home-hero-content {
    position: relative;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.home-hero-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nav-active-color);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
}

.home-welcome-text {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--white-color);
}

.home-welcome-mark {
    font-size: 0.4em;
    vertical-align: super;
    color: rgba(255, 255, 255, 0.6);
}

.home-welcome-accent {
    background: linear-gradient(92deg, #fdba74 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.home-section {
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color-medium);
}

.home-section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, rgba(0, 28, 55, 0.12), transparent);
}

.home-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.home-card {
    flex: 1 1 300px;
    /* (1200px container - 2 gaps) / 3, so a short last row matches the columns above */
    max-width: 386px;
    box-sizing: border-box;
    --accent: var(--brand-secondary);
    --accent-soft: rgba(29, 119, 185, 0.12);
    --accent-border: rgba(29, 119, 185, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border-radius: 18px;
    background: var(--white-color);
    border: 1px solid rgba(13, 38, 63, 0.08);
    box-shadow: 0 1px 2px rgba(13, 38, 63, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-card > * {
    position: relative;
}

.home-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: 0 16px 32px -16px rgba(13, 38, 63, 0.25);
}

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

.home-card--ingestion {
    --accent: #f15a22;
    --accent-soft: rgba(241, 90, 34, 0.12);
    --accent-border: rgba(241, 90, 34, 0.35);
}

.home-card--recsys {
    --accent: #1d77b9;
    --accent-soft: rgba(29, 119, 185, 0.12);
    --accent-border: rgba(29, 119, 185, 0.35);
}

.home-card--widgets {
    --accent: #7c3aed;
    --accent-soft: rgba(124, 58, 237, 0.12);
    --accent-border: rgba(124, 58, 237, 0.35);
}

.home-card--signal {
    --accent: #16a34a;
    --accent-soft: rgba(22, 163, 74, 0.12);
    --accent-border: rgba(22, 163, 74, 0.35);
}

.home-card--pullers {
    --accent: #0d9488;
    --accent-soft: rgba(13, 148, 136, 0.12);
    --accent-border: rgba(13, 148, 136, 0.35);
}

.icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.home-card:hover .icon-wrapper {
    background: var(--accent);
    color: var(--white-color);
    transform: scale(1.06);
}

.home-card-icon {
    width: 24px;
    height: 24px;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h4 {
    margin: 0 0 8px;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--brand-primary);
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-color-medium);
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero,
    .home-card {
        animation: home-rise 0.5s ease backwards;
    }

    .home-card:nth-child(1) { animation-delay: 0.08s; }
    .home-card:nth-child(2) { animation-delay: 0.14s; }
    .home-card:nth-child(3) { animation-delay: 0.2s; }
    .home-card:nth-child(4) { animation-delay: 0.26s; }
    .home-card:nth-child(5) { animation-delay: 0.32s; }
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}
