/* =========================================================
   TECHTIX — refined corporate minimal
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #fbfaf6;
  --bg-alt: #f1ede1;
  --surface: #ffffff;

  /* Ink */
  --ink: #0e1226;
  --ink-soft: #2a2f47;
  --ink-muted: #5e6373;

  /* Lines */
  --line: #e4dfd0;
  --line-strong: #cbc5b3;

  /* Accent (from the logo) */
  --accent: #2438a8;
  --accent-hover: #1a2a85;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --gutter: 28px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-mark.small { width: 24px; height: 24px; }
.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 17px;
}
.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--accent); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
/* Soft color washes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 78% 28%, rgba(123, 158, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 60% at 18% 78%, rgba(123, 111, 214, 0.13), transparent 60%);
  pointer-events: none;
  z-index: -2;
}
/* Subtle dot grid for tech texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 18, 38, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 72px;
}
.hero-content { min-width: 0; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(36, 56, 168, 0.18));
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration { animation: none; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 36px;
}
.eyebrow span { margin: 0 6px; opacity: 0.6; }

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  line-height: 1.5;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 26px 24px 4px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.stat dd {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.section-alt {
  background: var(--bg-alt);
}
.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
.section-label {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 100px;
}
.section-label .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.section-label .label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  width: fit-content;
}
.section-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 32px;
  max-width: 22ch;
}
.section-body p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  margin: 0 0 18px;
  max-width: 64ch;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

/* =========================================================
   Cards (What We Do)
   ========================================================= */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.card-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 22px;
  stroke-width: 1.5;
}
.card:hover .card-icon { color: var(--ink); transition: color 0.2s ease; }
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.card p {
  font-size: 0.96rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.contact-block {
  padding: 28px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-kind {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.contact-email {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.contact-email:hover { border-bottom-color: var(--accent); }
.contact-address {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.contact-address:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #c8ccd9;
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: #fff;
}
.footer-brand .brand-mark {
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.footer-nav a {
  color: #c8ccd9;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: #fff; }
.copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
  color: #8a90a3;
  letter-spacing: 0.02em;
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-page {
  padding: 80px 0 100px;
}
.legal-page .container { max-width: 780px; }
.legal-page h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 12px;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 48px;
}
.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .placeholder {
  background: #fff5d6;
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #6b5300;
}
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 36px;
  transition: color 0.18s ease;
}
.legal-page .back:hover { color: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; }
  /* Text reads first; illustration sits below as a supporting accent */
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-illustration { max-width: 220px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 22px 0 4px; }
  .stat:nth-child(2n) { padding-left: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 70px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-label { position: static; flex-direction: row; align-items: center; gap: 16px; }
  .section-label .label { padding-top: 0; border-top: none; border-left: 1px solid var(--ink); padding-left: 14px; }

  .cards { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 540px) {
  :root { --gutter: 20px; }
  .header-inner { height: 60px; }
  .site-nav { gap: 18px; font-size: 13.5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
