/* ============================================================
   AI Development Landing Page
   ============================================================ */

.ai-page {
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(100deg, #9945FF, #1FCFF1 45%, #FB5130);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.15rem 2.75rem;
    border-radius: 1.875rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-wrap: nowrap;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(100deg, #9945FF, #FB5130);
    background-size: 180% auto;
    box-shadow: 0 12px 40px -12px rgba(153, 69, 255, 0.7);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: 0 18px 50px -12px rgba(251, 81, 48, 0.7);
}

.btn-ghost {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 207, 241, 0.6);
    box-shadow: 0 12px 40px -16px rgba(31, 207, 241, 0.6);
}

/* ---------- Hero ---------- */
.ai-hero {
    position: relative;
    text-align: center;
    padding: 7rem 0 6rem;
    overflow: hidden;
}

.ai-hero-bg {
    position: absolute;
    inset: -20% 0;
    z-index: -1;
    pointer-events: none;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform;
}

.ai-orb-1 { width: 500px; height: 500px; background: #9945FF; top: -80px;  left: 5%;  animation: orbFloat 15s ease-in-out infinite; }
.ai-orb-2 { width: 440px; height: 440px; background: #1FCFF1; top: 60px;   right: 4%; animation: orbFloat 19s ease-in-out infinite reverse; }
.ai-orb-3 { width: 400px; height: 400px; background: #FB5130; bottom: -120px; left: 38%; animation: orbFloat 17s ease-in-out infinite; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -40px) scale(1.08); }
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    color: var(--second-text-color);
}

.ai-badge .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #19FB9B;
    box-shadow: 0 0 14px #19FB9B;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

.ai-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 auto 1.5rem;
    max-width: 18ch;
}

.ai-hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--second-text-color);
    max-width: 720px;
    margin: 0 auto 2.75rem;
}

.ai-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-hero-visual {
    margin: 4rem auto 0;
    max-width: 320px;
}

.ai-hero-visual img {
    width: 100%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(153, 69, 255, 0.35));
}

/* ---------- Section shell ---------- */
.ai-section {
    padding: 5.5rem 0;
    position: relative;
}

.ai-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.ai-section-head .eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1FCFF1;
    margin-bottom: 1rem;
}

.ai-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.ai-section-head p {
    font-size: 1.2rem;
    color: var(--second-text-color);
}

/* ---------- Capability cards ---------- */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ai-card {
    position: relative;
    padding: 2.75rem 2.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ai-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945FF, #1FCFF1, #FB5130);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ai-card:hover {
    transform: translateY(-8px);
    border-color: rgba(153, 69, 255, 0.45);
    box-shadow: 0 25px 70px -25px rgba(153, 69, 255, 0.55);
}

.ai-card:hover::after { opacity: 1; }

.ai-card .icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.28), rgba(31, 207, 241, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-card .icon-wrap img {
    width: 32px;
    height: 32px;
}

.ai-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
}

.ai-card p {
    color: var(--second-text-color);
    font-size: 1.05rem;
}

/* ---------- Process steps ---------- */
.ai-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.ai-step {
    position: relative;
    padding: 2.25rem 1.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #9945FF, #1FCFF1);
    box-shadow: 0 10px 30px -10px rgba(31, 207, 241, 0.6);
}

.ai-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.ai-step p {
    color: var(--second-text-color);
    font-size: 1rem;
}

/* ---------- Benefits split ---------- */
.ai-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-benefit {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.ai-benefit .check {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 251, 155, 0.12);
    border: 1px solid rgba(25, 251, 155, 0.35);
    color: #19FB9B;
    font-weight: 700;
}

.ai-benefit h4 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.ai-benefit p {
    color: var(--second-text-color);
    font-size: 1.05rem;
}

.ai-benefits-visual {
    position: relative;
    aspect-ratio: 1;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(153, 69, 255, 0.35), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(251, 81, 48, 0.3), transparent 55%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-benefits-visual img {
    width: 70%;
    height: auto;
    animation: heroFloat 7s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(31, 207, 241, 0.3));
}

/* ---------- Tech chips ---------- */
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    max-width: 900px;
    margin: 0 auto;
}

.ai-chip {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--second-text-color);
    font-size: 1.05rem;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ai-chip:hover {
    color: #fff;
    border-color: rgba(153, 69, 255, 0.5);
    transform: translateY(-3px);
}

/* ---------- Final CTA ---------- */
.ai-final-cta {
    position: relative;
    text-align: center;
    padding: 5rem 3rem;
    border-radius: 2.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(153, 69, 255, 0.35), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(31, 207, 241, 0.3), transparent 50%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-final-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.ai-final-cta p {
    font-size: 1.25rem;
    color: var(--second-text-color);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1100px) {
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-steps { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 820px) {
    .ai-benefits { grid-template-columns: 1fr; gap: 2.5rem; }
    .ai-benefits-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .ai-final-cta { padding: 3.5rem 1.5rem; }
}

@media screen and (max-width: 620px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-steps { grid-template-columns: 1fr; }
    .ai-hero { padding: 4rem 0 3.5rem; }
    .ai-section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-orb,
    .ai-hero-visual img,
    .ai-benefits-visual img,
    .ai-badge .dot { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
