/*
  Public website CSS (shared layout + pages).

  The public site mirrors the /c365 product shell visually while keeping the
  marketing/CMS templates independent from the fixed application layout.
*/

:root {
  --purple: #793bf2;
  --purple-hover: #8a52f5;
  --purple-15: rgba(121, 59, 242, 0.15);
  --text-heading: #eadff0;
  --text-body: #a3a0ae;
  --text-muted: #777280;
  --bg: #0a0616;
  --surface: #120e1e;
  --surface-selected: #1d1a29;
  --stroke: #1d1a29;
  --stroke-strong: rgba(121, 59, 242, 0.38);
  --cyan: #6ee7f9;
  --green: #34d399;
  --rose: #f87171;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 59, 242, 0.56) rgba(18, 14, 30, 0.72);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 59, 242, 0.5) rgba(18, 14, 30, 0.5);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(18, 14, 30, 0.55);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(121, 59, 242, 0.76), rgba(82, 58, 145, 0.72));
  border: 2px solid rgba(18, 14, 30, 0.92);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(138, 82, 245, 0.92), rgba(121, 59, 242, 0.82));
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 22, 0.82), rgba(10, 6, 22, 1) 42%),
    radial-gradient(820px 420px at 72% 0%, rgba(121, 59, 242, 0.24), transparent 64%),
    var(--bg);
  color: var(--text-heading);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 72%);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: var(--text-heading);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(29, 26, 41, 0.86);
  border-radius: 16px;
  background: rgba(18, 14, 30, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text-heading);
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(29, 26, 41, 0.55);
}

.brand .name {
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(18, 14, 30, 0.78);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.btn-like:hover {
  border-color: rgba(121, 59, 242, 0.42);
  background: var(--surface-selected);
  color: var(--text-heading);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(121, 59, 242, 0.58);
  border-radius: 12px;
  background: var(--purple);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 12px 26px rgba(121, 59, 242, 0.26);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 82, 245, 0.8);
  background: var(--purple-hover);
  color: #ffffff;
}

.cta-alt,
.cta-alt2 {
  background: var(--surface);
  color: var(--text-heading);
  box-shadow: none;
}

.cta-alt:hover,
.cta-alt2:hover {
  background: var(--surface-selected);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 30px;
  align-items: center;
  min-height: 620px;
  padding: 26px 0 34px;
}

.hero > div:first-child {
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(121, 59, 242, 0.46);
  border-radius: 999px;
  background: rgba(121, 59, 242, 0.14);
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-heading);
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 58px;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 em {
  color: #ffffff;
  font-style: normal;
}

p.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.7;
}

.panel {
  max-width: 720px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(18, 14, 30, 0.72);
}

.panel strong {
  display: block;
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 700;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(29, 26, 41, 0.62);
  color: var(--text-body);
  font-size: 12px;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(18, 14, 30, 0.82);
  box-shadow: var(--shadow);
}

.hero-art {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(29, 26, 41, 0.94), rgba(18, 14, 30, 0.98)),
    var(--surface);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/hero.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: saturate(0.88);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(121, 59, 242, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: contain;
  opacity: 0;
}

.hero-art:has(.product-preview) img {
  display: none;
}

.product-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  height: 100%;
  min-height: 470px;
  padding: 16px;
}

.preview-sidebar,
.preview-main {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(18, 14, 30, 0.88);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.preview-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(121, 59, 242, 0.2);
  border: 1px solid rgba(121, 59, 242, 0.35);
}

.preview-nav {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.preview-nav span {
  display: block;
  height: 30px;
  border-radius: 10px;
  background: rgba(29, 26, 41, 0.82);
}

.preview-nav span:nth-child(2) {
  background: var(--surface-selected);
  box-shadow: inset 3px 0 0 var(--purple);
}

.preview-profile {
  width: 42px;
  height: 42px;
  margin-top: auto;
  border-radius: 12px;
  background: var(--purple);
}

.preview-main {
  min-width: 0;
  padding: 18px;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.preview-title {
  width: 44%;
  height: 24px;
  border-radius: 8px;
  background: var(--text-heading);
  opacity: 0.88;
}

.preview-search {
  width: 34%;
  height: 34px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-agent {
  min-height: 128px;
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
}

.preview-agent:nth-child(1) {
  border-color: rgba(121, 59, 242, 0.48);
  background: linear-gradient(180deg, rgba(121, 59, 242, 0.18), rgba(18, 14, 30, 0.94));
}

.preview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.preview-line {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(234, 223, 240, 0.78);
}

.preview-line.short {
  width: 66%;
  background: rgba(163, 160, 174, 0.52);
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.preview-kpi {
  height: 70px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(29, 26, 41, 0.62);
}

#business-cases,
#features,
.prose.card,
.game-card {
  padding: 22px;
}

.section-spaced {
  margin-top: 22px;
}

h2 {
  margin: 0;
  color: var(--text-heading);
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.feature {
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 59, 242, 0.44);
  background: var(--surface-selected);
}

.feature h3 {
  margin: 0 0 7px;
  color: var(--text-heading);
  font-size: 16px;
  line-height: 1.25;
}

.feature p {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: var(--text-body);
}

.prose h1,
.prose h2 {
  margin: 0 0 10px;
}

.prose h1 {
  font-size: 36px;
  line-height: 1.1;
}

.prose h2 {
  margin-top: 20px;
  font-size: 20px;
}

.prose p,
.prose li,
.cms-block {
  color: var(--text-body);
}

.prose ul {
  margin: 10px 0 0 18px;
}

.cms-block {
  margin-top: 12px;
}

.cms-block :where(p, ul, ol) {
  margin-top: 10px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.game-card {
  margin-top: 18px;
}

.game {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(18, 14, 30, 0.72);
}

.game-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-body);
  font-size: 14px;
}

.game-round {
  margin-left: auto;
}

.game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.game-btn,
.game-btn-secondary {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface-selected);
  color: var(--text-heading);
  font-weight: 750;
  cursor: pointer;
}

.game-btn {
  flex: 1;
  min-width: 72px;
  background: rgba(121, 59, 242, 0.18);
}

.game-btn:hover,
.game-btn-secondary:hover {
  border-color: rgba(121, 59, 242, 0.46);
}

.game-log {
  min-height: 22px;
  margin-top: 12px;
  color: var(--text-body);
  font-size: 14px;
}

.game-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-art {
    min-height: 390px;
  }

  .product-preview {
    min-height: 390px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, 1180px);
    padding-top: 12px;
  }

  header {
    position: relative;
    top: auto;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 20px;
    padding-top: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  p.lead {
    font-size: 16px;
  }

  .hero-art,
  .product-preview {
    min-height: 330px;
  }

  .product-preview {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .preview-sidebar,
  .preview-main {
    border-radius: 10px;
  }

  .preview-sidebar {
    padding: 10px;
  }

  .preview-logo,
  .preview-profile {
    width: 34px;
    height: 34px;
  }

  .preview-main {
    padding: 12px;
  }

  .preview-topline {
    flex-direction: column;
    gap: 10px;
  }

  .preview-title,
  .preview-search {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-agent {
    min-height: 94px;
  }

  .preview-grid .preview-agent:nth-child(n + 3),
  .preview-kpis {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  #business-cases,
  #features,
  .prose.card,
  .game-card {
    padding: 16px;
  }
}


/* homepage-mobile-hierarchy-2026-08-28 */
.hero{grid-template-areas:"copy art" "quick art";grid-template-rows:auto auto;align-items:start}
.hero-copy{grid-area:copy;align-self:end;min-width:0}
.hero-art{grid-area:art;align-self:stretch}
.hero-art:not(:has(.product-preview)) img{min-height:0;opacity:.82}
.quickstart-panel{grid-area:quick;width:100%;margin-top:20px}
.quickstart-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 0;padding:0;list-style:none;counter-reset:quickstart}
.quickstart-list li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;min-width:0;color:var(--text-body);font-size:13px;line-height:1.35;counter-increment:quickstart}
.quickstart-list li::before{display:inline-grid;width:32px;height:32px;place-items:center;border:1px solid rgba(121,59,242,.48);border-radius:50%;background:var(--purple-15);color:#fff;font-weight:800;content:counter(quickstart)}
.lead-mobile{display:none}
@media(max-width:980px){.hero{grid-template-areas:"copy" "art" "quick";grid-template-rows:auto}.hero-copy{align-self:auto}.quickstart-panel{margin-top:0}}
@media(max-width:680px){
.wrap{width:min(100% - 40px,1180px)}
header{position:sticky;top:8px;flex-direction:row;align-items:center;min-height:62px;padding:8px 10px}
.brand{gap:9px}.brand img{width:40px;height:40px}.top-nav{flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end;margin-inline-start:auto}.top-nav .cta{min-height:44px}
.hero{gap:18px;padding:14px 0 26px}.hero h1{margin-top:14px;font-size:clamp(32px,9.5vw,38px);line-height:1.06}
.lead-desktop{display:none}.lead-mobile{display:block}p.lead{margin-top:14px;font-size:16px;line-height:1.55}
.hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.hero-actions .cta{min-height:46px;padding-inline:10px}.hero-actions .cta:first-child{grid-column:1/-1}
.hero-art,.product-preview{min-height:210px}.product-preview{height:210px;grid-template-columns:52px 1fr;gap:8px;padding:8px}.product-preview .preview-sidebar,.product-preview .preview-main{padding:8px}.product-preview .preview-topline{flex-direction:row;gap:8px;margin-bottom:10px}.product-preview .preview-title{width:54%}.product-preview .preview-search{width:38%}.product-preview .preview-agent{min-height:80px}.product-preview .preview-grid .preview-agent:nth-child(n+2){display:none}.hero-art:not(:has(.product-preview)) img{height:210px;object-fit:contain}
.panel{padding:15px}.quickstart-list{grid-template-columns:1fr;gap:12px}.quickstart-list li{min-height:44px;padding:5px 8px;border:1px solid var(--stroke);border-radius:12px;background:rgba(29,26,41,.5);font-size:14px}
#business-cases .grid{display:flex;gap:12px;margin-inline:-16px;padding:0 16px 8px;overflow-x:auto;scroll-padding-inline:16px;scroll-snap-type:inline mandatory}
#business-cases .feature{flex:0 0 min(82vw,300px);min-height:140px;scroll-snap-align:start}
}
@media(max-width:360px){.wrap{width:min(100% - 28px,1180px)}.brand .name{font-size:14px}.top-nav .cta{padding-inline:12px}}
