/* Home — premium landing (Idesoft) */

.home-page {
    --home-accent: #2563eb;
    --home-accent-2: #7c3aed;
    --home-glow: rgba(37, 99, 235, 0.35);
    --home-surface: rgba(255, 255, 255, 0.72);
    --home-border: rgba(15, 23, 42, 0.08);
}

/* Hero */
.home-hero-pro {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(ellipse 100% 80% at 80% 0%, rgba(124, 58, 237, 0.14), transparent 55%),
        radial-gradient(ellipse 90% 70% at 10% 20%, rgba(37, 99, 235, 0.16), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, var(--color-bg) 100%);
}

.home-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: homeOrbDrift 18s ease-in-out infinite alternate;
}

.home-hero-orb-a {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -120px;
    inset-inline-end: -80px;
    background: rgba(37, 99, 235, 0.25);
}

.home-hero-orb-b {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
    bottom: -100px;
    inset-inline-start: -60px;
    background: rgba(124, 58, 237, 0.2);
    animation-delay: -6s;
}

.home-hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(var(--home-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--home-border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--home-accent);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
}

.home-hero-pro .home-hero-title {
    margin: 0 0 1rem;
    text-align: start;
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 45%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-pro .home-hero-lead {
    text-align: start;
    max-width: 34rem;
    margin: 0 0 1.75rem;
    font-size: 1.12rem;
    color: var(--color-muted);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.home-btn-glow {
    box-shadow: 0 8px 28px var(--home-glow);
}

.home-btn-glow:hover {
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-inline-end: 1.25rem;
    border-inline-end: 1px solid var(--home-border);
}

.home-stat:last-child {
    border: none;
    padding: 0;
}

.home-stat strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.home-stat span {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* Mock UI */
.home-mock {
    border-radius: 20px;
    border: 1px solid var(--home-border);
    background: var(--home-surface);
    backdrop-filter: blur(16px);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 60px rgba(37, 99, 235, 0.12);
    overflow: hidden;
}

.home-mock-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--home-border);
    background: rgba(255, 255, 255, 0.9);
}

.home-mock-dots {
    display: flex;
    gap: 5px;
}

.home-mock-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e2e8f0;
    font-style: normal;
}

.home-mock-dots i:nth-child(1) { background: #fca5a5; }
.home-mock-dots i:nth-child(2) { background: #fde047; }
.home-mock-dots i:nth-child(3) { background: #86efac; }

.home-mock-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.home-mock-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.home-mock-chat {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 220px;
}

.home-mock-msg {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    max-width: 92%;
}

.home-mock-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.home-mock-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--color-primary-soft);
    color: var(--home-accent);
}

.home-mock-msg-bot .home-mock-avatar {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
}

.home-mock-msg p {
    margin: 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    border-radius: 14px;
    background: #f1f5f9;
    color: var(--color-text);
}

.home-mock-msg-user p {
    background: var(--home-accent);
    color: #fff;
}

.home-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 1rem;
}

.home-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: homeTyping 1.2s ease-in-out infinite;
    font-style: normal;
}

.home-typing i:nth-child(2) { animation-delay: 0.15s; }
.home-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes homeTyping {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes homeOrbDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(24px, -16px) scale(1.06); }
}

/* Sections */
.home-section-pro {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.home-section-surface {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-block: 1px solid var(--color-border);
}

.home-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.home-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--home-accent);
}

.home-section-pro .home-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.home-section-lead {
    margin: 0;
    font-size: 1rem;
    color: var(--color-muted);
}

/* Bento */
.home-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-bento-card {
    position: relative;
    text-align: start;
    padding: 1.5rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.home-bento-num {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
}

.home-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
}

.home-bento-card.is-active {
    border-color: var(--home-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* How it works */
.home-how {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #0f172a;
    color: #e2e8f0;
}

.home-how .home-eyebrow {
    color: #93c5fd;
}

.home-how .home-section-title {
    color: #f8fafc;
}

.home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-step {
    display: flex;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.home-step-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.home-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #f1f5f9;
}

.home-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.55;
}

/* Industry grid */
.home-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-industry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem;
    font-family: inherit;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-industry-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--home-accent);
    background: var(--color-primary-soft);
    border-radius: 14px;
}

.home-industry strong {
    font-size: 0.95rem;
    text-align: center;
    color: var(--color-text);
}

.home-industry:hover,
.home-industry.is-active {
    border-color: var(--home-accent);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.home-hint-center {
    text-align: center;
    margin-top: 1.5rem;
}

/* Demos */
.home-demos {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.home-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-demo-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-demo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.home-demo-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--home-accent);
}

.home-demo-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.home-demo-card p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.home-demo-link {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--home-accent);
}

.home-services-link {
    text-align: center;
    margin-top: 2rem;
}

.home-services-link a {
    font-weight: 600;
    font-size: 1rem;
}

/* Final CTA */
.home-cta-pro {
    padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.home-cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(79, 70, 229, 0.92) 50%, rgba(124, 58, 237, 0.9) 100%);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.35);
}

.home-cta-copy h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #fff;
}

.home-cta-copy p {
    margin: 0;
    max-width: 28rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-cta-panel .site-btn-primary {
    background: #fff;
    color: var(--home-accent);
}

.home-cta-panel .site-btn-primary:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

.home-cta-panel .site-btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.home-cta-panel .site-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Reveal */
.home-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Modal polish */
.home-l2-dialog {
    border-radius: 20px;
    animation: homeL2In 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeL2In {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero-pro .home-hero-title,
    .home-hero-pro .home-hero-lead {
        text-align: center;
        margin-inline: auto;
    }

    .home-hero-actions,
    .home-hero-stats {
        justify-content: center;
    }

    .home-stat {
        border: none;
        padding: 0;
        align-items: center;
    }

    .home-bento,
    .home-steps,
    .home-industry-grid,
    .home-demo-grid {
        grid-template-columns: 1fr;
    }

    .home-cta-panel {
        flex-direction: column;
        text-align: center;
    }

    .home-cta-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .home-hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .home-stat {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--home-border);
    }

    .home-stat:last-child {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-orb,
    .home-typing i,
    .home-reveal,
    .home-bento-card,
    .home-industry,
    .home-demo-card,
    .home-btn-glow {
        animation: none !important;
        transition: none !important;
    }

    .home-reveal {
        opacity: 1;
        transform: none;
    }
}

.site-btn,
.home-card,
.home-industry {
    min-height: 44px;
}
