/* =============================================
   Nextcraft — Stylesheet
   ============================================= */

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

html, body {
  background: #0f0f0f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f5f5f5;
}

a { text-decoration: none; }

/* ── Navigation ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 0.5px solid #2a2a2a;
  background: #161616;
}

.logo {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
  cursor: pointer;
}

.logo span { color: #378ADD; }

.nav-center {
  display: flex;
  align-items: center;
}

.nav-center a {
  font-size: 13.5px;
  color: #ccc;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  border-right: 0.5px solid #2a2a2a;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.nav-center a:first-child { border-left: 0.5px solid #2a2a2a; }
.nav-center a:hover { color: #fff; background: #1e1e1e; }
.nav-center a.active { color: #378ADD; background: #0d1f33; }

.nav-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 0.5px solid #378ADD;
  border-radius: 8px;
  color: #378ADD;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.nav-btn:hover {
  background: #0C447C;
  color: #fff;
  border-color: #0C447C;
}

/* ── Pages ── */
.page {
  display: none;
  background: #0f0f0f;
  min-height: calc(100vh - 56px);
  flex-direction: column;
}

.page.active { display: flex; }
.page-content { flex: 1; }

/* ── Hero ── */
.hero {
  padding: 4.5rem 2rem 3.5rem;
  border-bottom: 0.5px solid #2a2a2a;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5DCAA5;
  background: #04342C;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1D9E75;
}

.hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: #378ADD;
}

.hero p {
  font-size: 16px;
  color: #bbb;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  max-width: 560px;
  border: 0.5px solid #333;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 14px;
  background: transparent;
  color: #f5f5f5;
  outline: none;
}

.search-bar input::placeholder { color: #666; }

.btn-blue {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  background: #185FA5;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-blue:hover { background: #0C447C; }

.trust {
  display: flex;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #aaa;
}

.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1D9E75;
  flex-shrink: 0;
}

/* ── Sections ── */
.sec {
  padding: 2.5rem 2rem;
  background: #0f0f0f;
}

.sec-alt { background: #141414; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
}

.sec h2 {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.sec p {
  font-size: 15px;
  color: #bbb;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 640px;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scard {
  background: #161616;
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.scard:hover {
  background: #1c1c1c;
  border-color: #378ADD;
  transform: translateY(-2px);
}

.scard-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.scard-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke-width: 1.5;
}

.scard h3 {
  font-size: 14px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 5px;
}

.scard p {
  font-size: 12px;
  color: #aaa;
  line-height: 1.55;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 6px;
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}

.step {
  background: #161616;
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  color: #378ADD;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 15px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: #bbb;
  line-height: 1.65;
  margin: 0;
}

/* ── Audience Cards ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}

.acard {
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.75rem;
  background: #161616;
}

.acard h3 {
  font-size: 16px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 8px;
}

.acard p {
  font-size: 13px;
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.acard-link {
  font-size: 13px;
  font-weight: 500;
  color: #378ADD;
  cursor: pointer;
}

.acard-link:hover { color: #85B7EB; }

/* ── About Stats ── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}

.astat {
  background: #161616;
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem;
}

.astat-num {
  font-size: 26px;
  font-weight: 500;
  color: #378ADD;
}

.astat-label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* ── CTA Bar ── */
.cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
  border-top: 0.5px solid #2a2a2a;
  background: #141414;
}

.cta-bar h2 {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  max-width: 360px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

/* ── Footer ── */
.footer {
  padding: 1.25rem 2rem;
  border-top: 0.5px solid #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f0f0f;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  color: #777;
}

.footer-logo span { color: #378ADD; }
.footer small { font-size: 12px; color: #555; }

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #1a1a1a;
  border: 0.5px solid #333;
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  margin: 1rem;
}

.modal h3 {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.4rem;
}

.modal .modal-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 10px 14px;
  background: #111;
  border: 0.5px solid #333;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
}

.modal input::placeholder,
.modal textarea::placeholder { color: #555; }

.modal textarea {
  resize: vertical;
  min-height: 70px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-cancel {
  flex: 1;
  padding: 10px;
  border: 0.5px solid #333;
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
}

.btn-cancel:hover { background: #222; }

.btn-submit {
  flex: 2;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #185FA5;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.btn-submit:hover { background: #0C447C; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1D9E75;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }