/* CoreFlow — landing styles.
 *
 * The palette is the client's own material: process inks and the cool white of
 * BOPP film, the substrate their presses actually run. The colour bar — the
 * strip of solid ink patches printed on the edge of every press sheet for
 * density control — is the page's one structural signature. It appears as the
 * top rule and as the rail the production line runs along; nowhere else.
 */

:root {
  /* Substrate: BOPP film white — cool and slightly blue, not paper cream. */
  --film: #e9eef1;
  --film-deep: #dde5ea;
  --key: #14181c;
  --key-soft: #5b666f;
  --hairline: #c3d0d8;

  /* Process inks, at trade values. */
  --cyan: #00a0df;
  --magenta: #ec008c;
  --yellow: #ffd200;

  /* CoreFlow blue — the logo mark, and the only colour that acts. */
  --blue: #1668f0;
  --blue-deep: #1039a8;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --rule: 1px solid var(--hairline);
}

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

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

body {
  margin: 0;
  background: var(--film);
  color: var(--key);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- colour bar
 * Density patches, as they sit on the trim edge of a press sheet.
 */
.bar {
  display: flex;
  height: 6px;
}

.bar span {
  flex: 1;
}

.bar span:nth-child(1) { background: var(--cyan); }
.bar span:nth-child(2) { background: var(--magenta); }
.bar span:nth-child(3) { background: var(--yellow); }
.bar span:nth-child(4) { background: var(--key); }
.bar span:nth-child(5) { background: var(--blue); }

/* ------------------------------------------------------------------- shell */
.wrap {
  width: min(1180px, 100% - var(--gut) * 2);
  margin-inline: auto;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

nav.top-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

nav.top-nav a {
  text-decoration: none;
  color: var(--key-soft);
}

nav.top-nav a:hover {
  color: var(--key);
}

/* --------------------------------------------------------------- type scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--key-soft);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--key-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--key);
  background: var(--key);
  color: var(--film);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: transparent;
  color: var(--key);
}

.btn.ghost:hover {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--key-soft);
}

/* ------------------------------------------------------------------- hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

/* ------------------------------------------------------- the line (signature)
 * A real sequence: material enters as film and leaves as finished pallets, and
 * it passes these stations in this order. The numbering is the station order on
 * the floor, not decoration — which is the only reason it is here.
 */
.line {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 0;
  overflow-x: auto;
}

.line-rail {
  display: flex;
  height: 4px;
  min-width: 640px;
}

.line-rail span {
  flex: 1;
}

.line-rail span:nth-child(1) { background: var(--cyan); }
.line-rail span:nth-child(2) { background: var(--magenta); }
.line-rail span:nth-child(3) { background: var(--yellow); }
.line-rail span:nth-child(4) { background: var(--blue); }
.line-rail span:nth-child(5) { background: var(--key); }

.stations {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  min-width: 640px;
}

.station {
  padding: 1.4rem 1.1rem 1.6rem;
  border-right: var(--rule);
}

.station:last-child {
  border-right: 0;
}

.station .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--key-soft);
  display: block;
  margin-bottom: 0.5rem;
}

.station .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.3rem;
}

.station p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--key-soft);
}

/* ---------------------------------------------------------------- sections */
section.band {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: var(--rule);
}

.cols {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cell p {
  margin: 0;
  color: var(--key-soft);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------- downloads */
.dl-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.dl {
  border: var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dl.primary {
  border-color: var(--key);
  border-width: 2px;
  background: #fff;
}

.dl .os {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.dl .spec {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--key-soft);
}

.dl a.btn {
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------------ footer */
footer {
  border-top: var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--key-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

footer a {
  color: var(--key-soft);
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .reveal:nth-child(2) { animation-delay: 0.05s; }
  .reveal:nth-child(3) { animation-delay: 0.1s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

@media (max-width: 640px) {
  nav.top-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  nav.top-nav .hide-sm {
    display: none;
  }
}
