/* Fillside landing page — brand palette from design/tokens/fillside.tokens.css
   (modern skin, dark default). Self-contained, no external fonts or assets. */

:root {
  /* modern / dark */
  --fs-bg: #1c1c1e;
  --fs-surface: #2c2c2e;
  --fs-surface-2: #3a3a3c;
  --fs-hairline: rgba(255, 255, 255, 0.08);
  --fs-text: #f5f5f7;
  --fs-text-muted: #8e8e93;
  --fs-text-faint: #636366;
  --fs-pos: #30d158;
  --fs-buy: #4c8dff;
  --fs-agent: #bf5af2;
  --fs-warn: #ff9f0a;

  --fs-font-ui: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --fs-font-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Code", monospace;
  --fs-radius-card: 12px;
  --fs-radius-chip: 13px;
  --fs-radius-control: 8px;

  --fs-max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* utility classes (kept in CSS so the strict CSP needs no inline styles) */
.no-border {
  border-bottom: none;
}

.mono {
  font-family: var(--fs-font-mono);
}

.mt-lg {
  margin-top: 26px;
}

.dot-buy {
  background: var(--fs-buy);
}

.dot-agent {
  background: var(--fs-agent);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fs-bg);
  color: var(--fs-text);
  font-family: var(--fs-font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--fs-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--fs-hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--fs-text);
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  display: block;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: var(--fs-text-muted);
}

.nav-links a:hover {
  color: var(--fs-text);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 15px;
  border: 1px solid var(--fs-hairline);
  border-radius: var(--fs-radius-control);
  color: var(--fs-text) !important;
}

.nav-cta:hover {
  background: var(--fs-surface);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--fs-hairline);
  background:
    radial-gradient(60% 120% at 80% -10%, rgba(191, 90, 242, 0.10), transparent 60%),
    radial-gradient(50% 100% at 0% 0%, rgba(76, 141, 255, 0.08), transparent 55%);
}

.eyebrow {
  display: inline-block;
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fs-agent);
  border: 1px solid rgba(191, 90, 242, 0.35);
  border-radius: var(--fs-radius-chip);
  padding: 4px 12px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 15ch;
  font-weight: 650;
}

.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--fs-text-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--fs-radius-control);
  font-size: 15px;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--fs-buy);
  color: #fff;
}

.btn-primary:hover {
  background: #3d7ef0;
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--fs-hairline);
  color: var(--fs-text);
  background: var(--fs-surface);
}

.btn-ghost:hover {
  background: var(--fs-surface-2);
  text-decoration: none;
}

/* ---------- sections ---------- */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--fs-hairline);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.kicker {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fs-text-faint);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 620;
}

.section-head p {
  color: var(--fs-text-muted);
  font-size: 17px;
  margin: 0;
}

/* pillars */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--fs-surface);
  border: 1px solid var(--fs-hairline);
  border-radius: var(--fs-radius-card);
  padding: 26px 24px;
}

.card .tag {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  color: var(--fs-agent);
  margin-bottom: 12px;
  display: block;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}

.card p {
  color: var(--fs-text-muted);
  font-size: 15px;
  margin: 0;
}

/* capability list */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}

@media (max-width: 720px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fs-hairline);
}

.cap .dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--fs-pos);
}

.cap h4 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
}

.cap p {
  margin: 0;
  font-size: 14px;
  color: var(--fs-text-muted);
}

/* open-source strip */
.oss {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--fs-surface);
  border: 1px solid var(--fs-hairline);
  border-radius: var(--fs-radius-card);
  padding: 28px 30px;
}

.oss .badge {
  font-family: var(--fs-font-mono);
  font-size: 13px;
  color: var(--fs-pos);
  border: 1px solid rgba(48, 209, 88, 0.35);
  border-radius: var(--fs-radius-chip);
  padding: 6px 14px;
  white-space: nowrap;
}

.oss p {
  margin: 0;
  color: var(--fs-text-muted);
  font-size: 15px;
  flex: 1 1 340px;
}

/* company / contact */
.company-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
}

.company-grid p {
  color: var(--fs-text-muted);
  font-size: 16px;
}

.factsheet {
  background: var(--fs-surface);
  border: 1px solid var(--fs-hairline);
  border-radius: var(--fs-radius-card);
  padding: 24px;
  font-size: 14px;
}

.factsheet dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
}

.factsheet dt {
  color: var(--fs-text-faint);
  font-family: var(--fs-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.factsheet dd {
  margin: 0;
  color: var(--fs-text);
}

/* ---------- footer ---------- */
footer.site {
  padding: 40px 0 60px;
  color: var(--fs-text-faint);
  font-size: 13px;
}

footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

footer.site a {
  color: var(--fs-text-muted);
}

.disclaimer {
  margin-top: 20px;
  max-width: 80ch;
  color: var(--fs-text-faint);
  font-size: 12px;
  line-height: 1.6;
}
