:root{
  
  --fs-xxxl: clamp(2.4rem, 4vw, 3rem);      
  --fs-xxl: clamp(2rem, 3.2vw, 2.5rem);      
  --fs-xl: 1.9rem;                        

 
  --fs-lg: 1.25rem;                        
  --fs-1_2: 1.2rem;  

 
  --fs-md: 1.1rem;                          
  --fs-base: 1.5rem;                           
  --fs-sm: 1.2rem;                          
  --fs-xs: 0.82rem;                          
  --fs-tiny: 0.75rem;                        

 
  --fs-1_25: 1.25rem;             
  --fs-0_96: 0.96rem;             
  --fs-0_95: 0.95rem;
  --fs-0_88: 0.88rem;
  --fs-2_1: 2.1rem;               
  --fs-1_9: 1.9rem;              

 
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-normal: 400;

 
  --lh-hero-title: 1.1;
  --lh-title: 1.2;
  --lh-normal: 1.65;

}

.ai-hero {
    padding: 4rem 0 5rem;
    background: radial-gradient(circle at top left, #eef5ff, #ffffff 60%);
}

.ai-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-hero__content {
    max-width: 540px;
}

.ai-hero__title {
 font-size: clamp(3rem, 6vw, 4.2rem) !important;
    font-weight: 800;
    line-height: 1.15;
}

.ai-hero__subtitle {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.ai-hero-img {
    position: relative;
}

.ai-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    animation: float 6s infinite ease-in-out;
}

.floating-chat {
    position: absolute;
    top: 15%;
    right: -20px;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: float-delayed 6s infinite ease-in-out;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.floating-chat i {
    color: var(--accent);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes float-delayed {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}


.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ai-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: .3s ease;
}

.ai-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.ai-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-strong);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    font-size: var(--fs-xxl);
    color: var(--accent);
}

.ai-card-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: .6rem;
}
.ai-card p{
    font-size: var(--fs-sm);
}


.ai-chat-section {
    padding: 5rem 0;
    background: #0f172a;
    color: white;
    border-radius: 30px;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.chat-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}


.chat-content h2 {
    font-size: var(--fs-xxl);
    line-height: var(--lh-tight);
    margin-bottom: 1.2rem;
    font-weight: var(--fw-extrabold);
}

.chat-content p {
    font-size: var(--fs-lg);
    opacity: 0.85;
    line-height: var(--lh-normal);
}

.chat-list {
    margin-top: 1.8rem;
    font-size: var(--fs-lg);
}

.chat-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.chat-list i {
    color: #4ade80;
}


.chat-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 55px rgba(0,0,0,0.25);
    width: 100%;
}


.bubble {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    max-width: 100%;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
}

.bubble.user {
    background: #f1f5f9;
    color: #475569;
}

.bubble.ai {
    background: #e0f2fe;
    color: #0369a1;
}

.bubble.highlight {
    background: #d1fae5;
    color: #065f46;
}


@media (max-width: 960px){
    .chat-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .chat-box {
        padding: 1.5rem;
    }
}




.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width:960px) {
    .ai-hero__inner,
    .chat-wrapper {
        grid-template-columns: 1fr;
    }

    .ai-hero-img {
        margin-top: 2rem;
    }

    .ai-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .ai-feature-grid {
        grid-template-columns: 1fr;
    }
}
