/* Homepage refinement using unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop — preserves the existing keyAI brand. */
:root {
  --panel: #111722;
  --panel2: #171f2c;
  --text: #f0eee9;
  --muted: #aab4c4;
  --line: rgba(215, 222, 234, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
body { background: var(--bg); }
h1, h2, h3 { font-weight: 500; }
.section-pad { padding-block: 32px; }
.section-intro { gap: 64px; margin-bottom: 24px; }
.section-intro h2, .culture-copy h2, .languages-section h2 {
  font-size: 38px; line-height: 1.45; font-weight: 500; letter-spacing: -.6px;
}
.section-intro > p, .culture-copy > p, .languages-section > p {
  font-size: 15px; line-height: 1.9; color: var(--muted);
}
.section-index { font-size: 12px; letter-spacing: .02em; margin-bottom: 12px; }
.section-index:before { width: 24px; }
.site-header { height: 80px; background: #090e18f5; border-color: var(--line); }
.header-inner { gap: 24px; }
.brand-word { font-weight: 600; letter-spacing: -.5px; }
.brand-word small { font-size: 11px; letter-spacing: 0; }
.main-nav { gap: 24px; }
.main-nav a { font-size: 14px; color: #bac3d0; }
.header-actions { gap: 24px; }
.language-menu summary { font-size: 13px; }
.language-options { background: var(--panel2); border-color: var(--line); box-shadow: 0 12px 32px #0004; }
.language-options a { min-height: 40px; }
.header-download { font-size: 13px; padding: 8px 16px; background: transparent; border-color: #d7deea26; gap: 12px; }
.header-download:hover { background: var(--panel2); }
.button { gap: 16px; padding: 12px 20px; font-size: 14px; min-height: 48px; font-weight: 500; transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.button:hover { transform: none; }
.button:active { transform: scale(.98); }
.button-gold { background: var(--gold); color: #1b1c20; box-shadow: none; }
.button-gold:hover { background: #f0d6ab; }
.button-outline, .carousel-actions > .button-outline { background: #111925; border-color: #d7deea26; backdrop-filter: none; }
.button-outline:hover { background: #1a2331; border-color: #d7deea40; }

/* Keep the four advertisements, with the artwork as the main visual. */
.cinema-hero { border-bottom-color: var(--line); }
.product-slide { background: var(--bg); }
.slide-eyebrow { font-size: 12px; letter-spacing: .02em; }
.carousel-title { font-weight: 500; text-shadow: none; }
.product-brand { color: var(--gold); font-weight: 600; }
.product-name { font-weight: 500; }
.carousel-description, .product-slide .carousel-description { font-size: 15px; line-height: 1.9; color: #b9c2d0; margin-top: 24px; }
.carousel-tags, .product-slide .carousel-tags { gap: 8px 16px; margin-top: 24px; }
.carousel-tags > span, .product-slide .carousel-tags > span { font-size: 12px; line-height: 1.7; padding: 0; color: #c2b59e; background: none; border: 0; border-radius: 0; backdrop-filter: none; }
.carousel-tags > span + span, .product-slide .carousel-tags > span + span { border-inline-start: 1px solid #c2b59e40; padding-inline-start: 16px; }
.carousel-actions { margin-top: 32px; gap: 12px; }
.product-picture > img { border-color: #d7deea26; border-radius: 12px; box-shadow: 0 16px 48px #0005; }
.product-preview-badge { font-size: 11px; color: #b8c2d1; border: 0; background: transparent; padding: 0; margin-bottom: 12px; letter-spacing: 0; }
.carousel-art-credit { font-size: 11px; letter-spacing: 0; padding: 4px 8px; border: 0; background: #090e18bd; }
.carousel-controls { gap: 40px; bottom: 24px; }
.carousel-chapters { gap: 24px; }
.carousel-dot { gap: 12px; min-height: 48px; padding-block: 12px 16px; }
.chapter-number, .feature-number, .step-line > span { font-family: ui-monospace, Consolas, monospace; font-style: normal; font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: 0; }
.chapter-number { font-size: 12px; }
.chapter-label { font-size: 12px; }
.chapter-line { height: 1px; background: #d7deea26; }
.carousel-transport { gap: 8px; }
.carousel-transport > button { width: 40px; height: 40px; background: #111925; border-color: #d7deea26; backdrop-filter: none; }
.carousel-transport > button:hover { background: #202938; border-color: #d7deea50; }
.carousel-count { margin-inline-end: 8px; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* Films and real software captures carry the detail and color. */
.film-grid, .feature-grid { gap: 24px; }
.film-card, .film-card.is-sample { background: var(--panel); border-color: var(--line); border-radius: 12px; box-shadow: none; transition: border-color 160ms var(--ease); }
.film-card:hover { transform: none; border-color: #d7deea40; }
.film-info { padding: 24px; }
.film-title { gap: 16px; align-items: flex-start; }
.film-title h3 { font-size: 17px; font-weight: 500; }
.film-info p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.film-duration { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; border: 0; background: transparent; padding: 0; color: #b9c2d0; }
.film-cover-label { top: 16px; inset-inline-start: 16px; padding: 4px 8px; font-size: 11px; border: 0; background: #090e18d9; backdrop-filter: none; }
.cover-duration { display: none; }
.play-disc { width: 52px; height: 52px; background: #eee7da; color: #171c24; border: 0; box-shadow: none; backdrop-filter: none; transition: background 160ms var(--ease); }
.film-cover:hover .play-disc { background: var(--gold); color: #171c24; box-shadow: none; }
.feature-card { padding: 24px 24px 0; background: var(--panel); border-color: var(--line); border-radius: 12px; box-shadow: none; transition: border-color 160ms var(--ease); }
.feature-card:after { display: none; }
.feature-card:hover { transform: none; border-color: #d7deea40; }
.feature-top { margin-bottom: 20px; }
.feature-icon { width: 32px; height: 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #cbbb9e; }
.feature-icon > .icon { width: 20px; height: 20px; }
.feature-number { font-size: 12px; color: #8f9cad; }
.feature-card h3 { font-size: 19px; line-height: 1.5; margin-bottom: 12px; letter-spacing: 0; }
.feature-card p { font-size: 14px; line-height: 1.85; min-height: 80px; margin-bottom: 24px; color: var(--muted); }
.feature-visual { border-color: #d7deea1a; border-radius: 8px 8px 0 0; aspect-ratio: 1.85; }
.feature-visual-label { font-size: 11px; padding: 4px 8px; border-color: #d7deea26; box-shadow: none; background: #101724f5; }
.naming-highlight { margin-top: 24px; padding: 24px; gap: 24px; background: var(--panel); border-color: var(--line); border-inline-start: 2px solid #d5b681; border-radius: 8px; }
.naming-highlight h3 { font-size: 19px; line-height: 1.5; }
.naming-highlight p { font-size: 14px; line-height: 1.85; color: var(--muted); }
.naming-highlight > a { font-size: 13px; }
.demo { background: #0e1520; border-color: var(--line); }
.demo-tabs { gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.demo-tabs > button { border: 0; border-radius: 0; background: transparent; padding: 16px 12px; font-size: 14px; gap: 12px; color: #aab5c5; }
.demo-tabs > button > span { color: #8694a8; font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.demo-tabs > button[aria-selected=true] { background: transparent; box-shadow: inset 0 -2px 0 var(--gold); color: var(--text); }
.demo-panel { border-color: #d7deea26; padding: 4px; border-radius: 12px; box-shadow: none; background: var(--panel); }
.screen-chrome { height: 40px; padding-inline: 16px; background: var(--panel); }
.demo-current, .screen-locale, .demo-note { font-size: 12px; }
.demo-note { color: #a2aec0; margin-top: 16px; }

/* A production sequence, rather than another row of feature cards. */
.steps { gap: 32px; }
.steps li { padding: 24px 0 0; background: transparent; border: 0; border-top: 1px solid #d7deea33; border-radius: 0; }
.step-line { margin-bottom: 24px; gap: 16px; }
.step-line > span { font-size: 14px; color: var(--gold); }
.step-line > i { background: var(--line); }
.step-line > .icon { width: 16px; height: 16px; color: #9eaabd; }
.step-symbol { width: 32px; height: 32px; background: transparent; border: 0; border-radius: 0; margin-bottom: 16px; justify-content: flex-start; color: #b4becd; }
.step-symbol .icon { width: 20px; height: 20px; }
.steps h3 { font-size: 17px; line-height: 1.6; margin-bottom: 12px; letter-spacing: 0; }
.steps p { font-size: 14px; line-height: 1.85; color: var(--muted); }
.culture { background: #0e1520; border-color: var(--line); }
.culture-layout { gap: 80px; }
.culture-orbit { display: none; }
.mode-tabs { margin-top: 32px; gap: 0; }
.mode-tabs > button { font-size: 14px; min-height: 44px; padding-block: 12px; }
.mode-panel { font-size: 14px; line-height: 1.85; color: #b9c3d1; margin-top: 16px; padding-inline-start: 16px; }
.culture-image { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.culture-image > a { font-size: 12px; }
.culture-name { margin: 20px 0 0; padding: 20px 24px; text-align: start; background: var(--panel2); border: 0; border-inline-start: 2px solid #d5b681; border-radius: 0 8px 8px 0; box-shadow: none; }
.mini-brand { justify-content: flex-start; font-size: 12px; color: #b9c3d1; letter-spacing: 0; margin-bottom: 12px; }
.culture-name > span:nth-child(2) { justify-content: flex-start; flex-wrap: wrap; font-size: 24px; gap: 16px; font-weight: 500; }
.culture-name small { font-size: 12px; line-height: 1.85; color: #aab5c5; letter-spacing: 0; margin-top: 12px; }
.culture-grid { gap: 16px 24px; margin-top: 24px; }
.culture-grid article { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.culture-grid article > .icon { width: 18px; height: 18px; color: #afbacb; margin-bottom: 12px; }
.culture-grid h3 { font-size: 16px; margin-bottom: 8px; font-weight: 500; }
.culture-grid p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.language-world { width: 64px; height: 64px; margin-bottom: 24px; color: #b4becd; }
.language-world > .icon { width: 64px; height: 64px; opacity: .6; stroke-width: 1; filter: none; }
.language-world > span { display: none; }
.language-pills { gap: 12px; }
.language-pills > a { min-height: 44px; padding: 8px 20px; background: var(--panel); border-color: var(--line); border-radius: 6px; box-shadow: none; font-size: 14px; transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.language-pills > a:hover, .language-pills > a[aria-current] { transform: none; background: var(--panel2); border-color: #d7c19c66; }
.faq { padding-top: 32px; gap: 80px; }
.faq h2 { font-size: 34px; font-weight: 500; }
.faq-list summary { min-height: 64px; padding: 20px 0; font-size: 15px; }
.faq-list details p { font-size: 14px; line-height: 1.9; color: var(--muted); padding-bottom: 24px; }
.download-section { padding-bottom: 32px; }
.download-panel { background: var(--panel); border-color: #d7deea26; border-radius: 12px; padding: 40px 32px; }
.download-panel h2 { font-weight: 500; line-height: 1.45; }
.download-panel > p { font-size: 15px; color: var(--muted); margin-top: 16px; }
.download-panel .section-index { font-size: 12px; letter-spacing: 0; }
.download-panel > .download-note { font-size: 12px; color: #a0adbf; margin-top: 16px; }
.pending-button { background: #cbb88e; opacity: 1; color: #20232a; }
.pending-button:hover { background: #cbb88e; }
.site-footer { padding-block: 24px; }
.footer-top > p, .back-top { font-size: 13px; }
.footer-bottom { color: #93a0b3; font-size: 12px; }
.footer-bottom > span:last-child { color: #a9a193; letter-spacing: .08em; font-size: 11px; }
.zoom-label { font-size: 12px; letter-spacing: 0; }
.carousel-slide { transition-timing-function: var(--ease); }
html[dir=rtl] .culture-name { border-radius: 8px 0 0 8px; }

@media (max-width: 1190px) {
  .header-inner, .header-actions { gap: 16px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 13px; }
  .section-intro { gap: 40px; }
  .feature-grid, .film-grid { gap: 20px; }
  .feature-card { padding: 24px 20px 0; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 14px; }
  .culture-layout, .faq { gap: 48px; }
  .carousel-description, .product-slide .carousel-description { font-size: 14px; }
}
@media (max-width: 960px) {
  .site-header { height: 76px; }
  .main-nav { top: 72px; background: var(--panel2); border-color: var(--line); }
  .section-pad { padding-block: 28px; }
  .faq { padding-top: 28px; }
  .download-section { padding-bottom: 28px; }
  .section-intro h2, .culture-copy h2, .languages-section h2 { font-size: 32px; }
  .section-intro > p, .culture-copy > p, .languages-section > p { font-size: 14px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card p { min-height: 72px; }
  .film-info { padding: 20px; }
  .film-title h3 { font-size: 16px; }
  .film-title { flex-wrap: wrap; gap: 8px; }
  .demo-tabs > button { font-size: 13px; padding: 12px 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .culture-name { padding: 20px; }
  .culture-name > span:nth-child(2) { font-size: 22px; gap: 12px; }
  .product-slide .carousel-description { font-size: 14px; line-height: 1.9; }
  .carousel-tags > span, .product-slide .carousel-tags > span { font-size: 12px; padding-block: 0; }
  .carousel-chapters { gap: 12px; }
  .carousel-controls { gap: 24px; }
  .chapter-number { font-size: 12px; }
}
@media (max-width: 700px) {
  .site-header { height: 72px; }
  .brand-word small { font-size: 10px; }
  .brand { gap: 8px; }
  .header-actions { gap: 16px; }
  .main-nav { top: 68px; }
  .language-menu summary { font-size: 12px; }
  .section-pad { padding-block: 24px; }
  .section-intro { flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .section-intro h2, .culture-copy h2, .languages-section h2, .faq h2 { font-size: 28px; letter-spacing: 0; }
  .section-intro > p { max-width: none; }
  .section-index { font-size: 11px; }
  .product-slide .carousel-description, .carousel-description { font-size: 14px; line-height: 1.85; margin-top: 20px; }
  .slide-eyebrow { font-size: 11px; letter-spacing: 0; }
  .product-preview-badge { font-size: 11px; margin-bottom: 12px; }
  .product-slide .carousel-tags, .carousel-tags { margin-top: 20px; gap: 8px 12px; }
  .carousel-tags > span + span, .product-slide .carousel-tags > span + span { padding-inline-start: 12px; }
  .carousel-actions, .product-slide .carousel-actions { gap: 12px; margin-top: 24px; }
  .carousel-actions > .button { font-size: 13px; min-height: 44px; padding: 12px 16px; gap: 12px; }
  .carousel-controls { gap: 16px; bottom: 20px; }
  .carousel-chapters { max-width: 120px; gap: 8px; }
  .carousel-dot { gap: 0; padding-block: 8px 12px; min-height: 44px; }
  .chapter-number { font-size: 11px; }
  .carousel-transport > button { width: 36px; height: 36px; }
  .carousel-count { margin-inline-end: 0; font-size: 11px; gap: 4px; }
  .carousel-count > b { font-size: 14px; }
  .carousel-art-credit { font-size: 11px; bottom: auto; }
  .feature-grid, .film-grid { grid-template-columns: 1fr; gap: 24px; }
  .film-title { flex-wrap: nowrap; }
  .feature-card { padding: 24px 24px 0; }
  .feature-card p { min-height: 0; }
  .feature-visual { margin-top: 0; }
  .naming-highlight { padding: 24px; gap: 16px; margin-top: 24px; }
  .naming-highlight h3 { font-size: 18px; }
  .naming-highlight .feature-icon { display: none; }
  .naming-highlight > a { max-width: none; }
  .demo-tabs { gap: 4px 8px; margin-bottom: 20px; }
  .demo-tabs > button { font-size: 12px; padding: 12px 8px; min-height: 44px; flex: 1 1 calc(33.333% - 8px); }
  .screen-chrome { padding-inline: 12px; }
  .demo-note { font-size: 12px; text-align: start; line-height: 1.85; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; padding: 24px 0; }
  .step-line { grid-row: 1 / 3; margin: 4px 0 0; align-items: flex-start; }
  .step-line > i, .step-line > .icon, .step-symbol { display: none; }
  .steps h3, .steps p { grid-column: 2; }
  .steps h3 { font-size: 17px; margin-bottom: 8px; }
  .culture-layout { gap: 40px; }
  .mode-tabs { margin-top: 24px; }
  .culture-name { padding: 20px; }
  .culture-name > span:nth-child(2) { font-size: 22px; }
  .culture-grid { gap: 16px; }
  .culture-grid h3 { font-size: 15px; }
  .language-world { margin-bottom: 24px; }
  .language-pills { gap: 8px; }
  .language-pills > a { font-size: 13px; padding: 8px 16px; }
  .faq { padding-top: 24px; gap: 24px; }
  .faq-list summary { font-size: 14px; }
  .download-section { padding-bottom: 24px; }
  .download-panel { padding: 32px 24px; }
  .download-panel h2 { font-size: 30px; }
  .download-panel > p { font-size: 14px; }
  .footer-top { gap: 24px; }
}
@media (max-width: 370px) {
  .header-inner { gap: 12px; }
  .brand-word { font-size: 23px; }
  .brand-word small { max-width: 140px; font-size: 9px; }
  .header-actions { gap: 12px; }
  .carousel-chapters { max-width: 92px; }
  .carousel-actions > .button { gap: 8px; padding-inline: 12px; }
  .culture-name > span:nth-child(2) { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .film-card, .feature-card, .language-pills > a, .play-disc { transition: none; }
  .button:active { transform: none; }
}

/* One capability selector and one shared preview replace the repeated galleries. */
.capability-demo { scroll-margin-top: 96px; }
.header-api { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; white-space: nowrap; }
.header-api .icon { width: 14px; height: 14px; transform: rotate(-45deg); }
.api-label-short { display: none; }
.header-actions { gap: 16px; }
@media (max-width: 1190px) { .header-download { display: none; } }
@media (max-width: 960px) { .api-label-full { display: none; } .api-label-short { display: inline; } }
@media (max-width: 700px) {
  .header-api { font-size: 12px; gap: 6px; }
  .header-inner, .header-actions { gap: 12px; }
  .brand-word small { max-width: 120px; }
}
@media (max-width: 370px) {
  .header-api .icon { display: none; }
  .header-actions, .header-inner { gap: 8px; }
  .brand-word small { max-width: 100px; }
  .brand-mark { width: 30px; }
  .mobile-toggle { padding: 4px; }
  .mobile-toggle .icon { width: 20px; height: 20px; }
  .language-menu summary bdi { max-width: 55px; overflow: hidden; text-overflow: ellipsis; }
}
.capabilities .demo-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; border: 0; margin-bottom: 0; }
.capabilities .demo-tabs > button { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-width: 0; min-height: 96px; padding: 16px; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-align: start; }
.capabilities .demo-tabs > button:hover { background: var(--panel2); }
.capabilities .demo-tabs > button[aria-selected=true] { border-color: #d5b68180; background: var(--panel2); color: var(--text); box-shadow: none; }
.capabilities .demo-tabs > button > .capability-tab-top { display: flex; justify-content: space-between; align-items: center; color: #aab5c5; font: 11px ui-monospace, Consolas, monospace; }
.capability-tab-top .icon { width: 18px; height: 18px; }
.capabilities .demo-tabs > button[aria-selected=true] .capability-tab-top { color: var(--gold); }
.capabilities .demo-tabs > button > .capability-tab-label { color: inherit; font-size: 14px; line-height: 1.6; }
.capabilities .demo-panel { border: 0; background: transparent; padding: 0; border-radius: 0; }
.demo-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.capability-description h3 { font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
.capability-description p { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 960px; }
.capability-description[hidden], .preview-film-link[hidden] { display: none; }
.preview-film-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 14px; flex-shrink: 0; }
.preview-film-link .icon { width: 18px; height: 18px; }
.demo-frame { padding: 4px; border: 1px solid #d7deea26; border-radius: 12px; background: var(--panel); overflow: hidden; }
@media (max-width: 1190px) {
  .capabilities .demo-tabs > button { padding: 12px; }
  .capabilities .demo-tabs > button > .capability-tab-label { font-size: 13px; }
}
@media (max-width: 960px) {
  .capabilities .demo-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .capabilities .demo-tabs > button { min-height: 80px; }
}
@media (max-width: 700px) {
  .capabilities .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .capabilities .demo-tabs > button { min-height: 72px; padding: 12px; gap: 8px; }
  .capabilities .demo-tabs > button > .capability-tab-label { font-size: 13px; }
  .demo-summary { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; }
  .capability-description h3 { font-size: 19px; }
  .demo-frame .screen-chrome { gap: 8px; }
  .demo-frame .demo-current { font-size: 11px; }
  .demo-frame .window-dots { min-width: 24px; }
}
