:root {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #1a2233;
  --border: #273043;
  --text: #e7ecf3;
  --muted: #9aa6b8;
  --accent: #4f8cff;
  --accent-hover: #3b78f0;
  --max: 1120px;
  --narrow: 760px;
  --radius: 12px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 110px 0 90px;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(79, 140, 255, 0.18), transparent 70%);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 18px;
  max-width: 14ch;
  margin-inline: auto;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 60ch;
  margin: 0 auto 32px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 18px; }
.intro p { font-size: 1.25rem; color: var(--text); }
.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 28px;
}
.section-heading { text-align: center; margin-bottom: 44px; }

/* ---------- Customers ---------- */
.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 56px;
}
.logo-wordmark {
  display: flex;
  align-items: center;
}
.logo-wordmark img { display: block; height: 50px; width: auto; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 12px; font-size: 1.3rem; color: #fff; }
.card p { margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Page / posts ---------- */
.page-title { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 28px; }
.lead { font-size: 1.3rem; color: var(--text); margin-top: 0; }

.post-list { display: flex; flex-direction: column; gap: 28px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.post-card-title { margin: 0 0 8px; font-size: 1.6rem; }
.post-card-title a { color: #fff; }
.post-card-excerpt { color: var(--muted); }
.post-meta { color: var(--muted); font-size: 0.95rem; display: flex; gap: 10px; flex-wrap: wrap; }
.read-more { font-weight: 600; }

.post { padding: 56px 0 80px; }
.post-back { margin: 0 0 24px; }
.post-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 14px; }
.post-body { margin-top: 36px; font-size: 1.12rem; }
.post-body h2 { margin: 40px 0 14px; font-size: 1.6rem; }
.post-body p { margin: 0 0 20px; }
.post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 14px; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25);
}
.contact-form .btn { align-self: flex-start; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); }
.legal-updated { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  /* border-top: 1px solid var(--border); */
  padding: 32px 0;
  /* margin-top: 40px; */
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.copyright { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 26px;
    height: 20px;
    position: relative;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease;
  }
  .nav-toggle-label span { top: 9px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-cta { border-radius: 0; }
  .nav-toggle:checked ~ .nav-links { max-height: 320px; }
}
