/* TSlabs.dev — Maloche design system
   Ink #0B0B0C · Dark-2 #1A1A1C · Paper #F5F3EE · Muted #C9C4BA · Grey #8B8478 · Signal #EEFF00
   Type: Rubik 700/800 headlines · Geist body · Geist Mono labels/data */

:root {
  --ink: #0b0b0c;
  --dark2: #1a1a1c;
  --paper: #f5f3ee;
  --muted: #c9c4ba;
  --grey: #8b8478;
  --signal: #eeff00;
  --hairline: rgba(245, 243, 238, 0.1);
  --hairline-strong: rgba(245, 243, 238, 0.2);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-reveal: cubic-bezier(0.19, 1, 0.22, 1);
  --maxw: 1200px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  font-family: Geist, system-ui, sans-serif;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--signal); color: var(--ink); }

a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--signal); }

h1, h2, h3 { font-family: Rubik, sans-serif; margin: 0; }

img { display: block; }

.dot { color: var(--signal); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(11, 11, 12, 0.66);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.nav__home { display: flex; align-items: center; gap: 12px; transition: opacity 160ms var(--ease-out); }
.nav__home:hover { opacity: 0.7; }
.nav__markslot { width: 26px; height: 26px; display: block; flex: none; }
.nav__right { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__links a { transition: color 160ms var(--ease-out); }

.langtabs {
  display: flex;
  align-items: center;
  border: 1px solid rgba(245, 243, 238, 0.16);
  border-radius: 9px;
  overflow: hidden;
}
.langtabs button {
  border: 0;
  padding: 7px 12px;
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--grey);
  transition: transform 140ms var(--ease-out), background 160ms ease, color 160ms ease;
}
.langtabs button:active { transform: scale(0.94); }
.langtabs button.is-active { background: var(--signal); color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px var(--gutter) 76px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 26px;
  animation: rise 500ms var(--ease-out) both;
}
.kicker__dot { width: 8px; height: 8px; background: var(--signal); border-radius: 2px; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
  animation: rise 560ms var(--ease-out) 60ms both;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
  animation: rise 560ms var(--ease-out) 120ms both;
}
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 560ms var(--ease-out) 180ms both; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { color: var(--ink); }
.btn--ghost { color: var(--paper); border: 1px solid rgba(245, 243, 238, 0.22); }
.btn--ghost:hover { color: var(--paper); border-color: rgba(245, 243, 238, 0.45); }

.panel {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--dark2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  animation: rise 700ms var(--ease-out) 100ms both;
}
.panel__grid {
  position: absolute;
  inset: -14% 0;
  border-radius: 24px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  will-change: transform;
}
.panel__markhome { position: relative; height: 44%; aspect-ratio: 137.8 / 133.53; display: block; }
.panel__markhome img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 60;
}
.panel__url {
  position: absolute;
  bottom: 20px;
  left: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.panel__chip { position: absolute; top: 20px; right: 22px; width: 12px; height: 12px; background: var(--signal); border-radius: 3px; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px var(--gutter); }
.section--contact { padding: 80px var(--gutter) 96px; }

.rule {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px;
  margin-bottom: 36px;
}
.rule--tight { margin-bottom: 40px; }
.rule__num { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--grey); letter-spacing: 0.1em; }
.rule h2 { font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.rule__note { margin-left: auto; color: var(--grey); font-size: 14px; max-width: 380px; text-align: right; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--dark2);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 348px;
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.card__icon { width: 62px; height: 62px; margin: -3px; }
.card h3 { font-weight: 700; font-size: 24px; margin: 0 0 5px; letter-spacing: -0.025em; }
.card__tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin: 0 0 16px;
}
.card__body { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 auto; text-wrap: pretty; }

.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  padding: 4px 10px;
  border-radius: 6px;
}
.chips { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.chip {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  border: 1px solid rgba(245, 243, 238, 0.14);
  padding: 4px 9px;
  border-radius: 6px;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about__lede {
  font-family: Rubik, sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.about__body { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; text-wrap: pretty; }
.about__body:last-child { margin-bottom: 0; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { background: var(--dark2); border-radius: 14px; padding: 22px; }
.value__big { font-family: Rubik, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.value__big--signal { color: var(--signal); }
.value__sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--signal);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.contact__kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  margin: 0 0 16px;
}
.contact h2 { font-weight: 800; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 12px; color: var(--ink); }
.contact__sub { font-size: 17px; line-height: 1.6; color: var(--ink); opacity: 0.75; margin: 0; max-width: 440px; text-wrap: pretty; }
.contact__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 16px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out);
}
.contact__mail:hover { color: var(--signal); }
.contact__mail:active { transform: scale(0.97); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(245, 243, 238, 0.08); padding: 40px; }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand span,
.footer__links { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--grey); }
.footer__links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity 800ms var(--ease-reveal), transform 800ms var(--ease-reveal);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 40px; }
  .panel { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .rule__note { display: none; }
  .contact { grid-template-columns: 1fr; padding: 40px 32px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .values { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .contact__mail { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
