/* ============ TEKMORN — industrial dark theme ============ */

:root {
  --bg: #0e131c;
  --bg-alt: #121927;
  --panel: #172033;
  --line: #243048;
  --text: #e8eaed;
  --muted: #9aa8bc;
  --accent: #3d84e6;
  --accent-strong: #5b98ec;
  --steel: #8a94a3;
  --accent-soft: rgba(61, 132, 230, 0.12);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

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

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav__mark { width: 46px; height: 46px; color: var(--accent); }
.nav__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.14em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
}
.nav__links .nav__cta:hover { background: var(--accent-strong); color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
}
.hero__inner { position: relative; max-width: 780px; }
.hero__kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title span { color: var(--accent); }
.hero__lead {
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
}
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- stats ---------- */
.stats {
  position: relative;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
  overflow: hidden;
}
.stat {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--accent);
  line-height: 1;
}
.stat__label { font-size: 0.85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section__lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- service cards ---------- */
.cards {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- platforms ---------- */
.platforms {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.platform {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 26px 26px 24px;
}
.platform header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.platform h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.platform p { color: var(--muted); font-size: 0.93rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--live {
  color: #7ddb8a;
  background: rgba(125, 219, 138, 0.1);
  border: 1px solid rgba(125, 219, 138, 0.25);
}

.platforms__pipeline {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.platforms__pipeline-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--panel);
  border: 1px dashed var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- timeline ---------- */
.timeline {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
}
.timeline__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__meta { display: flex; flex-direction: column; gap: 6px; }
.timeline__period {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.timeline__value { font-size: 0.85rem; color: var(--muted); }
.timeline__body h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline__body p { color: var(--muted); font-size: 0.95rem; max-width: 680px; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about__text p { margin-top: 16px; color: var(--muted); }
.about__text p strong { color: var(--text); }
.about__text .section__title { margin-bottom: 4px; }
.about__creds {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.about__creds h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about__creds ul { list-style: none; }
.about__creds li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.about__creds li:first-child { border-top: none; }
.about__creds li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 720px; }
.contact .section__lead { margin-left: auto; margin-right: auto; }
.contact__loc { margin-top: 26px; color: var(--muted); font-size: 0.9rem; }

/* ---------- contact form ---------- */
.form {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  text-align: left;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form__field input,
.form__field textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__field textarea { resize: vertical; min-height: 130px; }
.form__submit { justify-self: center; min-width: 220px; border: none; cursor: pointer; }

@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}
.footer__tagline { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .platforms { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__cta { text-align: center; }
  .nav__toggle { display: flex; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 72px 0; }
}
