/* SaaS marketing landing — ambient mesh & micro-interactions */

.saas-mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #ffffff;
}

.saas-mesh-bg::before,
.saas-mesh-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: saas-float 18s ease-in-out infinite alternate;
}

.saas-mesh-bg::before {
    width: 55vw;
    height: 55vw;
    max-width: 620px;
    max-height: 620px;
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, var(--saas-mesh-1) 0%, transparent 70%);
}

.saas-mesh-bg::after {
    width: 50vw;
    height: 50vw;
    max-width: 560px;
    max-height: 560px;
    bottom: 5%;
    left: -10%;
    background: radial-gradient(circle, var(--saas-mesh-2) 0%, transparent 70%);
    animation-delay: -6s;
}

.saas-mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.saas-mesh-blob--indigo {
    width: 380px;
    height: 380px;
    top: 42%;
    left: 28%;
    background: var(--saas-mesh-1);
    animation: saas-float 22s ease-in-out infinite alternate-reverse;
}

.saas-mesh-blob--emerald {
    width: 320px;
    height: 320px;
    top: 18%;
    left: 8%;
    background: var(--saas-mesh-2);
    animation: saas-float 16s ease-in-out infinite alternate;
    animation-delay: -4s;
}

@keyframes saas-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(24px, -18px) scale(1.06); }
}

.saas-page {
    position: relative;
    z-index: 1;
}

.saas-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.saas-header.is-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.92);
}

.saas-nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.25s ease;
    position: relative;
}

.saas-nav-link:hover {
    color: var(--saas-primary);
}

.saas-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--saas-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.saas-nav-link:hover::after {
    transform: scaleX(1);
}

.saas-cta {
    background: var(--saas-cta-gradient);
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(var(--saas-primary-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.saas-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--saas-primary-rgb), 0.45);
}

.saas-cta-secondary {
    background: #fff;
    color: var(--saas-primary);
    border: 2px solid rgba(var(--saas-primary-rgb), 0.2);
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.saas-cta-secondary:hover {
    border-color: var(--saas-primary);
    background: var(--saas-primary-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--saas-primary-rgb), 0.15);
}

.saas-feature-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.saas-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(var(--saas-primary-rgb), 0.08);
    border-color: rgba(var(--saas-primary-rgb), 0.15);
}

.saas-feature-icon {
    transition: transform 0.35s ease, background 0.35s ease;
}

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

/* ——— Hero: Nucleus Orbit (innovative layout) ——— */

.hero-nucleus {
    position: relative;
    padding: 2.5rem 0 3rem;
    overflow: visible;
}

.hero-nucleus__arena {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: clamp(520px, 72vh, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nucleus__rings {
    position: absolute;
    top: 56%;
    left: 50%;
    width: min(88vw, 680px);
    height: min(88vw, 680px);
    transform: translate(-50%, -46%);
    pointer-events: none;
    z-index: 0;
}

.hero-nucleus__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--saas-ring);
}

.hero-nucleus__ring--1 {
    animation: hero-ring-spin 48s linear infinite;
}

.hero-nucleus__ring--2 {
    inset: 8%;
    border-color: rgba(var(--saas-secondary-rgb), 0.25);
    animation: hero-ring-spin 36s linear infinite reverse;
}

.hero-nucleus__ring--3 {
    inset: 18%;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(99, 102, 241, 0.06);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 72%);
    animation: hero-ring-pulse 6s ease-in-out infinite;
}

@keyframes hero-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes hero-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.92; }
}

.hero-nucleus__path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-nucleus__path-dot {
    fill: var(--saas-primary);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.8));
}

.hero-orbit-sat {
    position: absolute;
    z-index: 5;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
    will-change: transform;
}

.hero-orbit-sat:hover {
    z-index: 15;
    transform: scale(1.06) translateY(-6px) !important;
}

.hero-orbit-sat--chart {
    top: 38%;
    left: 2%;
}

.hero-orbit-sat--invoice {
    top: 38%;
    right: 2%;
}

.hero-sat-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.06);
    padding: 0.85rem 1rem;
    min-width: 140px;
}

.hero-sat-card--wide {
    min-width: 200px;
    padding: 1rem;
}

.hero-nucleus__core {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 520px;
    padding: 2rem 1.25rem;
}

.hero-typo-zigzag {
    margin-bottom: 1.25rem;
    line-height: 1.05;
}

.hero-typo-line {
    display: block;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-typo-line--1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #94a3b8;
    text-align: right;
    margin-left: 15%;
}

.hero-typo-line--2 {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    background: var(--saas-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin: 0.15em 0;
}

.hero-typo-line--3 {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    color: #0f172a;
    text-align: left;
    margin-right: 12%;
}

.hero-typo-line--3 em {
    font-style: normal;
    color: var(--saas-primary);
}

.hero-nucleus__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--saas-primary-rgb), 0.1), rgba(var(--saas-secondary-rgb), 0.1));
    border: 1px solid rgba(var(--saas-primary-rgb), 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--saas-primary);
    margin-bottom: 1.25rem;
}

.hero-nucleus__sub {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.hero-dock {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.hero-promo {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 1.25rem 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-promo__quote {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: #64748b;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.hero-promo__quote span {
    background: var(--saas-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero-promo__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

.hero-promo__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--saas-primary-rgb), 0.12);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-promo__pill i {
    font-size: 0.85rem;
    color: var(--saas-primary);
}

.hero-promo__pill:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--saas-secondary-rgb), 0.4);
    color: #0f172a;
}

.hero-promo__pill:hover i {
    color: var(--saas-secondary);
}

@media (max-width: 767.98px) {
    .hero-nucleus__arena {
        min-height: auto;
        padding-bottom: 1rem;
    }

    .hero-nucleus__rings {
        top: 52%;
        width: min(100%, 360px);
        height: 360px;
        transform: translate(-50%, -44%);
        opacity: 0.7;
    }

    .hero-orbit-sat {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .hero-nucleus__orbit-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
        margin: 0 auto 1.5rem;
        position: relative;
        z-index: 5;
    }

    .hero-nucleus__desktop-orbit {
        display: none !important;
    }

    .hero-nucleus__arena {
        flex-direction: column;
    }

    .hero-typo-line--1,
    .hero-typo-line--3 {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .hero-nucleus__orbit-mobile {
        display: none;
    }
}

.hero-sat-card {
    animation: hero-sat-float 7s ease-in-out infinite;
}

.hero-orbit-sat--chart .hero-sat-card { animation-delay: -2s; }
.hero-orbit-sat--invoice .hero-sat-card { animation-delay: -4s; }
@keyframes hero-sat-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-orbit-sat:hover .hero-sat-card {
    animation-play-state: paused;
}

.saas-pipeline-step {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.saas-pipeline-step:hover {
    transform: translateY(-4px);
}

.saas-pipeline-connector {
    background: linear-gradient(90deg, rgba(var(--saas-primary-rgb), 0.35), rgba(var(--saas-secondary-rgb), 0.45));
    height: 3px;
    flex: 1;
    min-width: 40px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.saas-pipeline-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: saas-shimmer 2.5s ease-in-out infinite;
}

@keyframes saas-shimmer {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.saas-login-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06);
}

.saas-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #0f172a;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.saas-input:focus {
    outline: none;
    border-color: var(--saas-primary);
    box-shadow: 0 0 0 4px rgba(var(--saas-primary-rgb), 0.12);
}

.saas-input::placeholder {
    color: #94a3b8;
}

.saas-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--saas-secondary) 0%, var(--saas-primary) 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    padding: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(var(--saas-secondary-rgb), 0.35);
}

.saas-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--saas-primary-rgb), 0.4);
}
