/* sysx.au — marketing site styles. Plain CSS, no build step. */

:root {
  --bg: #0d1117;
  --bg-raised: #161b22;
  --bg-sunken: #010409;
  --border: #30363d;
  --border-soft: #21262d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --text-bright: #f0f3f6;
  /* Accent blues sampled from the sysx mark: #25aae1 / #005a8e */
  --accent: #25aae1;
  --accent-dim: #1e93c4;
  --accent-ink: #04121a;
  --accent-wash: rgba(37, 170, 225, 0.09);
  --focus: #25aae1;
  --code-bg: #161b22;

  --measure: 1100px;
  --measure-text: 760px;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-raised: #f6f8fa;
    --bg-sunken: #f0f3f6;
    --border: #d0d7de;
    --border-soft: #e4e8ec;
    --text: #24292f;
    --text-muted: #57606a;
    --text-bright: #0d1117;
    --accent: #005a8e;
    --accent-dim: #00456d;
    --accent-ink: #ffffff;
    --accent-wash: rgba(0, 90, 142, 0.07);
    --focus: #005a8e;
    --code-bg: #f6f8fa;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

main {
  flex: 1 0 auto;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

code {
  font-family: var(--mono);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: var(--text-bright);
}

/* ── Icons ──────────────────────────────────────────────── */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--accent-wash);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 1rem;
}

.icon-tile .icon {
  width: 1.3rem;
  height: 1.3rem;
}

/* ── Layout ─────────────────────────────────────────────── */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-text {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-text .measure {
  max-width: var(--measure-text);
}

/* ── Header / nav ───────────────────────────────────────── */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

nav.primary {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav.primary a {
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

nav.primary a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

/* ── Wordmark ───────────────────────────────────────────── */

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.wordmark .bracket {
  color: var(--accent);
}

.wordmark .cursor {
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  background: var(--accent);
  margin-left: 0.15em;
  vertical-align: -0.15em;
  animation: blink 1.4s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .cursor {
    animation: none;
  }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.wordmark-lg {
  font-size: 3rem;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 22rem at 12% -10%, var(--accent-wash), transparent 70%);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 1.75rem 0 1rem;
  max-width: 18ch;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Terminal-style strip under the hero */

.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--text-muted);
}

.ticker-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
}

.ticker-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-inner .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.page-hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50rem 18rem at 8% -20%, var(--accent-wash), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}

.page-hero p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 7px;
  border: 1px solid var(--accent-dim);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dim);
  color: var(--accent-ink);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 7px;
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* ── Sections ───────────────────────────────────────────── */

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

section h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}

p.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

p.section-outro {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 1.75rem 0 0;
}

.prose {
  max-width: var(--measure-text);
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ── Cards ──────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  color: var(--text-bright);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li {
  margin-bottom: 0.35rem;
}

/* ── Differentiators ────────────────────────────────────── */

.diff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2rem;
}

.diff-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
}

.diff-item .icon-tile {
  margin-bottom: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.diff-item h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.06rem;
  color: var(--text-bright);
}

.diff-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ── Feature page groups ────────────────────────────────── */

.feature-group {
  margin-bottom: 3.25rem;
  max-width: var(--measure-text);
}

.feature-group:last-child {
  margin-bottom: 0;
}

.feature-group h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.28rem;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.35rem;
}

.feature-group h2 .icon {
  color: var(--accent);
  width: 1.3rem;
  height: 1.3rem;
}

.feature-group ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.feature-group li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.feature-group li:last-child {
  margin-bottom: 0;
}

.feature-group li strong {
  color: var(--text-bright);
}

/* ── Spec table ─────────────────────────────────────────── */

.spec-table {
  width: 100%;
  max-width: var(--measure-text);
  border-collapse: collapse;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  width: 13rem;
  background: var(--bg-raised);
}

.spec-table td {
  color: var(--text);
  font-size: 0.97rem;
}

/* ── Mode split (deployment) ────────────────────────────── */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mode {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.mode h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-bright);
}

.mode h3 .icon {
  color: var(--accent);
  margin-top: 0.18em;
}

.mode p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ── CTA band ───────────────────────────────────────────── */

.cta-band {
  text-align: center;
  padding: 4.5rem 0;
  background:
    radial-gradient(46rem 16rem at 50% 120%, var(--accent-wash), transparent 70%);
}

.cta-band h2 {
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
}

/* ── Contact page ───────────────────────────────────────── */

.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  max-width: 460px;
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text-bright);
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card .big {
  margin-top: 0.75rem;
}

.contact-card .big a,
.contact-card .big span {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent);
  word-break: break-word;
}

.contact-card p.hours {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: var(--measure-text);
  display: grid;
  gap: 0.85rem;
}

.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.contact-points .icon {
  color: var(--accent);
  margin-top: 0.28em;
}

/* ── Footer ─────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-sunken);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

footer.site nav a:first-child {
  margin-left: 0;
}

footer.site nav a:hover {
  color: var(--accent);
}

/* ── Small screens ──────────────────────────────────────── */

/* Two-column grids collapse to one before the cards get cramped. */
@media (max-width: 780px) {
  .grid,
  .diff-list,
  .mode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }

  .wordmark-lg {
    font-size: 2.25rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .cta-band {
    padding: 3.25rem 0;
  }

  .diff-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  footer.site .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  footer.site nav a {
    margin-left: 0;
    margin-right: 1.25rem;
  }
}
