/* ==========================================================================
   SECTIONS: header, hero, cards, flow diagram, components, pricing, form, footer
   Each block is marked with the section it belongs to in index.html.
   ========================================================================== */

/* ---------- Header (Mistral-style bar) ----------------------------------
   Full-width bar fixed to the top, 1px bottom border, vertical dividers
   between cells. Content is limited to 1728px like the page frame. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: min(100%, 1728px);
  height: 80px;                 /* tall enough for the full-size logo */
  margin: 0 auto;
  border-inline: 1px solid var(--color-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

/* Logo is the full Hackeet wordmark (octopus + name), sized by height.
   Matches the ~180x54 logo on hackeet.com (the PNG has transparent margins). */
.brand img {
  width: auto;
  height: 64px;
}

.site-footer .brand img {
  height: 54px;
}

.site-nav {
  display: flex;
  align-items: stretch;
}

/* Nav links: 48px cells separated by 1px dividers, text-button-large style */
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
  transition: background-color 0.3s ease;
}

.site-nav a:not(.btn):hover {
  background: var(--color-surface-alt);
}

.site-nav .btn {
  align-self: center;
  height: 36px;
  margin: 0 8px 0 16px;
  padding: 0 24px;
}

.nav-toggle {
  display: none;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--color-brand-soft);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle:hover {
  background: #e8e6dc;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* Hero background (Mistral-style)
   - a frame up to 1728px wide with 1px lines on its outer edges
   - a large outlined circle, cropped by the frame
   - two vertical dividers at the edges of the content column
   Decorative only: aria-hidden, pointer-events off, sits behind the content. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__frame {
  position: relative;
  height: 100%;
  width: min(100%, 1728px);
  margin: 0 auto;
  border-inline: 1px solid var(--color-border);
}

.hero__circle {
  position: absolute;
  top: -174px;
  left: -118px;
  width: 944px;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.hero__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

/* Dividers sit at the edges of the 1120px content column */
.hero__divider--left {
  left: calc(50% - 560px);
}

.hero__divider--right {
  left: calc(50% + 559px);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  max-width: 20ch;
  margin: 18px auto 20px;
}

.hero h1 .accent {
  color: var(--color-brand);
}

/* Pixel-art image used in place of words in the headline (see assets/images/swiss-army-knife.svg) */
/* The PNG is square with transparent margins. Unrotated, the knife covers about
   65.8% of the image height, so 2em gives a knife about 1.3em tall, well above
   the height of the tallest letters (about 0.75em). */
.hero h1 .pixel-icon {
  display: inline-block;
  height: 2em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.05em;
  image-rendering: pixelated;
}

.hero__lead {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 22px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero__badges li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-lilac);
  vertical-align: middle;
}

/* Technology section diagram (assets/images/diagram.example.png) */
.technology__diagram {
  margin: 0;
}


.technology__diagram img {
  width: 100%;
  height: auto;
  border-radius: 12px;          /* same rounded corners as the code block in "Develop & deploy" */
}

/* Hero GIF (replaces the old animated flow diagram) */
.hero__visual {
  width: min(100%, 480px);
  margin: 28px auto 0;
}

.hero__visual img {
  width: 100%;
  height: auto;
  border: 0;
}

/* Flow tabs */
.flow-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 28px auto 0;
  padding: 0;
}

.flow-tab {
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 6px;              /* same rectangular, rounded-corner shape as .btn */
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.flow-tab:hover {
  background: var(--color-brand-soft);
}

.flow-tab[aria-selected="true"] {
  background: #09090b;
  border-color: #09090b;
  color: #fafafa;
}

.flow-tab[aria-selected="true"]:hover {
  background: #18181b;
}

/* Flow diagram (rendered by assets/js/flow.js) */
.flow {
  position: relative;
  width: min(100%, 860px);
  height: 320px;
  margin: 18px auto 0;
}

.flow__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-edge {
  fill: none;
  stroke: var(--color-lilac);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
  animation: flow-dash 1.2s linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -20;
  }
}

.flow-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 130px;
}

.flow-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid currentColor;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.flow-box.is-ai {
  background: var(--color-brand-soft);
}

.flow-caption {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.3;
}

.tone-blue { color: var(--tone-blue); }
.tone-amber { color: var(--tone-amber); }
.tone-green { color: var(--tone-green); }
.tone-lilac { color: var(--tone-lilac); }

/* Running prompt line under the diagram */
.prompt-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  margin: 8px auto 0;
}

.prompt-line__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.prompt-line__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--color-text);
  animation: blink 1s steps(1) infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.prompt-line__caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #fde7e7;
  color: #c0392b;
}

/* ---------- Feature cards (One platform, many uses) ---------------------- */
.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

.callout {
  margin-top: 20px;
  padding: 18px 24px;
  text-align: center;
  background: var(--color-brand-soft);
  border-radius: var(--radius-lg);
  color: var(--color-text);
}

/* ---------- Platform cards ("One platform, many uses") -------------------
   Desktop: cards are placed at random by assets/js/platform-cards.js.
   Phones: cards are stacked in a column. */
.platform-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.platform-cards.is-scattered {
  display: block;
  width: 100%;
}

/* Desktop: cards are positioned with transforms by assets/js/platform-cards.js */
.platform-cards.is-scattered .platform-card {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.platform-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--color-border);
  background: #fbfbf8;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
}

.platform-card img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

/* ---------- Two-column feature list ([01], [02]) ------------------------- */
.split {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: 1fr;
}

.feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.feature-list__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-brand);
  padding-top: 4px;
}

.feature-list h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-list p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.engine-panel {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background-image: url("../images/hero-grid.svg");
}

.engine-panel__row {
  display: flex;
  align-items: center;
  gap: 0;
}

.engine-panel__row .flow-box {
  width: 56px;
  height: 56px;
}

.engine-panel__line {
  width: 46px;
  height: 0;
  border-top: 1.5px dashed var(--color-lilac);
}

.engine-panel__engine {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.engine-panel__engine strong {
  background: var(--color-text);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.code-block {
  background: #17151f;
  color: #d8d3e8;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
}

.code-block .c-com { color: #7d7695; }
.code-block .c-kw { color: #c4a7f5; }
.code-block .c-fn { color: #8fd3b6; }

.becomes {
  margin: 14px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.component-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.component-chip--compact {
  padding: 10px 14px;
}

/* Connector icon copied from the Hackeet icon folder (assets/hackeet) */
.component-chip__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.component-chip__code {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.use-cases {
  display: grid;
  gap: 0;
  margin-top: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}

.use-case {
  padding: 24px;
  border-top: 1px solid var(--color-border);
}

.use-case:first-child {
  border-top: 0;
}

.use-case h3 {
  font-size: 1.05rem;
  margin: 10px 0 6px;
}

.use-case p {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.use-case .tag {
  font-size: 0.6rem;
}

/* ---------- Components table --------------------------------------------- */
.components-table {
  margin-top: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.components-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.components-row:first-child {
  border-top: 0;
}

.components-row__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.components-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.components-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

/* "...And many more" under the components table: same font as the section
   title (var(--font-sans), bold, tight tracking) at about three quarters of its size. */
.components-more {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
}

/* ---------- Under the hood (dark-lilac cards) ---------------------------- */
/* Coloured cards with a pixel drawing in the corner (Mistral palette, drawing
   one shade darker than the card: assets/images/hood-*.svg) */
.hood-card {
  position: relative;
  display: flex;                  /* column, so the cartouche can fill the card */
  flex-direction: column;
  padding: 18px;
  border: 0;
  color: var(--color-text);
  background-repeat: repeat;      /* the 16x16 drawing is repeated as a pattern */
  background-position: 0 0;
  background-size: 16px 16px;     /* each tile is 16 pixels, shown 1 px per pixel */
  box-shadow: none;
}

.hood-card--privacy {
  background-color: #ffaf01;
  background-image: url("../images/hood-privacy.svg");
}

.hood-card--lightweight {
  background-color: #55b3fb;
  background-image: url("../images/hood-lightweight.svg");
}

.hood-card--embedded {
  background-color: #44ba82;
  background-image: url("../images/hood-embedded.svg");
}

.hood-card h3 {
  color: var(--color-text);
  max-width: 14ch;
}

.hood-card .tag {
  align-self: flex-start;        /* keep the label at its natural width */
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-text);
}

.hood-card ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.hood-card li {
  position: relative;
  padding-left: 22px;
  color: rgba(24, 24, 27, 0.85);
  font-size: 0.93rem;
}

.hood-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-text);
}

.hood-card p {
  color: rgba(24, 24, 27, 0.85);
}

/* Cartouche: the card text sits on a rounded off-white panel, as in the Mistral
   search bar and suggestion list (#fbfbf8, soft shadow, 12px corners). */
.cartouche {
  position: relative;
  flex: 1 1 auto;                 /* all cartouches take the same height (the row height) */
  margin-top: 12px;
  padding: 14px 16px;
  background: #fbfbf8;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17, 17, 20, 0.06), 0 10px 28px rgba(17, 17, 20, 0.10);
}

.cartouche h3 {
  margin-bottom: 12px;
}

.cartouche li {
  color: var(--color-text);
}

.cartouche li::before {
  color: var(--color-text);
}

/* ---------- Case study --------------------------------------------------- */
.quote-stat {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 3px solid var(--color-brand);
}

.quote-stat strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.quote-stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.run-log {
  background: #1b1a24;
  color: #e6e2f2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.run-log__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #242230;
  color: #9d97b3;
  font-size: 0.7rem;
}

.run-log__head .tag {
  background: #b9a6e6;
  color: #1b1a24;
  font-size: 0.6rem;
}

.run-log__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #2c2a3a;
}

.run-log__name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-log__name i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
}

.run-status {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #d9f3e1;
  color: #1f7a3b;
}

.run-status--running {
  background: #fde7e7;
  color: #c0392b;
}

/* ---------- Pricing ------------------------------------------------------ */
.pricing-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}

.plan {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.plan--featured {
  border: 1px solid var(--color-brand);
  box-shadow: 0 18px 40px rgba(106, 76, 147, 0.14);
}

.plan h3 {
  font-size: 1.5rem;
  margin: 14px 0 6px;
}

.plan__price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.plan li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5f5ea;
  color: var(--tone-green);
  font-size: 0.7rem;
  font-weight: 700;
}

.option-stack {
  display: grid;
  gap: 20px;
}

.option-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.option-card .eyebrow {
  margin-bottom: 8px;
}

.option-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.option-card p {
  color: var(--color-muted);
  font-size: 0.93rem;
}

/* ---------- Contact / demo form ----------------------------------------- */
.demo {
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
  padding-block: var(--section-space);
}

/* Inverted primary button on the dark section (Mistral's dark-mode button) */
.demo .btn--primary {
  background: #fafaf4;
  color: #101013;
}

.demo .btn--primary:hover {
  background: #e4e2d6;
}

.demo .eyebrow {
  color: #bfbcac;
}

.demo .section-lead {
  color: var(--color-text-on-deep-muted);
}

.demo__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

.demo-form {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(20, 10, 40, 0.25);
  display: grid;
  gap: 16px;
}

.demo-form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.demo-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.demo-form input,
.demo-form textarea {
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
}

.demo-form textarea {
  min-height: 110px;
  resize: vertical;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 0;
  border-color: transparent;
}

.demo-form__status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--color-brand-strong);
  text-align: center;
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  padding: 28px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  text-decoration: none;
}

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

/* "Contact Us" link: bold, larger and in the Hackeet icon purple */
.site-footer a.site-footer__contact,
.site-footer a.site-footer__contact:hover {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 640px) {
  .demo-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .use-cases {
    grid-template-columns: 1fr 1fr;
  }

  .use-case {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }

  .use-case:nth-child(-n + 2) {
    border-top: 0;
  }

  .use-case:nth-child(odd) {
    border-left: 0;
  }

  .use-case:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .components-row {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }

  .pricing-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .demo__grid {
    grid-template-columns: 1fr 1fr;
  }

  .run-log {
    max-width: 480px;
    margin-left: auto;
  }
}

@media (max-width: 759px) {
  :root {
    --section-space: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    height: 56px;
    padding: 0 20px;
    border-left: 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.25rem;
  }

  .site-nav .btn {
    height: 48px;
    margin: 20px;
  }

  .flow-caption {
    font-size: 0.7rem;
  }

  .hero__divider {
    display: none;
  }

  .hero__circle {
    width: 600px;
    top: -110px;
    left: -220px;
  }
}

@media (max-width: 480px) {
  .flow {
    height: 420px;
  }
}
