/* SysTec Integration Hub — editorial design system (aligned with the
   CausaX website tokens: beige/black, flat, serif display, no CDNs). */

:root {
  --bg: #EDE8DE;
  --bg-deep: #E8E2D3;
  --paper: #FBF9F3;
  --black: #0F0F0E;
  --ink: #141410;
  --body: #0B0B0B;
  --cream: #EFEAE0;
  --muted: #696559;
  --muted-on-black: #8C8677;
  --divider: #C9C0A9;
  --serif: "Spectral", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --logo: "Jost", "Inter", system-ui, sans-serif;
  /* ImigraData wordmark (aligned with imigradata.com): Data in gold,
     Integration HUB in bright white on dark surfaces */
  --brand-gold: #E5C158; /* bright gold (owner request) */
  --brand-white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root { --header-h: 5.4rem; }

/* Fullpage behaviour: exactly one section visible at a time; scrolling
   snaps page by page (sections taller than the viewport stay reachable —
   the spec allows free scrolling inside oversized snap areas). */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--black);
  color: var(--cream);
  border-bottom: 1px solid rgba(239, 234, 224, 0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
}

.brand {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--brand-white);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-gold { color: var(--brand-gold); font-weight: 500; }
.brand .brand-hub { color: var(--brand-white); font-weight: 600; letter-spacing: 0.06em; }

/* Product name inside body copy: same treatment everywhere.
   On light sections 'Imigra'/'Integration HUB' switch to ink for
   readability; the gold 'Data' stays constant. */
.brand-name { font-weight: 600; white-space: nowrap; }
.brand-name .brand-gold { color: var(--brand-gold); }
.on-black .brand-name, .on-black .brand-name .brand-hub { color: var(--brand-white); }
.brand-name, .brand-name .brand-hub { color: var(--ink); }
.on-black .brand-name .brand-hub, .on-black .brand-name { color: var(--brand-white); }

.langs { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.langs button {
  background: none; border: none; cursor: pointer;
  color: var(--muted-on-black);
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.45rem;
  text-transform: uppercase;
}
.langs button[aria-pressed="true"] {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.langs button:hover { color: var(--cream); }

/* ---------- sections (one full page each) ---------- */
section {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: clamp(2.2rem, 5vh, 4rem) clamp(1.2rem, 6vw, 6rem);
}
.inner { max-width: 1080px; margin: 0 auto; width: 100%; }

.kicker {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.on-black .kicker { color: var(--muted-on-black); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 1.2rem; max-width: 26ch; }
h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.12rem; color: var(--ink); margin-bottom: 0.6rem;
}

.on-black { background: var(--black); color: var(--cream); }
.on-black h1, .on-black h2, .on-black h3 { color: var(--cream); }
.on-black p { color: var(--cream); }

.lead {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  max-width: 62ch; margin-top: 1.6rem;
  color: inherit;
}

.status-line {
  margin-top: 2.4rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-on-black);
  border-top: 1px solid rgba(239, 234, 224, 0.2);
  padding-top: 1.1rem;
  max-width: 62ch;
}

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 1px; background: var(--divider); margin-top: 2.6rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); padding: 2rem 1.7rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .tag {
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.9rem;
}

ul.plain { list-style: none; margin-top: 1.8rem; max-width: 68ch; }
ul.plain li {
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: minmax(11rem, 16rem) 1fr; gap: 1rem;
  font-size: 0.95rem;
}
.on-black ul.plain li { border-color: rgba(239, 234, 224, 0.18); }
ul.plain li b {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
}
.on-black ul.plain li b { color: var(--cream); }
ul.plain li span { color: var(--muted); }
.on-black ul.plain li span { color: var(--muted-on-black); }

/* ---------- hero visual (Nexus: messages flowing through the hub) ---------- */
#top { position: relative; }
/* smaller type in the hero so the Nexus visual breathes (owner request) */
#top h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); }
#top .lead { font-size: clamp(0.92rem, 1.55vw, 1.05rem); max-width: 58ch; }
#top .kicker { font-size: 0.64rem; }
/* copy pinned to the left; the Nexus owns the right side (owner request) */
#top .inner { margin: 0; max-width: 46rem; }
#top .inner { position: relative; z-index: 1; }
/* the Nexus lives in a right-anchored box: its hub node centres itself
   in the right 62% of the hero instead of being blindly shifted, so the
   satellites never fall out of frame on wide screens */
.hero-viz {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  overflow: hidden; opacity: 0.55; pointer-events: none;
}
.hero-viz svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero-viz { width: 100%; opacity: 0.35; } }

/* ---------- CTA ---------- */
.cta {
  display: inline-block; margin-top: 2.2rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: inherit; text-decoration: underline;
  text-underline-offset: 5px;
  transition: transform 120ms ease;
}
.cta:hover { transform: translateY(-2px); }

/* ---------- footer (snaps together with the end of the page) ---------- */
footer {
  background: var(--black); color: var(--muted-on-black);
  padding: 3rem clamp(1.2rem, 6vw, 6rem);
  font-size: 0.8rem; line-height: 2;
  scroll-snap-align: end;
}
footer .byline { color: var(--cream); }
footer a { color: var(--muted-on-black); }
footer a:hover { color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  ul.plain li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: 0.6rem; }
  :root { --header-h: 7.6rem; }
}
