/* kobalthq.com landing page. Colors, type and components come from /brand/ (tokens.css, kobalt.css). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body.ko { margin: 0; overflow-x: hidden; font-size: var(--ko-site-text-base); line-height: var(--ko-site-text-base-lh); }
h1, h2, h3, p { margin: 0; }
a { color: var(--ko-primary); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ko-bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--ko-line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top .ko-logo img { height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a:not(.ko-btn) { color: var(--ko-text-muted); text-decoration: none; font-weight: 500; }
.top nav a:not(.ko-btn):hover { color: var(--ko-text); }

/* Hero, on a faint tile grid */
.hero { padding: 96px 0 80px; --grid: color-mix(in srgb, var(--ko-text) 5%, transparent);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.hero-grid { display: grid; grid-template-columns: 1fr 220px; gap: 56px; align-items: center; }
.hero h1 { margin-top: 12px; max-width: 13em; font: 600 var(--ko-site-heading-lg)/var(--ko-site-heading-lg-lh) var(--ko-font-display); letter-spacing: -0.02em; }
.lead { margin-top: 20px; max-width: 36em; color: var(--ko-text-muted); font-size: var(--ko-site-text-lg); line-height: var(--ko-site-text-lg-lh); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--ko-line); }
.section h2 { max-width: 20em; font: 600 var(--ko-site-heading-md)/var(--ko-site-heading-md-lh) var(--ko-font-display); letter-spacing: -0.015em; }
.sub { margin-top: 12px; max-width: 44em; color: var(--ko-text-muted); }
.alt { background: var(--ko-surface-sunken); }
.grid { display: grid; gap: 16px; margin-top: 32px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
article { background: var(--ko-surface); border: 1px solid var(--ko-line); border-radius: var(--ko-radius-lg); padding: 24px; }
article h3 { margin-bottom: 8px; font-size: var(--ko-site-text-lg); line-height: 1.3; font-weight: 600; }
article p { color: var(--ko-text-muted); font-size: 16px; line-height: 1.55; }

/* Types and records */
.model { display: flex; align-items: stretch; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.node { flex: 1 1 200px; display: grid; gap: 6px; padding: 16px; background: var(--ko-surface); border: 1px solid var(--ko-line); border-radius: var(--ko-radius-md); }
.node .ko-type { color: var(--ko-text-muted); font-size: 13px; }
.node b { font: 600 20px/1.2 var(--ko-font-display); letter-spacing: -0.01em; }
.node small { color: var(--ko-text-muted); font-size: 14px; }
.node.obj { border-color: var(--ko-primary); box-shadow: inset 0 0 0 1px var(--ko-primary); }
.arrow { align-self: center; color: var(--ko-text-subtle); font-size: 22px; }

/* Components */
.comp .ko-badge { margin-bottom: 12px; }
.comp.now { border-color: var(--ko-primary); }

/* The one deep cobalt band */
.band { background: var(--ko-cobalt-900); color: #fff; border-top: 0; }
.band .sub { color: #c9d5fa; }
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: s; }
.flow li { counter-increment: s; display: grid; gap: 2px; padding: 18px 20px; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--ko-radius-lg); background: rgb(255 255 255 / .04); }
.flow li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: var(--ko-radius-xs);
  background: #fff; color: var(--ko-cobalt-900); font: 600 14px/1 var(--ko-font-mono); }
.flow b { font-weight: 600; }
.flow span { color: #c9d5fa; font-size: 15px; }
.agent-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; color: #e8edfc; }
.agent-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--ko-radius-xs); background: #f0e9fa; color: #6a33ad; font-size: 13px; font-weight: 600; }

/* CTA and footer */
.cta { text-align: center; }
.cta h2, .cta .sub { margin-inline: auto; }
.cta .sub { margin-bottom: 28px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 24px 0 40px; border-top: 1px solid var(--ko-line); color: var(--ko-text-muted); font-size: 15px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--ko-text-muted); }
.foot a:hover { color: var(--ko-text); }

@media (max-width: 720px) {
  .top nav a:not(.ko-btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .ko-element { max-width: 160px; }
  .section { padding: 56px 0; }
  .arrow { width: 100%; text-align: center; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
