/* Homepage sections (Figma: Homepage / Desktop, 1:1684). */

/* Hero */
.only-phone { display: none; }
/* The hero fills the first screen below the (expanded, 80px) header; the step row sits at the bottom */
.hero { display: flex; flex-direction: column; min-height: calc(100vh - 80px); }
.hero-top { display: flex; flex: 1 1 auto; min-height: 560px; }
.hero-top > div { flex: 1 1 0; min-width: 0; }
.hero-left { display: flex; flex-direction: column; }
.announce { display: flex; align-items: center; gap: 12px; padding: 20px 40px; border-bottom: 1px solid var(--border-primary); }
.badge { padding: 4px 8px; border-radius: 20px; background: var(--surface-primary); border: 1px solid var(--border-primary); font-weight: 500; font-size: 12px; line-height: 16px; }
.announce .msg { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.announce .msg img { width: 16px; height: 16px; transform: rotate(180deg); }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 40px; }
.hero-copy .text { display: flex; flex-direction: column; gap: 20px; }
.hero-copy .actions { display: flex; gap: 12px; }
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-art { height: clamp(520px, 72vh, 900px); aspect-ratio: 562 / 643; width: auto; max-width: 100%; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding: 40px; }
.steps > div { display: flex; flex-direction: column; gap: 8px; }
.steps .h3-sm .n { color: var(--text-tertiary); }
.steps .body-14 { max-width: 223px; }

/* Trusted-by logos */
.logos { padding-top: 40px; border-bottom: 1px solid var(--border-primary); }
.logos .lead { display: block; width: max-content; padding: 40px 40px 0; border-top: 1px solid var(--border-primary); }
.logos .row { display: flex; justify-content: space-between; align-items: flex-start; padding: 40px; overflow: hidden; }
.logos .row img { height: 36px; width: auto; }

/* Conversation */
.convo { padding-bottom: 48px; }
/* The particle wave sits behind the whole section; everything else stacks above it. */
.convo .wave-bg { position: absolute; inset: 0; z-index: 0; opacity: .3; pointer-events: none; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%); mask-image: linear-gradient(0deg, transparent 0%, #000 22%); }
.convo > :not(.wave-bg) { position: relative; z-index: 1; }
.convo .two-col-head { padding-bottom: 0; }
.why-sub { align-self: end; max-width: 420px; }
.why-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 40px 0; }
.why-points > div { display: flex; flex-direction: column; gap: 8px; }
.two-col-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 80px 40px 0; }
.two-col-head p { color: var(--text-secondary); }
.two-col-head b { font-weight: inherit; color: var(--text-primary); }
.convo-stage { position: relative; height: 517px; }
.convo-stage .wave-clip { position: absolute; inset: 0; opacity: .3; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%); mask-image: linear-gradient(0deg, transparent 0%, #000 22%); }

/* Features: Cortex / Ask / Pulse. Each copy/visual pair shares a grid row, so
   desktop and tablet read as two columns and phones can show one pair per tab. */
.products-head { grid-column: 1 / -1; grid-row: 1; padding-bottom: 40px; }
.feat-tabs { display: none; }
.feat-block .head { display: flex; flex-direction: column; gap: 12px; }
.feat-block .tag-line { margin: -4px 0 8px; font: 500 11px/16px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); }
.feat-points { display: flex; gap: 20px; }
.feat-points > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; }
.feat-points img { width: 16px; height: 16px; }
.cortex-list { width: 300px; display: flex; flex-direction: column; gap: 8px; }
.cortex-list .card { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.cortex-list .name { display: flex; flex-direction: column; gap: 6px; }
.cortex-list .state { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; }
.pulse-card { width: 338px; display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.pulse-card .top { display: flex; justify-content: space-between; align-items: center; }
.sev { padding: 4px 8px; border-radius: 4px; background: var(--red-20); color: var(--red); font-size: 12px; line-height: 16px; }
.pulse-card .body { display: flex; flex-direction: column; gap: 8px; }
.pulse-chart { position: relative; height: 65px; }
.pulse-chart .base { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; }
.pulse-chart .base img { flex: 1; height: 1px; }
.pulse-chart .line { position: absolute; left: 0; right: .28%; top: 5px; height: 38px; width: 99.72%; }
.pulse-chart .anom { position: absolute; right: 1px; bottom: 1px; color: var(--red); }
.pulse-chart .ping { position: absolute; right: 18px; top: 32px; padding: 3px; border: 1px solid var(--red-20); border-radius: 72px; }
.pulse-chart .ping i { display: block; width: 6px; height: 6px; border-radius: 10px; background: var(--red); }
.pulse-card .foot { display: flex; justify-content: space-between; align-items: center; }
.pulse-card .sent { display: flex; align-items: center; gap: 8px; }
.pulse-card .hash { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-primary); }
.pulse-card .hash img { width: 12px; height: 12px; }

/* Connect your stack */
.stack { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stack-copy { grid-column: 1 / span 2; display: flex; flex-direction: column; justify-content: center; gap: 43px; padding: 0 40px; }
.stack-copy .head { display: flex; flex-direction: column; gap: 22px; }
.stack-visual { grid-column: 3 / span 3; position: relative; height: 723px; }
.stack-card { position: absolute; left: 40px; top: calc(50% + .5px); transform: translateY(-50%); width: 642px; }
.stack-card .card { display: flex; flex-direction: column; }
.stack-card .hdr { padding: 16px 20px; border-bottom: 1px solid var(--border-primary); }
.stack-card .mid { display: flex; overflow: hidden; border-bottom: 1px solid var(--border-primary); }
.stack-card .rows { flex: 1 1 0; display: flex; flex-direction: column; }
.stack-card .rows > div { display: flex; align-items: center; gap: 12px; padding: 16px; }
.stack-card .rows > div + div { border-top: 1px solid var(--border-primary); }
.stack-card .logo { width: 40px; height: 40px; display: grid; place-items: center; }
.stack-card .meta { display: flex; align-items: center; gap: 8px; }
.stack-card .meta .g { color: var(--green); }
.stack-card .meta img { width: 4px; height: 4px; }
.stack-card .tiles { flex: 1 1 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; height: 360px; padding: 20px; overflow: hidden; border-left: 1px solid var(--border-primary); }
.stack-card .tiles span { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border-primary); }
.stack-card .tiles img { width: 24px; height: 24px; }
.stack-card .ftr { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; }
.stack-card .ftr .stats { display: flex; gap: 18px; color: var(--text-tertiary); }
.stack-card .ftr .stats span { display: flex; gap: 8px; }
.stack-card .ftr .add { display: flex; align-items: center; gap: 12px; color: var(--text-tertiary); }
.stack-card .ftr .add i { display: grid; place-items: center; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--btn-primary-bg); }
.stack-card .ftr .add img { width: 12px; height: 12px; }
.stack-card .fade { position: absolute; right: 0; top: calc(50% + .5px); transform: translateY(-50%); width: 330px; height: 452px; background: linear-gradient(270deg, var(--bg-primary) 30%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }

/* Testimonial */
.testimonial { display: flex; align-items: flex-end; border-bottom: 1px solid var(--border-primary); }
.testimonial .copy { flex: 1 1 0; min-width: 0; }
.testimonial .stat { display: flex; flex-direction: column; gap: 12px; padding: 40px; border-top: 1px solid var(--border-primary); }
.testimonial .quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testimonial blockquote { grid-column: 2; margin: 0; padding: 40px 0 20px; text-align: right; border-top: 1px solid var(--border-primary); }
.testimonial .by { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 0 40px 40px; }
.testimonial .arrows { display: flex; gap: 8px; }
.testimonial .arrows .prev img { transform: scaleX(-1); }
.testimonial .who { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.testimonial .photo { width: 500px; height: 600px; flex-shrink: 0; object-fit: cover; }

/* Stats */
.stats-head { padding: 80px 40px; }
.stats-head.two-col-head { padding: 80px 40px 40px; }
.stat-row { display: flex; }
.stat-row > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 40px; padding: 60px 40px; }
.stat-row .txt { display: flex; flex-direction: column; gap: 12px; }

/* FAQ */
.faq { display: flex; align-items: flex-start; padding: 80px 0; }
.faq > div { flex: 1 1 0; min-width: 0; }
.faq .intro { display: flex; flex-direction: column; gap: 24px; padding: 40px; }
.faq .intro .body-16 { max-width: 458px; }
.faq .intro a.u { text-decoration: underline; text-underline-offset: 3px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { width: 32px; height: 32px; }
.faq summary .open { display: none; }
.faq details[open] summary .open { display: block; }
.faq details[open] summary .closed { display: none; }
.faq details p { padding: 4px 0; }

/* Why: the five dimensions as a card grid, after the integrations directory.
   Each card draws its right and bottom hairline; six slots, three per row. */
.convo .two-col-head { padding-bottom: 160px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-primary); }
.why-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 40px; box-shadow: inset -1px 0 var(--border-primary), inset 0 -1px var(--border-primary); }
.why-card:nth-child(3n) { box-shadow: inset 0 -1px var(--border-primary); }
.why-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .22) 0 1px, transparent 1.2px) 1px 1px / 12px 12px; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.why-card:not(.empty):hover::before { opacity: 1; }
.why-card > * { position: relative; }
.why-card .ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--surface-primary); border: 1px solid var(--border-secondary); border-radius: 8px; }
.why-card .ic img { width: 24px; height: 24px; }
.why-card .nm { margin-top: 28px; font-weight: 500; font-size: 18px; line-height: 24px; }
.why-card .meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 500 12px/16px var(--font-mono); color: var(--text-tertiary); white-space: nowrap; }
.why-card .meta i { font-style: normal; }
.why-card .meta .t { color: var(--blue); }
.why-card .meta .a { color: var(--red); }
.why-card .d { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-secondary); }
/* The answer, below the cards */
.why-bridge { max-width: 920px; padding: 120px 40px 0; color: var(--text-secondary); }
.why-bridge b { color: var(--text-primary); }

/* Drawings */
.vs-col .cap { position: relative; height: 16px; font-size: 11px; line-height: 16px; color: var(--text-tertiary); }
.vs-col .cap span { position: absolute; top: 0; white-space: nowrap; }
.vs-col .cap-s { font-size: 11px; line-height: 16px; color: var(--text-tertiary); }
.vs-col .tl-line { position: relative; height: 1px; margin: 24px 0 8px; background: var(--border-secondary); }
.vs-col .mk { position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-primary); }
.vs-col .mk.hit { top: -3px; width: 8px; height: 8px; background: var(--red); box-shadow: 0 0 0 3px var(--red-20); }
.vs-col .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.vs-col .checks li::before { content: "\2713"; margin-right: 10px; color: var(--green); }
.vs-col .find { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 14px 16px; border-left: 1px solid var(--red); }
.vs-col .find .body-14 { color: var(--text-primary); }
.tag-red { align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--red-20); color: var(--red); font-size: 12px; line-height: 16px; }
.vs-col .node { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--border-secondary); border-radius: 8px; background: var(--surface-secondary); font-size: 12px; line-height: 16px; white-space: nowrap; color: var(--text-secondary); }
.vs-col .node.main { color: var(--text-primary); border-color: var(--text-secondary); }
.vs-col .graph { position: relative; height: 180px; }
.vs-col .graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vs-col .graph .node { position: absolute; transform: translate(-50%, -50%); }
.vs-col .finds { display: flex; flex-direction: column; gap: 8px; }
.vs-col .finds { gap: 0; }
.vs-col .finds > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-primary); font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.vs-col .finds.chain > div { padding-left: 14px; border-left: 1px solid var(--red); }

.vs-col .finds .sum { color: var(--text-primary); border-bottom-color: var(--red); }
.vs-col .sev { padding: 2px 6px; border-radius: 4px; font-size: 11px; line-height: 14px; font-weight: 500; }
.vs-col .sev.low { background: var(--surface-secondary); color: var(--text-tertiary); }
.vs-col .sev.high { background: var(--red-20); color: var(--red); }
.vs-col .tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; width: 100%; max-width: 300px; }
.vs-col .tiles i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-secondary); }
.vs-col .tiles i.lit { background: var(--blue); animation: tile-pulse 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.vs-col.trad .tiles i.lit { background: var(--text-primary); animation: none; }
@keyframes tile-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Tablet (Figma: Homepage / Tablet, 810px) ---------- */
@media (max-width: 1199px) {
  .display-h1 { font-size: 48px; line-height: 52px; }
  .hero-top { min-height: 460px; }
  .hero-art { height: clamp(420px, 60vh, 640px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps .body-14 { max-width: none; }
  .logos { padding-top: 0; }
  .two-col-head { grid-template-columns: 1fr; padding-top: 40px; }
  .convo .two-col-head { padding-bottom: 140px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .convo { padding-bottom: 40px; }
  .why-card { min-height: 280px; padding: 32px; }
  .why-card:nth-child(3n) { box-shadow: inset -1px 0 var(--border-primary), inset 0 -1px var(--border-primary); }
  .why-card:nth-child(2n) { box-shadow: inset 0 -1px var(--border-primary); }
  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .convo-stage .wave-clip { width: 100%; }
  .feat-points { flex-direction: column; gap: 16px; }
  .feat-points > div { flex-direction: row; align-items: center; gap: 12px; }
  .stack { grid-template-columns: 1fr 1fr; padding: 40px 0; }
  .stack-copy { grid-column: 1; }
  .stack-visual { grid-column: 2; height: 451px; overflow: hidden; }
  .stack-card { width: 596px; right: auto; left: 0; }
  .testimonial { justify-content: space-between; }
  .testimonial:not(.no-photo) .copy { width: 450px; flex: none; }
  .testimonial .photo { width: 360px; height: 520px; }
  .testimonial .quote-row { grid-template-columns: 1fr; }
  .testimonial blockquote { grid-column: 1; padding-left: 40px; }
  .stat-row { flex-wrap: wrap; }
  .stat-row > div { flex: 0 0 50%; padding: 40px; }
  .faq { flex-direction: column; padding: 40px 0; }
  .faq > div { width: 100%; }
  .faq .items { padding: 0 40px; }
  .faq details { padding-right: 0; }
}

/* ---------- Phone (Figma: Homepage / Phone, 390px) ---------- */
@media (max-width: 809px) {
  .announce { padding: 20px; }
  .announce .msg { min-width: 0; flex: 1; }
  .announce .ellip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: 0; }
  .hero-top { flex-direction: column; height: auto; min-height: 0; }
  .hero-top > div, .hero-left > div { flex: none; }
  .hero-right { display: flex; justify-content: center; }
  .hero-left { display: contents; }
  .hero-left .announce { order: 0; }
  .hero-right { order: 1; height: 399px; overflow: hidden; }
  .hero-art { width: 391px; height: 434px; aspect-ratio: auto; flex-shrink: 0; }
  .hero-copy { order: 2; padding: 20px; gap: 32px; }
  .hero-copy .text { gap: 12px; }
  .steps { grid-template-columns: 1fr; padding: 40px 20px; }
  .logos .lead { padding: 40px 20px 0; width: auto; }
  .logos .row { padding: 40px 20px; }
  .two-col-head { padding: 20px 20px 0; }
  .products-head { padding: 40px 20px 20px; }
  .convo .two-col-head { padding-bottom: 72px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .convo { padding-bottom: 32px; }
  .why-card { min-height: 0; padding: 24px 20px; box-shadow: inset 0 -1px var(--border-primary); }
  .why-bridge { padding: 48px 20px 0; }
  .why-card .ic { width: 48px; height: 48px; }
  .why-card .ic img { width: 20px; height: 20px; }
  .why-card .nm { margin-top: 20px; font-size: 16px; line-height: 20px; }
  .why-card .d { font-size: 14px; line-height: 20px; }
  .why-points { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 0; }
  .h2-xl { font-size: 28px; line-height: 32px; letter-spacing: -.28px; }
  .convo-stage { height: 520px; }
  .chips { gap: 4px; }
  .chip { padding: 8px 6px; gap: 6px; }

  /* features become tabs */
  .feat-tabs { display: flex; position: sticky; top: var(--header-h); z-index: 3; background: var(--bg-primary); border-bottom: 1px solid var(--border-primary); }
  .feat-tabs button { flex: 1; padding: 12px 0; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-tertiary); border-bottom: 1px solid transparent; margin-bottom: -1px; }
  .feat-tabs button[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--border-secondary); }
  .cortex-list { width: 252px; }
  .pulse-card { width: 300px; }
  .hide-phone { display: none; }
  .only-phone { display: inline; }

  .stack { display: flex; flex-direction: column-reverse; padding: 0; }
  .stack-visual { height: 486px; }
  .stack-card { width: 596px; left: 20px; }
  .stack-copy { padding: 40px 20px; }
  .testimonial { flex-direction: column; align-items: stretch; }
  .testimonial .copy { display: contents; }
  .testimonial .stat { order: 0; padding: 40px 20px; }
  .testimonial .photo { order: 1; width: 100%; height: 503px; }
  .testimonial .quote-row { order: 2; }
  .testimonial blockquote { padding: 20px; text-align: left; border-top: 0; }
  .testimonial .by { order: 3; flex-direction: row-reverse; padding: 0 20px 40px; }
  .testimonial .who { align-items: flex-start; text-align: left; }
  .stats-head.two-col-head { padding: 20px 20px 40px; }
  .stat-row > div { padding: 20px; gap: 24px; }
  .faq .intro { padding: 40px 20px; }
  .faq .items { padding: 0 20px; }
  .faq summary { gap: 16px; }
}
/* The wave's canvas is taller than its stage; fade its edges so it melts into the page. */

/* ================= Live-site homepage behaviour ================= */

/* Partner logos: always ticking, as on the live site. */
.logos .row.ticker { justify-content: flex-start; padding: 40px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos .ticker .track { display: flex; width: max-content; gap: 64px; padding-right: 64px; animation: marquee 40s linear infinite; }
.logos .ticker .track [aria-hidden] { display: inline-flex; }

/* Conversation demo (live: Chat Container / Results Container). */
.chat-demo { position: absolute; left: 50%; top: 50%; width: 460px; transform: translate(-50%, -50%); z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.chat-q { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--surface-subtle); border: 1px solid var(--border-primary); border-radius: 16px; transition: border-color .3s; }
.chat-q .ph, .chat-q .typed { padding: 12px; font-size: 14px; line-height: 20px; }
.chat-q .ph { color: var(--text-tertiary); }
.chat-q .typed { display: none; color: var(--text-primary); white-space: nowrap; overflow: hidden; }
.chat-q .tools { display: flex; justify-content: space-between; height: 40px; }
.chat-q .tools span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.chat-q .tools img { width: 18px; height: 18px; }
.chat-q .send { display: none !important; background: var(--bg-secondary); }
.chat-q .send img { width: 14px; height: 14px; }
.chat-q .badge-state { display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 4px 8px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 12px; line-height: 16px; }
.chat-demo .chips { display: flex; justify-content: center; gap: 4px; transition: opacity .3s; }
.chat-results { display: none; padding: 16px 20px; background: var(--surface-subtle); border: 1px solid var(--border-primary); border-radius: 16px; }
.chat-results .status { color: var(--text-tertiary); min-height: 16px; }
.chat-results ul { list-style: none; margin: 8px 0 0; padding: 0; }
.chat-results li { display: flex; align-items: center; gap: 8px; padding: 12px 0; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.chat-results li + li { border-top: 1px solid var(--border-primary); }
.chat-results li i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--bg-secondary); }
.chat-results li b { margin-left: 4px; font-weight: 500; font-size: 14px; line-height: 20px; }
.chat-results .risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; }
.chat-results .risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chat-results .tag { margin-left: auto; padding: 4px 8px; border-radius: 4px; font-style: normal; font-size: 12px; line-height: 16px; }
.red { color: var(--red); }
.amber { color: var(--yellow); }
.tag.red { background: var(--red-20); }
.tag.amber { background: rgba(249, 171, 0, .2); }
/* states driven by home.js */
.chat-demo[data-state="typing"] .ph, .chat-demo[data-state="sent"] .ph, .chat-demo[data-state="thinking"] .ph, .chat-demo[data-state="results"] .ph { display: none; }
.chat-demo:not([data-state="idle"]) .typed { display: block; }
.chat-demo[data-state="typing"] .mic, .chat-demo[data-state="sent"] .mic { display: none; }
.chat-demo[data-state="typing"] .send, .chat-demo[data-state="sent"] .send { display: grid !important; }
.chat-demo[data-state="thinking"] .tools, .chat-demo[data-state="results"] .tools,
.chat-demo[data-state="thinking"] .chips, .chat-demo[data-state="results"] .chips { display: none; }
.chat-demo[data-state="thinking"] .chat-q, .chat-demo[data-state="results"] .chat-q { flex-direction: row; align-items: center; border-color: var(--border-secondary); }
.chat-demo[data-state="thinking"] .chat-q .typed, .chat-demo[data-state="results"] .chat-q .typed { padding: 16px 12px; font-size: 16px; line-height: 24px; }
.chat-demo[data-state="thinking"] .badge-state, .chat-demo[data-state="results"] .badge-state { display: block; }
.chat-demo[data-state="thinking"] .chat-results, .chat-demo[data-state="results"] .chat-results { display: block; }
.chat-demo[data-state="thinking"] .chat-results ul { display: none; }
.chat-demo[data-state="results"] .chat-results li { opacity: 1; transform: none; }
.chat-demo[data-state="results"] .chat-results li:nth-child(2) { transition-delay: .12s; }
.chat-demo[data-state="results"] .chat-results li:nth-child(3) { transition-delay: .24s; }

/* Features: rails of one screen each on the left; one pinned stage on the right. */
.features { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border-primary); }
.feat-stage { grid-column: 2; grid-row: 2 / span 3; position: relative; }
.feat-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.feat-rail { grid-column: 1; height: 100vh; display: flex; align-items: center; }
.feat-rail + .feat-rail { border-top: 1px solid var(--border-primary); }
.feat-block { display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 0 40px; }
.feat-cloud { position: absolute; left: 0; right: 0; top: 50%; height: 508px; transform: translateY(-50%); }
.feat-cloud-phone { display: none; }
.feat-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.95); opacity: 0; filter: blur(8px); pointer-events: none;
  transition: opacity .15s ease-in, transform .15s ease-in, filter .15s ease-in; }
.feat-card.on { opacity: 1; transform: translate(-50%, -50%); filter: none; pointer-events: auto;
  transition: opacity .1s ease-out, transform .3s ease-out, filter .3s ease-out; }
.feat-pin .prompt-box { width: 382px; }
/* Vertical scroll progress (live: VerticalScrollProgress) */
.scroll-index { position: absolute; right: 0; top: 0; bottom: 0; width: 23px; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(0deg, transparent, #000 10%, #000 90%, transparent); }
.scroll-index::after { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 1px; background: var(--text-primary); border-radius: 9999px 0 0 9999px; }
.scroll-index .ticks { position: relative; display: flex; flex-direction: column; align-items: flex-end; margin-right: 9px; will-change: transform; }
.scroll-index .ticks p { margin: 0; color: var(--text-tertiary); transition: color .2s; }
.scroll-index .ticks .lines { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 8px 0; }
.scroll-index .ticks i { display: block; width: 40%; min-width: 6px; height: 1px; border-radius: 9999px; background: var(--text-tertiary); transition: width .2s, background-color .2s; }
.scroll-index .ticks i.hot { width: 65%; background: var(--text-primary); }
.scroll-index .ticks p.hot { color: var(--text-primary); }

/* Connect your stack: the source list scrolls on a loop. */
.stack-card .rows { overflow: hidden; height: 360px; }
.stack-card .rows > .rows-track { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.stack-card .rows-track.stepping { transition: transform .32s cubic-bezier(.2, .7, .3, 1); }
.stack-card .rows-track > div { transition: opacity .32s ease-out, transform .32s cubic-bezier(.2, .7, .3, 1); }
/* the new row slides in from the left, the full row width, fading in (live) */
.stack-card .rows-track > div.entering { opacity: 0; transform: translate(-100%, -72px); }
.stack-card .rows-track > div > div { flex: 1; min-width: 0; }
.stack-card .meta { white-space: nowrap; }
/* The card slides in from the right as the section scrolls in (home.js sets --in 0..1). */
/* card + its fade overlay move as one */
.stack-card { translate: calc((1 - var(--in, 1)) * 120px) 0; opacity: var(--op, 1); }
.stack-card .rows-track > div { display: flex; align-items: center; gap: 12px; padding: 16px; height: 72px; border-bottom: 1px solid var(--border-primary); }
.stack-card .rows > div + div { border-top: 0; }

/* Headline text effect: letters settle in one after another. */
[data-text-effect] .ch { display: inline-block; opacity: 0; filter: blur(4px); transform: translateY(.2em); transition: opacity .4s ease, filter .4s ease, transform .4s ease; }
[data-text-effect].in .ch { opacity: 1; filter: none; transform: none; }

/* Stats: Lottie loops (home.js); the static icon is the fallback. */
.stat-anim { width: 64px; height: 64px; }
.stat-anim img, .stat-anim svg { width: 64px; height: 64px; }

/* FAQ: closed rows are 88px on the live site. */
.faq details { padding: 16px 40px 16px 0; border-bottom: 1px solid var(--border-primary); }
.faq summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; list-style: none; cursor: pointer; }
.faq details p { padding: 0 0 16px; }

@media (max-width: 1199px) {
  .feat-block { padding: 0 40px; gap: 32px; }
  .feat-cloud { height: 405px; }
}
@media (max-width: 809px) {
  .features { display: flex; flex-direction: column; padding-bottom: 40px; }
  .products-head { order: 0; }
  .feat-stage { order: 1; }
  .feat-pin { position: relative; height: 360px; }
  .feat-cloud { display: none; }
  .feat-cloud-phone { display: block; position: absolute; inset: 0; }
  .scroll-index { display: none; }
  .feat-pin .prompt-box { width: 330px; }
  .feat-rail { order: 2; height: auto; display: none; border-top: 0 !important; }
  .feat-rail.on { display: flex; }
  .feat-block { padding: 20px; }
  .chat-demo { width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .logos .ticker .track { animation: none; }
}

/* Status line colour sweep (colours sampled frame by frame from the live site). */
.chat-results .status .wch { display: inline-block; white-space: pre; transform-origin: center center -5px; color: #9da2b3;
  animation: wch-in .3s ease-out both, wch-sweep .6s linear infinite both; }
@keyframes wch-in { from { opacity: 0; transform: rotateX(-80deg); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
/* continuous: the cycle starts and ends on the same colour, so it loops with no pause */
@keyframes wch-sweep {
  0%, 100% { color: #00e3fc; } 13% { color: #0085e8; } 26% { color: #5f11cc; } 39% { color: #c11888; }
  50% { color: #ef1c31; } 61% { color: #f74d00; } 74% { color: #ffb600; } 87% { color: #6c888b; }
}
@media (prefers-reduced-motion: reduce) { .chat-results .status .wch { animation: none; } }

/* Load sequence (live appear effects, ease 0.12/0.23/0.5/1, 0.4s): the
   announcement fades in, then the headline, copy and buttons rise 10px at
   0.1s steps; on desktop the three steps follow at 0.5/0.6/0.7s. */
@keyframes appear { from { opacity: 0; transform: translateY(var(--ay, 10px)); } }
@keyframes appear-x { from { opacity: 0; transform: translateX(100px); } }
.hero-left .announce, .hero-copy h1, .hero-copy p, .hero-copy .actions { animation: appear .4s cubic-bezier(.12, .23, .5, 1) both; }
.hero-left .announce { --ay: 0px; }
.hero-copy h1 { animation-delay: .1s; }
.hero-copy p { animation-delay: .2s; }
.hero-copy .actions { animation-delay: .3s; }
@media (min-width: 1200px) {
  .steps > div { animation: appear .4s cubic-bezier(.12, .23, .5, 1) both; }
  .steps > div:nth-child(1) { animation-delay: .5s; }
  .steps > div:nth-child(2) { animation-delay: .6s; }
  .steps > div:nth-child(3) { animation-delay: .7s; }
}
/* Feature cards: each time a card shows, the Cortex sources slide in from
   100px right 50ms apart, and the first three Ask chips rise 12px. */
.feat-card.on.cortex-list .card { animation: appear-x .2s cubic-bezier(.44, 0, .56, 1) both; }
.feat-card.on.cortex-list .card:nth-child(2) { animation-delay: .05s; }
.feat-card.on.cortex-list .card:nth-child(3) { animation-delay: .1s; }
.feat-card.on.cortex-list .card:nth-child(4) { animation-delay: .15s; }
.feat-card.on.prompt-box .chip:nth-child(-n+3) { --ay: 12px; animation: appear .2s cubic-bezier(.12, .23, .5, 1) both; }
.feat-card.on.prompt-box .chip:nth-child(1) { animation-delay: .1s; }
.feat-card.on.prompt-box .chip:nth-child(2) { animation-delay: .2s; }
.feat-card.on.prompt-box .chip:nth-child(3) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .hero-left .announce, .hero-copy h1, .hero-copy p, .hero-copy .actions, .steps > div, .feat-card.on .card, .feat-card.on .chip { animation: none; }
}

/* ---- homepage section backgrounds ---- */
/* Light hero: white to sky, with a brighter sky glow behind the strands. */
main.frame > .hero { --bleed-bg: radial-gradient(ellipse 36% 55% at 72% 50%, #bde4ff 0%, rgba(189, 228, 255, 0) 70%), linear-gradient(180deg, #ffffff 0%, #e9f6ff 55%, var(--sky) 100%); }
main.frame > .logos { background: #ffffff; }
/* Sky glow behind the prompt box; the wave rides in it. */
main.frame > .convo { --bleed-bg: radial-gradient(ellipse 50% 60% at 50% 72%, rgba(34, 167, 255, .28) 0%, rgba(34, 167, 255, 0) 70%), #001441; }
/* Pinned section: a sky wash behind the visual, fixed to the screen so it stays put while the texts scroll. */
main.frame > .features { background: radial-gradient(ellipse 42% 60% at 78% 50%, var(--sky) 0%, rgba(214, 239, 255, 0) 70%) fixed, #ffffff; }
main.frame > .stack { background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky) 100%); }
/* Navy testimonial, running into the portrait's own black on the right. */
main.frame > .testimonial { --bleed-bg: linear-gradient(90deg, #001441 0%, #110f0d 62%, #110f0d 100%); }
main.frame > .stats { background: #ffffff; }
main.frame > .faq { background: linear-gradient(180deg, #ffffff 0%, var(--sky-soft) 100%); }
@media (max-width: 809px) {
  main.frame > .features { background: #ffffff; }
  main.frame > .hero { --bleed-bg: radial-gradient(ellipse 70% 30% at 50% 26%, #bde4ff 0%, rgba(189, 228, 255, 0) 70%), linear-gradient(180deg, #ffffff 0%, var(--sky) 100%); }
  main.frame > .testimonial { --bleed-bg: linear-gradient(180deg, #001441 0%, #110f0d 100%); }
}

/* ---- CoinSec homepage pieces ---- */
.logos .fact { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--border-primary); border-radius: 999px; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.logos .fact b { font-weight: 500; color: var(--text-primary); }
.dot-red { background: var(--red); box-shadow: 0 0 0 1px rgba(229, 72, 77, .25); }
.testimonial.no-photo .copy { flex: 1 1 0; width: auto; }
.testimonial.no-photo .quote-row { grid-template-columns: 1fr 1.4fr; }
.faq .intro a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.subscribe-cta { margin-left: auto; }
@media (max-width: 809px) {
  .testimonial.no-photo .quote-row { grid-template-columns: 1fr; }
  .subscribe-cta { margin: 8px 0 0; width: 100%; }
}

/* Proof strip: partner marks inside the facts, inked navy to match the text */
.logos .fact .lg { flex: none; height: 16px; width: auto; max-width: none; margin-right: 2px; }
.logos a.fact:hover { color: var(--text-secondary); }
.logos .fact .lg[src*="tu-delft"] { height: 22px; }
.logos .fact .lg[src*="dutch-blockchain-week"] { height: 26px; }
.logos .fact .lg[src*="anthropic"] { height: 12px; }

