/* ============================================================
   AI SOLUTIONS PAGE — ai.css
   ============================================================ */

/* ── Hero ── */
.ai-hero {
    background: var(--ink);
    padding: 8rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.ai-hero-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 700px;
    background: radial-gradient(ellipse, rgba(34,211,238,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.ai-hero-inner { position: relative; z-index: 1; }
.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34,211,238,0.15);
    border: 1px solid rgba(34,211,238,0.3);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.ai-hero-title {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.ai-hero-title .ai-blue { color: var(--blue); }
.ai-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.ai-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.btn-ai-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff;
    border-radius: 12px;
    padding: 0.9rem 1.85rem;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s var(--spring);
}
.btn-ai-solid:hover { background: var(--blue-hov); transform: translateY(-2px); color: #fff; }
.btn-ai-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.9rem 1.85rem;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-ai-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; transform: translateY(-2px); }

/* Hero stat pills */
.ai-hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.ai-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.ai-hero-pill i { color: var(--blue); }

/* ── Shared section ── */
.ai-section { padding: 7rem 1.5rem; background: var(--white); }
.ai-section-alt { background: var(--surface); }
.ai-section-dark { background: #0a0e1a; }
.ai-section-hd { text-align: center; margin-bottom: 4rem; }
.ai-eyebrow { color: rgba(255,255,255,0.4); }
.ai-section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.ai-section-title-dark { color: #fff; }
.ai-section-sub { font-size: 1rem; color: var(--gray); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.ai-section-sub-dark { color: rgba(255,255,255,0.45); }

/* ── Use Cases ── */
.ai-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.ai-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid var(--border-lt);
    border-radius: 100px;
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}
.ai-tab-btn.active, .ai-tab-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.ai-tab-btn i { font-size: 0.8rem; }
.ai-tab-panel { display: none; }
.ai-tab-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ai-use-card {
    background: var(--white);
    border: 1.5px solid var(--border-lt);
    border-radius: 20px;
    padding: 1.75rem;
    transition: box-shadow 0.3s, transform 0.35s var(--spring), border-color 0.3s;
}
.ai-use-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: rgba(34,211,238,0.2); }
.ai-use-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}
.ai-use-card h4 { font-size: 0.975rem; font-weight: 700; color: var(--ink); margin-bottom: 0.55rem; letter-spacing: -0.02em; }
.ai-use-card p { font-size: 0.84rem; color: var(--gray); line-height: 1.65; margin: 0; }

/* ── How We Use AI in Dev ── */
.ai-dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.ai-dev-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: background 0.3s, border-color 0.3s;
}
.ai-dev-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(34,211,238,0.3); }
.ai-dev-icon {
    width: 46px; height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: rgba(34,211,238,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 1rem;
}
.ai-dev-body h4 { font-size: 0.975rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.ai-dev-body p { font-size: 0.84rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin: 0; }

/* ── Demo Tools ── */
.ai-demos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Chat demo */
.ai-chat-demo {
    background: var(--white);
    border: 1.5px solid var(--border-lt);
    border-radius: 24px;
    overflow: hidden;
}
.ai-chat-header {
    background: var(--ink);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ai-chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.ai-chat-header-text strong { display: block; font-size: 0.875rem; color: #fff; font-weight: 600; }
.ai-chat-header-text span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.ai-chat-status { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: auto; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.ai-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--surface);
}
.ai-msg {
    max-width: 82%;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.55;
}
.ai-msg-bot {
    background: var(--white);
    border: 1px solid var(--border-lt);
    color: var(--ink);
    align-self: flex-start;
    border-radius: 4px 16px 16px 16px;
}
.ai-msg-user {
    background: var(--blue);
    color: #fff;
    align-self: flex-end;
    border-radius: 16px 4px 16px 16px;
}
.ai-typing {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 0.7rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: 4px 16px 16px 16px;
    width: fit-content;
}
.ai-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray);
    animation: typing-dot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.ai-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-lt);
    background: var(--surface);
}
.ai-chip-btn {
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ai-chip-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ai-chat-input-row {
    display: flex;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border-lt);
}
.ai-chat-input {
    flex: 1;
    border: 1.5px solid var(--border-lt);
    border-radius: 100px;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    background: var(--white);
    transition: border-color 0.2s;
}
.ai-chat-input:focus { border-color: var(--blue); }
.ai-chat-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    color: #fff;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.ai-chat-send:hover { background: var(--blue-hov); }

/* Content generator */
.ai-gen-demo {
    background: var(--white);
    border: 1.5px solid var(--border-lt);
    border-radius: 24px;
    overflow: hidden;
}
.ai-gen-header {
    background: var(--ink);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ai-gen-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(34,211,238,0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 0.9rem;
}
.ai-gen-header strong { font-size: 0.875rem; color: #fff; font-weight: 600; }
.ai-gen-header span { font-size: 0.72rem; color: rgba(255,255,255,0.4); display: block; }
.ai-gen-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ai-gen-label { font-size: 0.75rem; font-weight: 600; color: var(--gray); letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.ai-gen-select, .ai-gen-input {
    width: 100%;
    border: 1.5px solid var(--border-lt);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s;
}
.ai-gen-select:focus, .ai-gen-input:focus { border-color: var(--blue); }
.ai-gen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s var(--spring);
}
.ai-gen-btn:hover { background: var(--blue-hov); transform: translateY(-1px); }
.ai-gen-output {
    background: var(--surface);
    border: 1.5px solid var(--border-lt);
    border-radius: 10px;
    padding: 1rem;
    min-height: 120px;
    font-size: 0.84rem;
    color: var(--gray);
    line-height: 1.65;
    white-space: pre-wrap;
    display: none;
}
.ai-gen-output.active { display: block; color: var(--ink); }
.ai-gen-copy {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border-lt);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    font-family: inherit;
    align-self: flex-start;
    transition: all 0.2s;
}
.ai-gen-copy.visible { display: inline-flex; }
.ai-gen-copy:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── AI in Services ── */
.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.ai-svc-embed {
    background: var(--white);
    border: 1.5px solid var(--border-lt);
    border-radius: 20px;
    padding: 1.75rem;
    transition: box-shadow 0.3s, transform 0.35s var(--spring);
}
.ai-svc-embed:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.ai-svc-embed-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-lt);
}
.ai-svc-embed-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(34,211,238,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 1rem;
    flex-shrink: 0;
}
.ai-svc-embed-top strong { font-size: 0.925rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.ai-features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ai-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.5;
}
.ai-features-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .ai-tab-panel.active { grid-template-columns: repeat(2, 1fr); }
    .ai-dev-grid { grid-template-columns: 1fr; }
    .ai-demos-grid { grid-template-columns: 1fr; }
    .ai-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ai-hero { padding: 6rem 1.25rem 4rem; }
    .ai-section { padding: 5rem 1.25rem; }
    .ai-tab-panel.active { grid-template-columns: 1fr; }
    .ai-services-grid { grid-template-columns: 1fr; }
    .ai-demos-grid { grid-template-columns: 1fr; }
}
