/* ============================================================
   10xT — landing page styles
   Built on the 10xT design system tokens (10xt_design_system.zip)
   Palette: black / red / white. Dark-first. Archivo + JetBrains Mono.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* Base palette */
  --black: #080808;
  --white: #ffffff;
  --red: #ea3323;
  --red-dark: #cd2e20;
  --red-darker: #b1281c;
  --red-tint: #fce5e3;

  /* Neutral scale (derived from black, no blue cast) */
  --gray-950: #101010;
  --gray-900: #161616;
  --gray-800: #232323;
  --gray-700: #333333;
  --gray-600: #4d4d4d;
  --gray-500: #6f6f6f;
  --gray-400: #9a9a9a;
  --gray-300: #c4c4c4;
  --gray-200: #e2e2e2;
  --gray-100: #f2f2f2;
  --gray-50:  #fafafa;

  /* Type */
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --tracking-tight: -0.02em;
  --tracking-label: 0.14em;
  --leading-body: 1.55;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;

  /* Layout */
  --container-max: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--white); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--gray-300); }

img { max-width: 100%; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }

/* Eyebrow — section label with red dash */
.eyebrow {
  color: var(--red);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { background: var(--red-darker); }
.btn.outline {
  background: transparent;
  border: 1px solid var(--gray-700);
  font-size: 15px;
  padding: 11px 24px;
  white-space: nowrap;
}
.btn.outline:hover { background: var(--gray-900); border-color: var(--gray-500); }

/* Cards */
.card {
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  background: rgba(16, 16, 16, .85);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 8, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-900);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.site-header .logo img { height: 44px; display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
/* padding keeps the 44px touch target while the icon stays 26px */
.header-actions .icon-mail { display: flex; align-items: center; justify-content: center; padding: 9px; }
.header-actions .icon-mail img { height: 26px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 130px 0 210px;
}
.hero-bg {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 1400px;
  max-width: none;
  pointer-events: none;
  /* fade the image edges into the black page so the bitmap seam is invisible */
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 62%, #000 40%, transparent 88%);
  mask-image: radial-gradient(ellipse 58% 58% at 50% 62%, #000 40%, transparent 88%);
}
.hero .wrap { position: relative; }
.hero h1 {
  margin: 0 auto;
  font-size: clamp(42px, 7.5vw, 84px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  max-width: 900px;
}
.hero p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 660px;
  margin: 36px auto 0;
  color: var(--gray-300);
}
.hero p + p { margin: 18px auto 44px; }
.hero b { color: #fff; }

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  border-top: 1px solid var(--gray-900);
  position: relative;
  overflow: hidden;
}

/* Who we are */
.who-lines {
  position: absolute;
  right: 6%;
  top: 0;
  bottom: 0;
  display: flex;
  gap: 56px;
  opacity: .3;
  pointer-events: none;
}
.who-lines img { height: 100%; }
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 96px;
  align-items: start;
}
.who-intro { position: relative; }
.who h2 {
  margin: 22px 0 0;
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.who-sub {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 460px;
}
.who-header { margin-bottom: 52px; }
.eyebrow.seg { font-size: 15px; letter-spacing: 0.12em; }
.who-seg-h {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}
/* two product blocks: B2B, then a mirrored B2C */
.who-grid + .who-grid { margin-top: 88px; }
.who-grid.mirror { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.who-grid.mirror .who-products { order: -1; }

/* Product cards (who we are) */
.who-products {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  color: var(--white);
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.product-card:hover {
  border-color: var(--gray-600);
  background: rgba(22, 22, 22, .92);
  transform: translateY(-2px);
  color: var(--white);
}
.product-logo {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 14px;
  background: #000;
  border: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.product-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  border: 1px solid var(--gray-700);
  border-radius: 999px;
  padding: 3px 10px;
}
.product-lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-200);
  line-height: 1.4;
}
.product-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-400);
}
.product-arrow {
  align-self: flex-start;
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.product-card:hover .product-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

/* Clients — monochrome dimmed-white logo strip (centered) */
.clients .eyebrow { justify-content: center; }
.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px 80px;
  margin-top: 40px;
}
.client { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; }
.client-figure { height: 46px; display: flex; align-items: center; }
.client-logo {
  display: block;
  width: auto;
  opacity: .58;
  transition: opacity var(--duration-base) var(--ease-out);
}
.client-logo.tbc { height: 32px; }
.client-logo.lancelot { height: 44px; }
.client:hover .client-logo { opacity: .92; }
.client-name {
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease-out);
}
.client:hover .client-name { color: var(--gray-300); }

/* Our expertise */
.expertise-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1200px;
  max-width: none;
  opacity: .8;
  pointer-events: none;
}
.expertise-cards .name { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.expertise-cards img { height: 110px; }

/* Where we work / Our expertise — section lead-in */
.expertise h2,
.industries h2 {
  margin: 24px 0 56px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  max-width: 820px;
}
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.industry-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 36px;
}
.industry-card .txt { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.industry-card .name { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: var(--tracking-tight); }
.industry-card .desc { font-size: 19px; line-height: 1.5; color: var(--gray-400); }
.industry-card img { height: 130px; flex: none; }

/* How we can help you */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.help-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}
.help-card .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--red); flex: none; }
.help-card .txt { font-size: 22px; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em; }
.help-card .txt .verb { color: var(--gray-400); font-weight: 400; }

/* Technology stack */
.stack { text-align: center; }
.stack-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1300px;
  max-width: none;
  opacity: .7;
  pointer-events: none;
}
.stack h2 {
  margin: 0 0 44px;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.stack-tags span {
  border: 1px solid var(--gray-700);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 17px;
  font-family: var(--font-mono);
  background: rgba(12, 12, 12, .92);
}

/* ---------- Contact ---------- */
.contact .wrap { max-width: 760px; text-align: center; }
.contact .rule { width: 100%; display: block; }
.contact .rule.top { margin-bottom: 56px; }
.contact .rule.bottom { margin-top: 56px; }
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}
.contact .sub { font-size: 20px; margin: 20px 0 48px; color: var(--gray-300); }
.contact .sub b { color: #fff; }
.contact .alt { margin: 28px 0 0; font-size: 16px; color: var(--gray-400); }
.contact .alt a { color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 1px; }
.contact .alt a:hover { color: var(--gray-300); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray-900); padding: 56px 0; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { height: 40px; align-self: flex-start; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col.contacts { color: var(--gray-300); }
.footer-label {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.copyright { font-size: 13px; color: var(--gray-500); }
.entity { color: var(--gray-500); }

/* ---------- Legal (privacy) page — same dark surface as the landing ---------- */
.legal-body { max-width: 760px; margin: 0 auto; padding: 88px 40px 110px; }
.legal-body .eyebrow { margin-bottom: 24px; }
.legal-body h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0 0 10px;
}
.legal-body .updated { color: var(--gray-500); font-size: 15px; margin: 0 0 56px; }
.legal-body h2 { font-size: 24px; font-weight: 700; letter-spacing: var(--tracking-tight); margin: 48px 0 14px; }
.legal-body h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.65; color: var(--gray-300); margin: 0 0 12px; }
.legal-body ul { padding-left: 22px; margin: 0 0 12px; }
.legal-body li::marker { color: var(--red); }
.legal-body a { color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 1px; }
.legal-body a:hover { color: var(--gray-300); }
.legal-rule { border: none; border-top: 1px solid var(--gray-900); margin: 56px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .industries-grid, .help-grid { grid-template-columns: 1fr; }
  .who-grid, .who-grid.mirror { grid-template-columns: 1fr; gap: 44px; }
  .who-grid.mirror .who-products { order: 0; }
  .who-sub { max-width: none; }
  .who-lines { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 100px 0 170px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  .who-lines { display: none; }
  .product-card { padding: 20px; gap: 16px; }
  .product-logo { width: 62px; height: 62px; border-radius: 12px; }
  .product-name { font-size: 20px; }
  .product-arrow { display: none; }
  .site-header .logo img { height: 36px; }
  .site-header .wrap { height: 66px; }
  .hero { padding: 80px 0 140px; }
  .hero-bg { width: 900px; bottom: -20px; }
  .hero p { font-size: 17px; }
  .section { padding: 64px 0; }
  .industry-card { padding: 28px 24px; gap: 16px; }
  .industry-card img { height: 88px; }
  .industry-card .desc { font-size: 16px; }
  .help-card { padding: 24px; gap: 18px; }
  .help-card .txt { font-size: 17px; }
  .expertise-cards .name { font-size: 24px; }
  .stack-tags span { font-size: 15px; padding: 10px 20px; border-color: var(--gray-600); }
  .stack-bg { opacity: .35; }
  .contact .sub { font-size: 17px; }
  .legal-body { padding: 48px 24px 72px; }
}
