/* Landing page */

.hero { position: relative; padding: 96px 0 40px; text-align: center; }
.hero-bg { position: absolute; inset: -60px 0 0; pointer-events: none; overflow: hidden; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 50%; top: 260px; width: 1100px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(165, 148, 255, 0.22), rgba(165, 148, 255, 0.05) 55%, transparent);
  filter: blur(20px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.65; transform: translateX(-50%) scale(1.06); } }
.hero h1 { font-size: clamp(42px, 7vw, 80px); letter-spacing: -0.045em; line-height: 1.02; max-width: 960px; margin: 0 auto 24px; font-weight: 600; }
.hero h1 .soft { color: var(--faint); }
.hero p.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 36px; line-height: 1.55; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.hero > .container > * { animation: rise 0.9s var(--ease) both; }
.hero > .container > :nth-child(2) { animation-delay: 0.06s; }
.hero > .container > :nth-child(3) { animation-delay: 0.12s; }
.hero > .container > :nth-child(4) { animation-delay: 0.18s; }
.hero > .container > :nth-child(5) { animation-delay: 0.24s; }

/* Product window */
.product { position: relative; margin: 72px auto 0; max-width: 1080px; animation: rise 1.1s 0.3s var(--ease) both; }
.product::before { content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
.window { position: relative; border-radius: 16px; background: #0d0d0f; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.window-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.window-tabs button { position: relative; border: 0; background: transparent; color: var(--faint); font: 500 12.5px var(--font); height: 26px; padding: 0 14px; border-radius: 6px; cursor: pointer; transition: color 0.2s; overflow: hidden; }
.window-tabs button:hover { color: var(--muted); }
.window-tabs button.on { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.window-tabs button.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); animation: tab-progress var(--tab-ms, 7000ms) linear forwards; }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }
.window-spacer { width: 47px; }
.window-body { display: grid; grid-template-columns: 220px 1fr; height: 470px; }
.window-side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.window-side .ws-new { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-2); color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.window-side .ws-label { font-size: 11px; color: var(--faint); padding: 8px 10px 4px; }
.window-side .ws-item { height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-side .ws-item.on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.window-side .ws-usage { margin-top: auto; padding: 10px; border: 1px solid var(--border); border-radius: 9px; font-size: 11.5px; color: var(--faint); }
.window-side .ws-usage div { display: flex; justify-content: space-between; margin-bottom: 7px; }
.window-side .ws-usage b { color: var(--text); font-weight: 550; }
.window-main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 28px 18px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; pointer-events: auto; }
.scene-msgs { flex: 1; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.bubble-u { align-self: flex-end; max-width: 72%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: rgba(255, 255, 255, 0.07); font-size: 13.5px; }
.bubble-a { display: flex; gap: 12px; font-size: 13.5px; color: #d4d4d8; line-height: 1.6; }
.bubble-a .av { width: 24px; height: 24px; border-radius: 6px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.bubble-a .av svg { width: 13px; height: 13px; }
.bubble-a .txt { min-width: 0; flex: 1; }
.mini-code { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; background: #08080a; font: 12px/1.65 var(--mono); padding: 12px 14px; color: #c9c9d1; white-space: pre; overflow: hidden; }
.mini-code .k { color: #c4b5fd; } .mini-code .s { color: #86efac; } .mini-code .f { color: #93c5fd; } .mini-code .c { color: #63636b; }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--text); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.scene-composer { margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 14px; border: 1px solid var(--border-2); border-radius: 12px; background: rgba(255, 255, 255, 0.02); color: var(--faint); font-size: 13px; }
.scene-composer .pill { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.scene-composer .send { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.scene-composer .send svg { width: 14px; height: 14px; }
.gen-frame { position: relative; margin-top: 10px; width: min(100%, 440px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); background: #111; }
.gen-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(22px) saturate(0.6); transform: scale(1.08); opacity: 0.25; transition: filter 1.8s var(--ease), transform 1.8s var(--ease), opacity 1.2s; }
.gen-frame.done img { filter: none; transform: none; opacity: 1; }
.gen-frame .gen-status { position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; color: var(--muted); background: rgba(0, 0, 0, 0.5); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px); transition: opacity 0.4s; }
.gen-frame.done .gen-status { opacity: 0; }
.term { flex: 1; border: 1px solid var(--border); border-radius: 12px; background: #070708; font: 12.5px/1.75 var(--mono); padding: 16px 18px; color: #c9c9d1; overflow: hidden; }
.term .p { color: var(--accent-2); }
.term .ok { color: var(--success); }
.term .dim { color: #5d5d66; }
.term .step { display: flex; gap: 10px; }
.term .step b { font-weight: 500; color: var(--text); }

/* Marquee */
.marquee-wrap { padding: 72px 0 24px; }
.marquee-title { text-align: center; color: var(--faint); font-size: 13px; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 17px; font-weight: 550; letter-spacing: -0.02em; color: #8a8a93; white-space: nowrap; transition: color 0.2s; }
.marquee-track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { --mx: 50%; --my: 50%; position: relative; grid-column: span 2; min-height: 300px; padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 45%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.tile:hover { border-color: var(--border-2); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.xwide { grid-column: span 4; }
.tile h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; max-width: 420px; }
.tile .visual { margin-top: auto; padding-top: 26px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.xwide { grid-column: auto; min-height: 0; } }

.v-models { display: flex; flex-direction: column; gap: 6px; }
.v-model { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); font-size: 13px; transition: transform 0.4s var(--ease), border-color 0.3s; }
.v-model .tag-eff { margin-left: auto; font-size: 11px; color: var(--faint); }
.v-model.pick { border-color: rgba(165, 148, 255, 0.4); background: var(--accent-soft); }
.tile:hover .v-model:nth-child(2) { transform: translateX(6px); }
.v-usage .big { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.v-usage .ubar { margin-top: 12px; }
.v-usage .row-l { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 10px; }
.v-unlimited { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-unlimited div { padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.v-unlimited b { display: block; font-size: 18px; color: var(--text); font-weight: 600; letter-spacing: -0.02em; }
.v-image { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.v-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.v-image .shot { border-radius: 10px; border: 1px dashed var(--border-3); display: grid; place-items: center; color: var(--faint); font-size: 12px; text-align: center; padding: 10px; }
.v-term { border-radius: 10px; border: 1px solid var(--border); background: #070708; font: 12px/1.7 var(--mono); padding: 14px; color: #a8a8b0; }
.v-term .p { color: var(--accent-2); } .v-term .ok { color: var(--success); }
.v-chats { display: flex; flex-direction: column; gap: 4px; }
.v-chats div { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--faint); }
.v-chats div:first-child { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* Agent section */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split .section-head { margin-bottom: 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; color: var(--muted); font-size: 14.5px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 16px; height: 16px; color: var(--text); flex: none; margin-top: 4px; }
.install { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font: 13px var(--mono); color: #d4d4d8; max-width: 520px; }
.install .sign { color: var(--faint); }
.install code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.agent-term { min-height: 380px; display: flex; flex-direction: column; }
.agent-term .term { min-height: 336px; }

/* Pricing note + CTA */
.pricing-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 28px; }
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 96px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 50% 110%, rgba(165, 148, 255, 0.2), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.04em; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }

@media (max-width: 860px) {
  .window-body { grid-template-columns: 1fr; height: 440px; }
  .window-side { display: none; }
  .scene { padding: 18px; }
  section.block { padding: 88px 0; }
}
