:root {
  --tm-primary: #2B2D31;
  --tm-accent: #FF6B35;
  --tm-bg: #F2F1EE;
  --tm-dark: #1B1C1F;
  --tm-text: #22242A;
  --tm-line: rgba(43, 45, 49, 0.12);
  --tm-line-light: rgba(242, 241, 238, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--tm-text);
  background: var(--tm-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Archivo', sans-serif; line-height: 1.08; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.tm-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(242, 241, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tm-line);
}
.tm-brand { display: flex; align-items: center; gap: 10px; }
.tm-brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--tm-accent); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800;
  border-radius: 6px; font-size: 20px;
}
.tm-brand-word { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: 0.12em; font-size: 17px; }
.tm-nav { display: flex; gap: 26px; }
.tm-nav a { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tm-primary); opacity: 0.8; transition: opacity .2s; }
.tm-nav a:hover { opacity: 1; color: var(--tm-accent); }
.tm-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.tm-burger span { width: 24px; height: 2px; background: var(--tm-primary); transition: .25s; }

/* ---------- Hero ---------- */
.tm-hero { position: relative; padding: 92px 22px 84px; overflow: hidden; }
.tm-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--tm-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tm-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000 40%, transparent 100%);
}
.tm-hero-inner { position: relative; max-width: 940px; margin: 0 auto; }
.tm-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; font-weight: 600; color: var(--tm-accent); margin-bottom: 20px; }
.tm-hero-title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; color: var(--tm-primary); margin-bottom: 22px; }
.tm-hero-lead { max-width: 620px; font-size: 1.12rem; color: #43464d; margin-bottom: 34px; }
.tm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tm-btn { display: inline-block; padding: 13px 26px; font-weight: 600; font-size: 14.5px; letter-spacing: 0.03em; border-radius: 4px; transition: transform .15s, background .2s; }
.tm-btn:active { transform: translateY(1px); }
.tm-btn-solid { background: var(--tm-accent); color: #fff; }
.tm-btn-solid:hover { background: #ff551a; }
.tm-btn-ghost { border: 1.5px solid var(--tm-primary); color: var(--tm-primary); }
.tm-btn-ghost:hover { background: var(--tm-primary); color: var(--tm-bg); }

/* ---------- Stats ---------- */
.tm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--tm-line);
  border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line);
}
.tm-stat { background: var(--tm-bg); padding: 30px 22px; text-align: center; }
.tm-stat-num { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--tm-accent); }
.tm-stat-cap { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #5c5f66; }

/* ---------- Sections ---------- */
.tm-section { max-width: 1080px; margin: 0 auto; padding: 78px 22px; }
.tm-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.tm-sec-index { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; color: var(--tm-accent); border: 1px solid var(--tm-accent); padding: 3px 9px; border-radius: 3px; }
.tm-sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: var(--tm-primary); }
.tm-sec-head-light h2 { color: var(--tm-bg); }

.tm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tm-card { background: #fff; border: 1px solid var(--tm-line); border-left: 3px solid var(--tm-accent); border-radius: 6px; padding: 26px 24px; transition: transform .2s, box-shadow .2s; }
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,28,31,0.08); }
.tm-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--tm-primary); }
.tm-card p { font-size: 0.97rem; color: #4a4d54; }

/* ---------- Metal (dark) ---------- */
.tm-metal { position: relative; background: var(--tm-dark); overflow: hidden; }
.tm-metal-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--tm-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--tm-line-light) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 90% at 80% 30%, #000 30%, transparent 100%);
}
.tm-metal-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 80px 22px; }
.tm-metal-lead { max-width: 640px; color: #c7c9cf; font-size: 1.08rem; margin-bottom: 34px; }
.tm-metal-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--tm-line-light); }
.tm-metal-list li { background: var(--tm-dark); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tm-metal-list strong { font-family: 'Archivo', sans-serif; font-size: 1.15rem; color: var(--tm-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.tm-metal-list span { color: #9fa2a9; font-size: 0.92rem; }

/* ---------- App tools ---------- */
.tm-app-lead { max-width: 640px; font-size: 1.08rem; color: #4a4d54; margin-bottom: 36px; }
.tm-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tm-tool { position: relative; background: #fff; border: 1px solid var(--tm-line); border-radius: 6px; padding: 26px 24px 24px; }
.tm-tool-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tm-accent); background: rgba(255,107,53,0.1); padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.tm-tool h4 { font-size: 1.15rem; color: var(--tm-primary); margin-bottom: 9px; }
.tm-tool p { font-size: 0.95rem; color: #4a4d54; }

/* ---------- Contact (dark) ---------- */
.tm-contact { background: var(--tm-primary); }
.tm-contact .tm-sec-head { max-width: 1080px; margin: 0 auto 34px; padding: 74px 22px 0; }
.tm-contact-grid { max-width: 1080px; margin: 0 auto; padding: 0 22px 74px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.tm-contact-block { border-top: 2px solid var(--tm-accent); padding-top: 18px; }
.tm-contact-label { display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: #9fa2a9; margin-bottom: 8px; }
.tm-contact-block a, .tm-contact-block p { color: var(--tm-bg); font-size: 1.05rem; }
.tm-contact-block a:hover { color: var(--tm-accent); }

/* ---------- Footer ---------- */
.tm-foot { background: var(--tm-dark); padding: 30px 22px; }
.tm-foot-row { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.tm-foot-brand { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: 0.1em; color: var(--tm-bg); }
.tm-foot-reg { color: #8b8e95; font-size: 0.85rem; }
.tm-foot-row-sub { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tm-line-light); }
.tm-foot-row-sub span { color: #8b8e95; font-size: 0.85rem; }
.tm-foot-row-sub a { color: var(--tm-accent); font-size: 0.85rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tm-nav { position: fixed; inset: 58px 0 auto 0; flex-direction: column; gap: 0; background: var(--tm-bg); border-bottom: 1px solid var(--tm-line); padding: 8px 0; transform: translateY(-140%); transition: transform .3s; }
  .tm-nav.tm-open { transform: translateY(0); }
  .tm-nav a { padding: 14px 22px; border-top: 1px solid var(--tm-line); }
  .tm-burger { display: flex; }
  .tm-stats { grid-template-columns: repeat(2, 1fr); }
}
