html { scroll-padding-top: 90px; }

.hero { padding: 76px 0 62px; }
.hero-content { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(30px, 5vw, 72px); }
.hero-title { font-size: clamp(42px, 4.75vw, 65px); letter-spacing: -.055em; }
.hero .gradient-text { display: block; background-image: linear-gradient(105deg, #6441b3, #a7470d); }
.hero-subtitle { margin-bottom: 28px; }
.hero .btn-primary, .section-install .btn-primary { background: linear-gradient(135deg, #694fba, #5d469f); }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px;
    border: 1px solid #ded0fa; border-radius: 999px; background: #f5edff;
    color: #573795; font-size: 12px; font-weight: 700;
}
.hero-eyebrow span, .demo-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #855ac6; display: inline-block; }
.section-install { display: flex; justify-content: center; margin: 30px 0 42px; }
.pricing-footnote { margin: 16px auto 0; max-width: 36rem; text-align: center; color: var(--gray-600); font-size: 13px; font-weight: 400; }

.product-demo { width: 100%; max-width: 620px; min-width: 0; margin: 0 auto; text-align: left; }
.demo-window {
    --demo-cycle: 10.8s;
    overflow: hidden; border-radius: 19px; border: 1px solid #3c3451;
    background: radial-gradient(ellipse at 62% 0%, #2a2040, #171322 60%);
    color: #f5efff; box-shadow: 0 24px 56px #2e1c5b36, 0 4px 12px #2e1c5b24;
    font-size: 13px; line-height: 1.5;
}
.demo-header { display: flex; align-items: center; gap: 11px; padding: 13px 19px; background: #ffffff08; border-bottom: 1px solid #ffffff1c; }
.demo-header strong { display: block; font-size: 14px; }
.demo-header small { display: block; color: #bcb2ce; font-size: 11px; }
.demo-channel-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid #aa88e74a; border-radius: 10px; background: #382957; color: #dfc7ff; font-size: 20px; }
.demo-header-mark { display: flex; gap: 4px; margin-left: auto; }
.demo-header-mark i { width: 4px; height: 4px; border-radius: 50%; background: #a296b6; }
.demo-conversation { position: relative; padding: 0 19px 12px; }
.demo-divider { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #bcb2ce; font-size: 10px; }
.demo-divider::before, .demo-divider::after { content: ""; height: 1px; flex: 1; background: #ffffff1a; }
.demo-message { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.demo-user { margin-bottom: 12px; }
.demo-avatar { width: 32px; height: 32px; border-radius: 9px; }
.demo-user-avatar { display: grid; place-items: center; background: linear-gradient(135deg, #5b4779, #453357); color: #f5d6ff; font-weight: 800; }
.demo-bot-avatar { object-fit: contain; padding: 3px; background: #ffdfc9; }
.demo-name { display: flex; gap: 7px; align-items: center; font-weight: 700; }
.demo-name time { color: #bcb2ce; font-size: 10px; font-weight: 400; white-space: nowrap; }
.demo-mention { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 5px; background: #433263; color: #ecd9ff; font-weight: 700; }
.demo-app-badge, .demo-gif { padding: 1px 5px; border-radius: 4px; background: #352849; color: #e9d7fb; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.demo-greeting { margin: 2px 0 8px; color: #f5efff; }
.demo-art { position: relative; width: 100%; aspect-ratio: 7 / 4; overflow: hidden; border-radius: 10px; background: #28223a; }
.demo-art img, .demo-art video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-art video { opacity: 0; visibility: hidden; }
.demo-window.has-motion .demo-art video { visibility: visible; }
.demo-gif { position: absolute; bottom: 8px; right: 8px; padding: 3px 7px; background: #211732; color: #f5efff; }
.demo-style { margin-top: 6px; color: #cfc3dd; font-size: 11px; }
.demo-composer { display: flex; align-items: center; position: relative; margin: 0 19px 16px; min-height: 41px; padding: 6px 9px; border: 1px solid #ffffff25; border-radius: 9px; background: #ffffff06; color: #bcb2ce; font-size: 12px; }
.demo-send { margin-left: auto; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; color: #bcb2ce; }
.demo-input { position: absolute; left: 9px; display: flex; align-items: center; opacity: 0; color: #e9d7fb; font: 700 12px/1.5 ui-monospace, monospace; }
.demo-input span { width: 0; overflow: hidden; white-space: nowrap; }
.demo-input::after { content: ""; width: 1px; height: 14px; background: #dfc3ff; }
.demo-typing { position: absolute; display: flex; align-items: center; gap: 4px; opacity: 0; left: 61px; top: 96px; color: #cfc3dd; font-size: 11px; }
.demo-typing i { height: 4px; width: 4px; border-radius: 50%; background: #d5b3fd; }
.demo-typing span { margin-left: 4px; }
.demo-caption { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 3px 0; color: #534568; font-size: 12px; font-weight: 600; }
.demo-live-dot { margin-right: 5px; }
.media-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 11px; border: 1px solid #d3c5e8; border-radius: 8px; background: #fff; color: #553985; font: inherit; font-size: 12px; line-height: 1.3; font-weight: 700; cursor: pointer; }
.media-toggle[hidden] { display: none; }
.media-toggle:hover { background: #f4edff; }
.media-toggle:focus-visible { outline: 3px solid #694fba; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* One clock keeps the composer, replies, and video reveal synchronized. */
.demo-window.is-sequenced .demo-placeholder { animation: demo-placeholder var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-input { animation: demo-input var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-input span { animation: demo-type var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-send { animation: demo-send var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-user { animation: demo-user var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-typing { animation: demo-thinking var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-typing i { animation: demo-dots .72s ease-in-out infinite alternate; }
.demo-window.is-sequenced .demo-typing i:nth-child(2) { animation-delay: .13s; }
.demo-window.is-sequenced .demo-typing i:nth-child(3) { animation-delay: .26s; }
.demo-window.is-sequenced .demo-reply { animation: demo-reply var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-art { animation: demo-reveal var(--demo-cycle) infinite; }
.demo-window.is-sequenced .demo-art video { animation: demo-motion var(--demo-cycle) infinite; }
.demo-window.is-sequenced.is-paused * { animation-play-state: paused !important; }
@keyframes demo-placeholder { 0%, 4%, 19%, 100% { opacity: 1; } 5%, 18% { opacity: 0; } }
@keyframes demo-input { 0%, 4%, 19%, 100% { opacity: 0; } 5%, 18% { opacity: 1; } }
@keyframes demo-type { 0%, 5% { width: 0; animation-timing-function: steps(7, end); } 14.5%, 100% { width: 7ch; } }
@keyframes demo-send { 0%, 13%, 20%, 100% { background: transparent; } 16%, 18% { background: #7253b0; color: white; } }
@keyframes demo-user { 0%, 18%, 100% { opacity: 0; transform: translateY(5px); } 22%, 94% { opacity: 1; transform: translateY(0); } }
@keyframes demo-thinking { 0%, 23%, 33%, 100% { opacity: 0; } 26%, 31% { opacity: 1; } }
@keyframes demo-dots { to { transform: translateY(-3px); opacity: .5; } }
@keyframes demo-reply { 0%, 33%, 100% { opacity: 0; transform: translateY(6px); } 38%, 94% { opacity: 1; transform: translateY(0); } }
@keyframes demo-reveal { 0%, 38% { opacity: 0; clip-path: inset(0 0 10% round 10px); } 44%, 100% { opacity: 1; clip-path: inset(0 round 10px); } }
@keyframes demo-motion { 0%, 48% { opacity: 0; } 53%, 100% { opacity: 1; } }

.gallery-card { cursor: auto; }
.card-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.sample-badge { display: inline-block; padding: 2px 6px; border-radius: 5px; color: #583a89; background: #eee5fa; font-size: 10px; }

@media (max-width: 968px) {
    .hero-content { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero-text { max-width: 590px; margin-inline: auto; }
}
@media (max-width: 640px) {
    .hero { padding: 42px 0 29px; }
    .hero-title { font-size: clamp(36px, 9.3vw, 48px); margin-bottom: 15px; }
    .hero-subtitle { margin-bottom: 22px; }
    .hero .btn-large { padding: 14px 18px; font-size: 16px; }
    .demo-window { border-radius: 13px; }
    .demo-header, .demo-conversation { padding-inline: 12px; }
    .demo-composer { margin-inline: 12px; }
    .demo-typing { left: 54px; }
}
@media (max-width: 375px) {
    .navbar .logo { gap: 6px; }
    .navbar .logo-text { font-size: 17px; }
    .navbar .logo-img { height: 36px; }
    .navbar .btn { padding-inline: 12px; font-size: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery-card, .gallery-card .card-image, .btn { transition: none; }
    .gallery-card:hover, .gallery-card:hover .card-image, .btn:hover { transform: none; }
}
