/* =========================================================
   ZTN Tech — design system
   Self-contained: no external fonts or CDNs (keeps CSP strict)
   ========================================================= */

:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #94a3b8;
  --brand: #378add;
  --brand-600: #1f6fb9;
  --accent: #1d9e75;
  --accent-warm: #f2a53c;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --soft-2: #e2e8f0;
  --line: #e5e9f0;
  --ok: #16a34a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--dark {
  background: var(--ink);
  color: #fff;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}
.brand-logo--header {
  height: 44px;
}
.brand-logo--footer {
  height: 112px;
}

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 80% -10%, #1e293b, transparent),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: var(--muted-2); font-size: 1.2rem; max-width: 56ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.4);
  color: #8ee3c7;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.25); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(55, 138, 221, 0.12), rgba(29, 158, 117, 0.12));
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.stat .label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.panel {
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.panel ul { margin: 0; padding-left: 1.1rem; color: var(--muted-2); }
.panel li { margin-bottom: 0.5rem; }

.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.8rem; color: var(--ink); }
.checklist .check {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(22, 163, 74, 0.12); color: var(--ok);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  margin-top: 2px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 52ch; margin-inline: auto; }

/* ---------- Blog / articles ---------- */
.blog-list {
  display: grid;
  gap: 24px;
  max-width: 780px;
}
.blog-card h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.blog-card h2 a { color: var(--ink); }
.blog-card h2 a:hover { color: var(--brand); }
.blog-meta,
.article-meta {
  color: var(--muted-2);
  font-size: 0.92rem;
  font-weight: 700;
}
.read-more {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 800;
}
.article-hero h1 { max-width: 20ch; }
.article-content {
  max-width: 760px;
}
.article-content h2 {
  margin-top: 2rem;
}
.article-content p {
  color: var(--muted);
  font-size: 1.05rem;
}
.article-content .lead {
  color: var(--muted);
  font-size: 1.18rem;
}
.article-note {
  margin-top: 2rem;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--soft-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--soft); color: var(--brand); display: grid; place-items: center;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list a, .contact-list span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--muted-2);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 1rem; letter-spacing: 0.02em; }
.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center; color: #fff;
}
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.notice {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; border-radius: 8px; }
  .nav-cta { margin: 0.4rem 0 0; }
  .brand-logo--header { height: 40px; }
  .section { padding: 60px 0; }
  .cta-band, .panel { padding: 32px 24px; }
}
@media (max-width: 540px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
