/* ============================================
   Trustworthy Tech Group
   Editorial dark system, aligned with bettermsp.club
   ============================================ */

:root {
  --bg:          #0a0f0d;
  --bg-elev:     #141c18;
  --bg-elev-2:   #1b2620;
  --line:        rgba(255,255,255,0.07);
  --line-soft:   rgba(255,255,255,0.04);
  --line-strong: rgba(255,255,255,0.14);

  --text:      #e6ebf2;
  --text-mute: #8a93a5;
  --text-dim:  #5d6475;

  --accent:      #339656;
  --accent-light:#42b86c;
  --accent-soft: #33965614;

  --radius:    6px;
  --radius-lg: 11px;

  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:    1180px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-mute); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; display: inline-block; flex-shrink: 0; }

.section-intro { font-size: 1.08rem; color: var(--text-mute); max-width: 60ch; line-height: 1.65; text-wrap: pretty; }

section { position: relative; z-index: 1; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

.section-head { margin-bottom: 48px; max-width: 800px; }
.section-head h2 { margin-top: 2px; }
.section-head .section-intro { margin-top: 18px; }

/* ── NAV ── */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,15,13,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.nav-logo .mark { width: 22px; height: 22px; flex-shrink: 0; }
.nav-logo .mark svg { width: 100%; height: 100%; display: block; }
.nav-logo em { font-style: italic; font-weight: 700; color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.88rem; color: var(--text-mute); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links li:not(:last-child) { display: flex; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent-light); color: #fff; background: rgba(255,255,255,0.03); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── CARD ── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 2px 0 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-3px); box-shadow: 0 2px 0 0 rgba(255,255,255,0.05) inset, 0 16px 40px rgba(0,0,0,0.5); }

/* ── HERO ── */
#hero { padding: 128px 0 0; position: relative; overflow: hidden; }
#hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(ellipse at center, rgba(51,150,86,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; padding-bottom: 88px; }
.hero-sub { font-size: 1.2rem; color: var(--text); max-width: 42rem; margin: 26px 0 18px; line-height: 1.55; text-wrap: pretty; }
.hero-note { font-size: 1.02rem; color: var(--text-mute); max-width: 40rem; margin-bottom: 38px; line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  border-top: 1px solid var(--line-soft);
  padding: 96px 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-meta > div { padding: 0 28px; border-right: 1px solid var(--line-soft); }
.hero-meta > div:first-child { padding-left: 0; }
.hero-meta > div:last-child { border-right: none; }
.hero-meta .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.hero-meta .v { font-size: 1.02rem; color: var(--text); font-weight: 600; letter-spacing: -0.005em; line-height: 1.4; }
.hero-meta .v em { font-style: italic; color: var(--accent-light); font-weight: 600; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ── SECTION SPACING ── */
.section { padding: 108px 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-elev); }
#who { border-top: none; }

/* ── RULE / FEATURE CARDS ── */
.feat-card { padding: 32px 28px 36px; }
.feat-num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--accent-light); margin-bottom: 16px; }
.feat-card h3 { margin-bottom: 12px; }
.feat-card p { font-size: 0.92rem; line-height: 1.65; }

/* ── PULL QUOTE ── */
.pull-quote {
  margin-top: 4px;
  padding: 24px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.pull-quote p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text); font-weight: 600; text-wrap: pretty; }

/* ── STAT CALLOUT ── */
.stat-callout {
  padding: 30px 30px 34px;
  background: linear-gradient(160deg, rgba(51,150,86,0.18), rgba(51,150,86,0.02) 70%);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
}
.stat-callout .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 14px; }
.stat-callout .num { font-size: 4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); margin-bottom: 14px; }
.stat-callout p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--text-mute); }

.info-card { padding: 26px 28px 30px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.info-card p { font-size: 0.92rem; line-height: 1.65; }

/* ── ROWS PANEL ── */
.rows-panel { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.row-item { background: var(--bg-elev); padding: 24px 26px; }
.row-item h3 { font-size: 1rem; margin-bottom: 8px; }
.row-item p { font-size: 0.92rem; line-height: 1.6; }

/* ── BRAND CARDS ── */
.brand-row-label { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.brand-row-label span { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.brand-row-label .rule { flex: 1; height: 1px; background: var(--line); }
.brand-row-note { font-size: 0.92rem; color: var(--text-dim); max-width: 60ch; margin-bottom: 26px; line-height: 1.6; }

.brand-card { display: flex; flex-direction: column; padding: 30px 28px 28px; border-top: 2px solid; color: inherit; }
.brand-card .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.brand-card .name { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; font-size: 22px; letter-spacing: -0.02em; }
.brand-card .name b { font-weight: 600; color: var(--text); }
.brand-card .name em { font-style: italic; font-weight: 700; }
.brand-card .tagline { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.brand-card p { margin: 0 0 22px; font-size: 0.92rem; line-height: 1.65; flex: 1; }
.brand-card .link { font-family: var(--font-mono); font-size: 0.78rem; }

.brands-msp { margin-top: 64px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line-soft); background: var(--bg-elev); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.footer-logo .mark { width: 20px; height: 20px; }
.footer-logo em { font-style: italic; font-weight: 700; color: var(--accent-light); }
.footer-brand p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-mute); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 36px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-bottom .copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-bottom .domain { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

/* ── CONTACT / CTA ── */
.cta-box {
  padding: 72px 48px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-box::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 380px;
  background: radial-gradient(ellipse, rgba(51,150,86,0.18), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box .eyebrow { justify-content: center; }
.cta-box h2 { max-width: 22ch; margin: 0 auto 18px; }
.cta-box > p.section-intro { max-width: 46ch; margin: 0 auto 34px; text-align: center; }
.cta-meta { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; text-align: left; }
.cta-meta .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.cta-meta .v { font-size: 0.92rem; line-height: 1.6; color: var(--text-mute); }

/* ── COVERAGE ── */
.coverage-card { padding: 28px 26px 32px; }
.coverage-card .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.coverage-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.coverage-card p { font-size: 0.92rem; line-height: 1.65; }

.coverage-note {
  margin-top: 20px; padding: 30px 32px;
  background: var(--bg-elev); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center;
}
.coverage-note h3 { font-size: 1.1rem; margin-bottom: 10px; }
.coverage-note p { font-size: 0.92rem; line-height: 1.65; }
.coverage-note .mono { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9; color: var(--accent-light); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .grid-2 { gap: 44px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .hero-meta > div { border-right: none; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  #hero { padding-top: 100px; }
  .hero-inner { padding-bottom: 64px; }
  .cta-box { padding: 48px 28px; }
}
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 40px 20px; }
}
