:root {
  --brand:      #d42c1e;
  --brand-dark: #b01e13;
  --gold:       #c88610;
  --surface:    #111113;
  --surface-2:  #1c1c20;
  --surface-3:  #252529;
  --ink:        #edeef2;
  --muted:      #8a8a9a;
  --line:       #2a2a34;
  --radius:     14px;
}

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

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */

.hero {
  background: linear-gradient(180deg, #0a0a0c 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.hero-logo {
  width: 460px;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 18px;
  flex-shrink: 0;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ── Ecosystem grid ── */

.section {
  padding: 3rem 0;
}

.section-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.ecosystem {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .ecosystem { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 680px) {
  .ecosystem   { grid-template-columns: 1fr; }
  .hero-inner  { flex-direction: column; }
  .hero-logo   { max-width: 92vw; width: 100%; }
  .hero h1     { font-size: 2rem; }
}

/* ── Cards ── */

/* Per-product accent colors */
.card--gnat     { --accent: #ffffff; }
.card--gnat .card-link { background: #686868; }
.card--gnat .card-link:hover { background: #505050; }
.card--redgnat  { --accent: #d91d14; }
.card--sandgnat { --accent: #da7e20; }
.card--sensegnat{ --accent: #8a3aa4; }
.card--gnatgui  { --accent: #2d8cb8; }

.card {
  background: var(--surface-2);
  border: 1px solid var(--accent, var(--line));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card--gnat {
  border-width: 2px;
}

.card-tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .75rem;
}

.card h2 {
  margin: 0 0 .2rem;
  font-size: 1.4rem;
  color: var(--accent, var(--brand));
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h2 a:hover {
  text-decoration: underline;
}

.card .sub {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 .75rem;
}

.card p {
  margin: 0;
  font-size: .95rem;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .4rem .9rem;
  background: var(--accent, var(--brand));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  align-self: flex-start;
}

.card-link:hover {
  opacity: .85;
  color: #fff;
}

/* ── Workflow teaser ── */

.flow-teaser {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  margin-bottom: 1rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: .5rem;
}

.flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.flow-stage--addons {
  flex: 1.2;
}

.flow-node {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem 1rem;
  flex: 1;
}

.flow-node strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.flow-node p {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

.flow-step {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: .3rem;
}

.flow-node--gnat      { border-color: #ffffff; }
.flow-node--gnat strong { color: #ffffff; }
.flow-node--sensegnat { border-color: #8a3aa4; }
.flow-node--sensegnat strong { color: #8a3aa4; }
.flow-node--sandgnat  { border-color: #da7e20; }
.flow-node--sandgnat strong { color: #da7e20; }
.flow-node--redgnat   { border-color: #d91d14; }
.flow-node--redgnat strong { color: #d91d14; }

.flow-actions {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  justify-content: flex-end;
}

.flow-actions a {
  color: var(--muted);
  text-decoration: none;
}

.flow-actions a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .flow-teaser  { flex-direction: column; }
  .flow-arrow   { justify-content: center; transform: rotate(90deg); }
}

/* ── Presentation decks ── */

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

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

.deck-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.deck-card-body {
  flex: 1;
}

.deck-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .6rem;
}

.deck-title {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.deck-desc {
  margin: 0 0 .6rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.deck-meta {
  font-size: .75rem;
  color: var(--muted);
  opacity: .7;
}

.deck-link {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  align-self: flex-start;
}

.deck-link:hover {
  background: var(--brand-dark);
  color: #fff;
}

.deck-card--soon {
  opacity: .55;
}

.deck-coming {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ── Divider ── */

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Footer ── */

footer {
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .875rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--brand);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}
