/* Home page: "Ask Tima" section before the footer */
.at { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4.5rem, 9vw, 7.5rem) 0; color: #fff; background: #0B1220; }
.at-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.at-glow { position: absolute; border-radius: 50%; opacity: .55; }
.at-glow-a { width: 720px; height: 720px; top: -280px; left: -220px; background: radial-gradient(closest-side, rgba(30, 143, 208, .45), transparent); }
.at-glow-b { width: 620px; height: 620px; bottom: -300px; right: -120px; background: radial-gradient(closest-side, rgba(155, 199, 59, .28), transparent); }
.at-glow-c { width: 420px; height: 420px; top: 30%; right: 32%; background: radial-gradient(closest-side, rgba(244, 162, 30, .18), transparent); }
.at-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%); }
.at-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* Copy */
.at-copy { position: relative; }
.at-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8FD7FF; }
.at-kicker i { width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4FCFFF, #9BC73B); }
.at h2 { margin: 1rem 0 1.1rem; font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; }
.at h2 b { font-weight: inherit; white-space: nowrap; }
.at h2 span { display: block; background: linear-gradient(90deg, #4FCFFF, #9BC73B 55%, #FDC943); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-copy > p { max-width: 520px; margin: 0 0 1.6rem; font-size: 1.05rem; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.at-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.at-points li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.at-points i { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; color: #0B1220; background: #4FCFFF; }
.at-points li:nth-child(2) i { background: #9BC73B; }
.at-points li:nth-child(3) i { background: #FDC943; }
.at-mascot { display: block; width: 104px; height: 114px; margin-top: 2rem; filter: drop-shadow(0 18px 28px rgba(79, 207, 255, .25)); }

/* Chat card */
.at-card { position: relative; overflow: hidden; padding: 1.6rem; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
.at-card-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 0%), rgba(79, 207, 255, .12), transparent 45%); transition: opacity .3s; }
.at-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.at-card-avatar { width: 58px; height: 62px; flex-shrink: 0; }
.at-card-head strong { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-size: 1.25rem; }
.at-card-head em { padding: .1rem .45rem; border-radius: 7px; font-style: normal; font-size: .68rem; font-weight: 800; color: #0B1220; background: linear-gradient(135deg, #4FCFFF, #9BC73B); }
.at-card-head small { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: rgba(255, 255, 255, .6); }
.at-live { width: 8px; height: 8px; border-radius: 50%; background: #9BC73B; box-shadow: 0 0 0 0 rgba(155, 199, 59, .6); animation: atLive 2s infinite; }
@keyframes atLive { 70%, 100% { box-shadow: 0 0 0 8px rgba(155, 199, 59, 0); } }
.at-bubble { min-height: 96px; margin-bottom: 1rem; padding: 1rem 1.15rem; border-radius: 6px 20px 20px 20px; font-size: .98rem; line-height: 1.6; color: #0B1220; background: #fff; }
.at-typing { display: inline-flex; gap: 5px; padding: .4rem 0; }
.at-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: atDot 1.2s infinite; }
.at-typing i:nth-child(2) { animation-delay: .15s; } .at-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes atDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.at-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #1E75B0; animation: atBlink 1s steps(1) infinite; }
@keyframes atBlink { 50% { opacity: 0; } }
.at-form { display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .25s, box-shadow .25s; }
.at-form:focus-within { border-color: rgba(79, 207, 255, .6); box-shadow: 0 0 0 4px rgba(79, 207, 255, .12); }
.at-form input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: #fff; }
.at-form input::placeholder { color: rgba(255, 255, 255, .45); }
.at-form button { width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); box-shadow: 0 12px 24px -12px rgba(30, 143, 208, .9); cursor: pointer; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.at-form button:hover { transform: translateY(-2px) scale(1.04); }
.at-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.at-chips button { padding: .6rem .95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font: inherit; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .9); cursor: pointer; transition: background .25s, border-color .25s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.at-chips button:hover { background: rgba(79, 207, 255, .12); border-color: rgba(79, 207, 255, .5); transform: translateY(-2px); }

/* Entrance animations */
[data-at-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.at.is-in [data-at-reveal] { opacity: 1; transform: none; }
.at-chips button { opacity: 0; transform: translateY(10px); }
.at.is-chips .at-chips button { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1), background .25s, border-color .25s; transition-delay: calc(var(--i) * .08s), calc(var(--i) * .08s), 0s, 0s; }
.at.is-chips .at-chips button:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .at-wrap { grid-template-columns: 1fr; }
    .at-mascot { display: none; }
}
@media (max-width: 560px) {
    .at h2 b { white-space: normal; }
    .at-card { padding: 1.15rem; border-radius: 22px; }
    .at-chips button { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
    [data-at-reveal], .at-chips button { opacity: 1 !important; transform: none !important; transition: none !important; }
    .at-live, .at-typing i, .at-caret { animation: none; }
}
/* Thin brand line so it reads as its own section between the call-to-action band and the footer */
.at::before { content: ''; position: absolute; top: 0; left: 50%; width: min(1100px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(79, 207, 255, .55), rgba(155, 199, 59, .55), rgba(253, 201, 67, .45), transparent); }
