/* AOS site — landing page and demo index.
 *
 * The login gate lives in gate.css, deliberately separate: client demos load the
 * gate but must not inherit this file's body and heading rules.
 *
 * Type scale from .claude/skills/demo-design/references/design-system.md; brand
 * colours sampled from the logo. */

:root {
  /* Brand navy and orange sampled from assets/aos-logo.png, so the site matches
     the mark exactly rather than approximately. */
  --navy: #080e3f;
  --orange: #fb4601;
  --ink: #0f172a;
  --body: #475569;
  --muted: #75849a;
  --line: #e5e9f0;
  --page: #f4f7fb;
  --card: #ffffff;
  --blue: #3d63ea;
  --green: #34a853;
  --amber: #f2aa3a;
  --radius: 11px;
}

/* ── Brand bar ──────────────────────────────────────────────────────────────
   The logo's "Agentic Operating System" text is brand navy, so it needs a light
   background. It sits in its own white band above the navy masthead rather than
   on it, where the wordmark would disappear. */

.brandbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
}

.brandbar img {
  display: block;
  width: 168px;
  max-width: 46vw;
  height: auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

a {
  color: var(--blue);
}

/* ── Landing ────────────────────────────────────────────────────────────── */

.masthead {
  background: var(--navy);
  color: #fff;
  padding: 84px 32px 76px;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}

.masthead h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: #c3cede;
  max-width: 660px;
  margin: 0;
}

main {
  padding: 56px 32px 88px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px;
}

.pillar:nth-child(2) {
  border-top-color: var(--green);
}
.pillar:nth-child(3) {
  border-top-color: var(--orange);
}
.pillar:nth-child(4) {
  border-top-color: #7c5cff;
}

.pillar h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}

.pillar p {
  font-size: 13px;
  margin: 0;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.link-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.link-card span {
  font-size: 13px;
  color: var(--body);
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 32px 44px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Demo index (internal, behind the gate) ─────────────────────────────── */

.index-head {
  background: var(--navy);
  color: #fff;
  padding: 40px 32px;
}

.index-head h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.index-head p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #c3cede;
}

table.demos {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.demos th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #fafbfd;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

table.demos td {
  font-size: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

table.demos tr:last-child td {
  border-bottom: 0;
}

table.demos tr:hover td {
  background: #fafbfd;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .brandbar {
    padding: 13px 20px;
  }

  .masthead {
    padding: 52px 20px 46px;
  }

  .masthead h1 {
    font-size: 29px;
  }

  .lede {
    font-size: 15px;
  }

  main {
    padding: 36px 20px 60px;
  }

  .index-head,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  table.demos {
    display: block;
    overflow-x: auto;
  }
}
