/* ============================================================
   TechNexus Marketing UI Kit · landing page styles
   Type-led, cream-on-cream, forest accents.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--tn-paper); }
body { font-family: var(--font-body); color: var(--tn-ink-soft); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; }
em { font-style: normal; }

/* ─── Section frame ─── */
.tx-section {
  padding: clamp(80px, 10vw, 160px) clamp(24px, 5vw, 80px);
  max-width: 1320px;
  margin: 0 auto;
}
.tx-section--cream {
  background: var(--tn-paper-soft);
  max-width: none;
  padding-inline: clamp(24px, 5vw, 80px);
}
.tx-section--cream > * { max-width: 1320px; margin-inline: auto; }
.tx-section--deep {
  background: var(--tn-paper-deeper);
  max-width: none;
  padding-inline: clamp(24px, 5vw, 80px);
}
.tx-section--deep > * { max-width: 1320px; margin-inline: auto; }
.tx-section--ink {
  background: var(--tn-ink);
  color: var(--tn-paper-soft);
  max-width: none;
  padding-inline: clamp(24px, 5vw, 80px);
}
.tx-section--ink > * { max-width: 1320px; margin-inline: auto; }

.tx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tn-signal);
}
.tx-eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--tn-signal);
}
.tx-section--ink .tx-eyebrow { color: var(--tn-blush); }
.tx-section--ink .tx-eyebrow::before { background: var(--tn-blush); }

.tx-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--tn-ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.tx-h2 em { font-style: italic; color: var(--tn-signal); }
.tx-h2 > span { display: block; }
.tx-h2 { width: 100%; }
.tx-section--ink .tx-h2 { color: var(--tn-paper); }
.tx-section--ink .tx-h2 em { color: var(--tn-blush); }

.tx-sub {
  font-size: 20px; line-height: 1.5;
  color: var(--tn-mute-strong);
  max-width: 56ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.tx-section--ink .tx-sub { color: rgba(250, 247, 240, 0.7); }

.tx-section__head { margin-bottom: 64px; }
.tx-section__head--center { text-align: center; }
.tx-section__head--center .tx-eyebrow { display: inline-flex; }
.tx-section__head--center .tx-sub { margin-inline: auto; }

/* ─── Buttons ─── */
.tx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 30px;
  border-radius: 999px;
  font: 600 14px var(--font-body);
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 220ms var(--ease-out), color 220ms, transform 120ms;
}
.tx-btn--primary { background: var(--tn-ink); color: var(--tn-paper); }
.tx-btn--primary:hover { background: var(--tn-ink-deep); }
.tx-btn--primary:active { transform: scale(0.98); }
.tx-btn--secondary { background: transparent; color: var(--tn-ink); border-color: var(--tn-ink); }
.tx-btn--secondary:hover { background: var(--tn-ink); color: var(--tn-paper-soft); }
.tx-section--ink .tx-btn--secondary { color: var(--tn-paper-soft); border-color: var(--tn-paper-soft); }
.tx-section--ink .tx-btn--secondary:hover { background: var(--tn-paper-soft); color: var(--tn-ink); }
.tx-btn--ghost { background: transparent; color: var(--tn-signal); padding: 0 14px; height: 44px; }
.tx-btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ─── Nav ─── */
.tx-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 36px;
  height: 80px;
  padding: 0 clamp(24px, 5vw, 64px);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tn-line);
}
.tx-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--tn-ink);
}
.tx-brand img { width: 28px; height: 28px; color: var(--tn-ink); }
.tx-brand strong {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  letter-spacing: -0.02em; line-height: 1;
}
.tx-brand strong em { font-style: italic; color: var(--tn-signal); }

.tx-nav__links { display: flex; gap: 28px; flex: 1; }
.tx-nav__links a {
  font-size: 14px; font-weight: 500; color: var(--tn-ink-soft);
  text-decoration: none; transition: color 150ms;
  position: relative; padding: 4px 0;
}
.tx-nav__links a:hover { color: var(--tn-signal); }
.tx-nav__cta { display: flex; align-items: center; gap: 14px; }
.tx-nav__phone { font-size: 13px; color: var(--tn-mute); text-decoration: none; white-space: nowrap; }

/* ─── Hero · masthead-style ─── */
.tx-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 96px);
  display: flex; flex-direction: column;
}

/* The masthead rule at the very top of the hero */
.tx-mast {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tn-ink);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tn-ink);
  margin-bottom: 36px;
  white-space: nowrap;
}
.tx-mast__L, .tx-mast__R { display: flex; gap: 22px; align-items: baseline; white-space: nowrap; }
.tx-mast__R { color: var(--tn-mute); }
.tx-mast em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: var(--tn-signal);
  font-size: 15px;
  letter-spacing: 0; text-transform: none;
  white-space: nowrap;
}

/* Two-column hero grid — headline + editorial side note */
.tx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}
.tx-hero__main { display: flex; flex-direction: column; gap: 18px; }
.tx-hero__main .tx-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tn-signal);
  display: inline-flex; align-items: center; gap: 10px;
}
.tx-hero__main .tx-eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--tn-signal);
}

.tx-hero__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.93;
  letter-spacing: -0.035em;
  color: var(--tn-ink);
  margin: 0;
  width: 100%;
}
.tx-hero__h em { font-style: italic; color: var(--tn-signal); }
.tx-hero__h > span { display: block; }

/* Right side — pullquote / byline */
.tx-hero__side {
  border-left: 1px solid var(--tn-line);
  padding: 4px 0 6px 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; line-height: 1.55; color: var(--tn-mute-strong);
  align-self: end;
}
.tx-hero__side-kicker {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tn-signal); font-weight: 600;
}
.tx-hero__side p { margin: 0; max-width: 28ch; }
.tx-hero__side strong { color: var(--tn-ink); font-weight: 600; }
.tx-hero__side-meta {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 14px;
  color: var(--tn-mute);
  margin-top: 4px;
}

.tx-hero__sub {
  max-width: 60ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--tn-mute-strong);
  margin: 0;
}
.tx-hero__sub strong { color: var(--tn-ink); font-weight: 600; }
.tx-hero__sub em {
  font-family: var(--font-display); font-style: italic;
  color: var(--tn-signal); font-weight: 400;
}

.tx-hero__cta {
  display: flex; gap: 14px; margin-top: 24px;
  flex-wrap: wrap; align-items: center;
}
.tx-hero__cta-meta {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 16px; color: var(--tn-mute);
  margin-left: 6px;
}
.tx-hero__cta-meta em { color: var(--tn-signal); font-style: italic; }

/* Stat strip — roman numerals + ink rule */
.tx-hero__strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--tn-ink);
}
.tx-hero__strip > .tx-hero__stat {
  padding: 0 28px 0 0;
  border-right: 1px solid var(--tn-line);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.tx-hero__strip > .tx-hero__stat + .tx-hero__stat { padding-left: 28px; }
.tx-hero__strip > .tx-hero__stat:last-child { border-right: 0; }
.tx-hero__stat-roman {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 16px;
  color: var(--tn-signal);
  margin-bottom: 4px;
}
.tx-hero__stat .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tn-ink);
  font-variant-numeric: tabular-nums;
}
.tx-hero__stat .num em { font-style: italic; color: var(--tn-signal); }
.tx-hero__stat .lbl {
  font-size: 13px; color: var(--tn-mute);
  margin-top: 8px; line-height: 1.45;
  max-width: 28ch;
}

/* ─── Discovery flow ─── */
.tx-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tx-flow__step {
  position: relative;
  padding-right: 24px;
}
.tx-flow__step::before {
  content: ""; display: block;
  width: 100%; height: 1px;
  background: var(--tn-line);
  margin-bottom: 24px;
}
.tx-flow__step::after {
  content: ""; position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--tn-signal);
}
.tx-flow__n {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1;
  color: var(--tn-signal);
  display: block; margin-bottom: 12px;
}
.tx-flow__t {
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  color: var(--tn-ink); margin: 0 0 8px;
}
.tx-flow__d { font-size: 14px; line-height: 1.5; color: var(--tn-mute-strong); margin: 0; }

/* ─── Agents grid ─── */
.tx-agents {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tn-line);
  border: 1px solid var(--tn-line);
  border-radius: 16px;
  overflow: hidden;
}
.tx-agent {
  background: var(--tn-card);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 200ms;
}
.tx-agent:hover { background: var(--tn-paper-soft); }
.tx-agent__num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 18px;
  color: var(--tn-signal);
}
.tx-agent__h {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--tn-ink); margin: 0;
  text-wrap: balance;
}
.tx-agent__h em { font-style: italic; color: var(--tn-signal); }
.tx-agent__d {
  font-size: 14px; line-height: 1.55;
  color: var(--tn-mute-strong); margin: 0;
}

/* ─── Industry grid ─── */
.tx-industries {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.tx-industry {
  background: var(--tn-card);
  border: 1px solid var(--tn-line);
  border-radius: 18px;
  padding: 24px 20px;
  transition: background 200ms, transform 200ms;
}
.tx-industry:hover { background: var(--tn-paper-soft); transform: translateY(-2px); }
.tx-industry__icon {
  width: 36px; height: 36px;
  color: var(--tn-signal);
  margin-bottom: 16px;
}
.tx-industry__icon svg { width: 100%; height: 100%; }
.tx-industry h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  line-height: 1.15; letter-spacing: -0.005em;
  color: var(--tn-ink); margin: 0 0 6px;
  text-wrap: balance;
}
.tx-industry p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tn-mute); }
.tx-industry--cta { background: var(--tn-ink); color: var(--tn-paper); border-color: var(--tn-ink); }
.tx-industry--cta:hover { background: var(--tn-ink-deep); }
.tx-industry--cta .tx-industry__icon { color: var(--tn-signal); }
.tx-industry--cta h3 { color: var(--tn-paper-soft); font-style: italic; }
.tx-industry--cta p { color: rgba(250, 247, 240, 0.7); }

/* ─── Comparison ─── */
.tx-cmp { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: 24px; overflow: hidden; }
.tx-cmp__head {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 24px; padding: 24px 32px;
  background: var(--tn-paper-soft);
  font-size: 13px; color: var(--tn-mute);
  letter-spacing: 0.04em;
}
.tx-cmp__head .label { font-weight: 600; color: var(--tn-mute); text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; }
.tx-cmp__head .us {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--tn-signal);
}
.tx-cmp__head .them { font-weight: 500; color: var(--tn-mute-strong); font-size: 15px; }

.tx-cmp__row {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 24px; padding: 24px 32px;
  border-top: 1px solid var(--tn-line);
  align-items: flex-start;
}
.tx-cmp__feat {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 600; font-size: 16px; color: var(--tn-ink);
}
.tx-cmp__feat .idx {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--tn-signal); font-size: 18px;
}
.tx-cmp__cell { display: flex; gap: 12px; }
.tx-cmp__cell p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tn-mute-strong); }
.tx-cmp__cell .tick, .tx-cmp__cell .dash {
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tn-paper-soft); font-weight: 700; font-size: 12px;
  margin-top: 2px;
}
.tx-cmp__cell .tick { background: var(--tn-ink); }
.tx-cmp__cell .dash { background: var(--tn-mute-soft); }

/* ─── Stats strip ─── */
.tx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--tn-line); border-bottom: 1px solid var(--tn-line); }
.tx-stat {
  padding: 56px 40px;
  border-right: 1px solid var(--tn-line);
  display: flex; flex-direction: column; gap: 8px;
}
.tx-stat:last-child { border-right: 0; }
.tx-stat .k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tn-signal); }
.tx-stat .v {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(72px, 8vw, 120px); line-height: 0.9; letter-spacing: -0.04em;
  color: var(--tn-ink); margin-top: 16px;
  font-variant-numeric: tabular-nums;
}
.tx-stat .v em { font-style: italic; color: var(--tn-signal); }
.tx-stat .l { font-size: 15px; line-height: 1.5; color: var(--tn-mute-strong); margin-top: 8px; max-width: 28ch; }

/* ─── Testimonials ─── */
.tx-testimonial {
  background: var(--tn-paper-soft);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 72px);
  max-width: 920px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
}
.tx-testimonial__q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--tn-ink);
  margin: 0;
  text-wrap: balance;
}
.tx-testimonial__q em { font-style: italic; color: var(--tn-signal); }
.tx-testimonial__meta { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--tn-line); }
.tx-testimonial__av {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tn-blush), var(--tn-signal));
  display: flex; align-items: center; justify-content: center;
  color: var(--tn-paper-soft);
  font-family: var(--font-display); font-style: italic; font-size: 22px;
}
.tx-testimonial__nm { font-weight: 600; font-size: 15px; color: var(--tn-ink); }
.tx-testimonial__tt { font-size: 13px; color: var(--tn-mute); margin-top: 2px; }
.tx-testimonial__tag {
  margin-left: auto; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tn-terracotta);
  background: var(--tn-terracotta-soft);
  padding: 6px 14px; border-radius: 999px;
}
.tx-testimonial__nav {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 32px;
}
.tx-testimonial__nav button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tn-line); border: 0;
  padding: 0; cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.tx-testimonial__nav button.on { background: var(--tn-signal); transform: scale(1.3); }

/* ─── CTA band ─── */
.tx-cta {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 32px;
  padding: clamp(72px, 10vw, 160px) 0;
}
.tx-cta__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--tn-paper);
  margin: 0;
  width: 100%;
}
.tx-cta__h em { font-style: italic; color: var(--tn-blush); }
.tx-cta__h span { display: block; }
.tx-cta__row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Footer ─── */
.tx-foot {
  background: var(--tn-ink); color: var(--tn-paper-soft);
  padding: 64px clamp(24px, 5vw, 80px) 32px;
}
.tx-foot > div { max-width: 1320px; margin-inline: auto; }
.tx-foot__top {
  display: grid; grid-template-columns: 1.4fr 3fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 240, 0.12);
}
.tx-foot__brand { display: flex; flex-direction: column; gap: 16px; }
.tx-foot__brand .lockup {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 400; font-size: 28px;
  letter-spacing: -0.02em; line-height: 1;
}
.tx-foot__brand .lockup em { font-style: italic; color: var(--tn-blush); }
.tx-foot__brand .lockup img { width: 32px; height: 32px; filter: brightness(2.5) saturate(0); }
.tx-foot__pitch {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 22px; line-height: 1.3;
  color: var(--tn-blush);
  margin: 8px 0 0; max-width: 24ch;
}
.tx-foot__contact { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(250, 247, 240, 0.65); margin-top: 12px; }
.tx-foot__contact a { color: var(--tn-paper-soft); text-decoration: none; }

.tx-foot__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
}
.tx-foot__cols h4 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250, 247, 240, 0.5);
  margin: 0 0 16px;
}
.tx-foot__cols a {
  display: block;
  color: rgba(250, 247, 240, 0.85);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 150ms;
}
.tx-foot__cols a:hover { color: var(--tn-blush); }

.tx-foot__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font-size: 12px; color: rgba(250, 247, 240, 0.5);
  letter-spacing: 0.02em;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .tx-hero__grid { grid-template-columns: 1fr; }
  .tx-hero__side { border-left: 0; border-top: 1px solid var(--tn-line); padding: 18px 0 0; }
  .tx-hero__strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tx-hero__strip > .tx-hero__stat { border-right: 0; padding: 0; }
  .tx-flow { grid-template-columns: repeat(2, 1fr); }
  .tx-agents { grid-template-columns: repeat(2, 1fr); }
  .tx-industries { grid-template-columns: repeat(3, 1fr); }
  .tx-stats { grid-template-columns: 1fr; }
  .tx-stat { border-right: 0; border-bottom: 1px solid var(--tn-line); }
  .tx-stat:last-child { border-bottom: 0; }
  .tx-cmp__head, .tx-cmp__row { grid-template-columns: 1fr; }
  .tx-foot__top { grid-template-columns: 1fr; }
  .tx-foot__cols { grid-template-columns: repeat(2, 1fr); }
  .tx-nav__links { display: none; }
}
